Simplified the loading image from URL message to make use of existing dialog box types and text strings
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2512 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -4680,9 +4680,8 @@
|
|||||||
'dataType': 'text',
|
'dataType': 'text',
|
||||||
cache: !!cache,
|
cache: !!cache,
|
||||||
beforeSend:function(){
|
beforeSend:function(){
|
||||||
$('#dialog_content').html('<p>Loading image, please wait</p>');
|
$.process_cancel(uiStrings.notification.loadingImage);
|
||||||
$('#dialog_box').show();
|
},
|
||||||
},
|
|
||||||
success: function(str) {
|
success: function(str) {
|
||||||
loadSvgString(str, cb);
|
loadSvgString(str, cb);
|
||||||
},
|
},
|
||||||
@@ -4693,9 +4692,9 @@
|
|||||||
$.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb);
|
$.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
complete:function(){
|
complete:function(){
|
||||||
$('#dialog_box').hide();
|
$('#dialog_box').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user