Changeset 798969f in osmose-frontend


Ignore:
Timestamp:
Mar 18, 2014 10:09:00 PM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
d6236c8
Parents:
c869445
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (11/03/2014 18:34:30)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (18/03/2014 22:09:00)
Message:

Fix Editor upload dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/Osmose.Editor.js

    r174aa79 r798969f  
    4040          self.saveDialog.parent().find('.ui-dialog-buttonpane').hide(); 
    4141 
    42           self._upload(comment, source, type, reuse_changeset); 
    43  
    44           self.saveDialog.html(dialog_content); 
    45           self.saveDialog.parent().find('.ui-dialog-buttonpane').show(); 
     42          self._upload(comment, source, type, reuse_changeset, function () { 
     43            self.saveDialog.html(dialog_content); 
     44            self.saveDialog.parent().find('.ui-dialog-buttonpane').show(); 
     45          }); 
    4646        }, 
    4747      }] 
     
    9595  }, 
    9696 
    97   _upload: function (comment, source, type, reuse_changeset) { 
     97  _upload: function (comment, source, type, reuse_changeset, always) { 
    9898    var self = this; 
    9999    $.ajax({ 
     
    118118    }).fail(function (xhr, err) { 
    119119      alert("readyState: " + xhr.readyState + "\nstatus: " + xhr.status); 
    120     }); 
     120    }).always(always); 
    121121  }, 
    122122 
Note: See TracChangeset for help on using the changeset viewer.