Show loading spinner while preview is generated

This commit is contained in:
Nathan Gray 2015-09-02 23:22:12 +00:00
parent 57d95dde57
commit 3c84c3684a
2 changed files with 2 additions and 5 deletions

View File

@ -311,7 +311,6 @@ class importexport_export_ui {
}
}
}
error_log(array2string($filter));
unset($_content['filter']);
$definition->filter = $filter;

View File

@ -61,16 +61,14 @@ app.classes.importexport = AppJS.extend(
export_preview: function(event, widget)
{
var preview = $j(widget.getRoot().getWidgetById('preview_box').getDOMNode());
$j('.content',preview).empty();
$j('.content',preview).empty()
.append('<div class="loading" style="width:100%;height:100%"></div>');
preview
.addClass('loading')
.show(100, jQuery.proxy(function() {
widget.clicked = true;
widget.getInstanceManager().submit(false, true);
widget.clicked = false;
$j(widget.getRoot().getWidgetById('preview_box').getDOMNode())
.removeClass('loading');
},this));
return false;
},