Skip to content

Commit

Permalink
fix blockUI on IE issue - use global block instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pstoellberger committed Aug 13, 2013
1 parent bb23af9 commit 64b6fc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/saiku/Saiku.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var Saiku = {
*/
ui: {
block: function(message) {
$('.processing_message').text(message);
$('.processing_message').html(message);
$('.processing_message').removeClass("i18n_translated").addClass("i18n");
Saiku.i18n.translate();

Expand Down
20 changes: 15 additions & 5 deletions js/saiku/views/Workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,14 +587,24 @@ var Workspace = Backbone.View.extend({
},

block: function(message) {
$(this.el).block({
message: '<span class="saiku_logo" style="float:left">&nbsp;&nbsp;</span> ' + message
});
Saiku.i18n.translate();
if (isIE) {
var $msg = $("<span>" + message + "</span>");
$msg.find('.processing_image').removeClass('processing_image');
Saiku.ui.block($msg.html());
} else {
$(this.el).block({
message: '<span class="saiku_logo" style="float:left">&nbsp;&nbsp;</span> ' + message
});
Saiku.i18n.translate();
}
},

unblock: function() {
$(this.el).unblock();
if (isIE) {
Saiku.ui.unblock();
} else {
$(this.el).unblock();
}
},

cancel: function(event) {
Expand Down

0 comments on commit 64b6fc9

Please sign in to comment.