Skip to content

Commit

Permalink
Show loading on new field drop
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmahon committed Jul 20, 2015
1 parent cafcf2a commit 56ccfc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Products/PloneFormGen/browser/resources/quickedit.js
Expand Up @@ -26,7 +26,7 @@ $(function () {
}

var log = logger.getLogger('pfgquickedit');
log.setLevel('DEBUG');
// log.setLevel('DEBUG');


function getAuthToken () {
Expand Down Expand Up @@ -291,8 +291,10 @@ $(function () {
async: false,
success: function (response, status, xhr) {
var item_id,
widgetParent;
widgetParent,
loading = new utils.Loading();

loading.show(false);
item_id = $(response)
.find('#contentview-view a')
.attr('href')
Expand All @@ -305,7 +307,6 @@ $(function () {
method
);

// TODO: do something more to show we're loading
widgetParent = formParent.parents("div.qefield");
widgetParent.find("div.widget-inside").slideUp('fast', function () {
location.reload();
Expand Down

0 comments on commit 56ccfc9

Please sign in to comment.