1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 18:30:20 +02:00

Uploading new plugins via the admin panel - active tab 'Install New' after plugin uploading #215

This commit is contained in:
Oleg Gatseluk
2014-02-26 17:22:13 +02:00
parent 34d4482911
commit 2178b7d406
6 changed files with 33 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ $.monstra.fileuploader = {
},
success: function(data){
$.monstra.fileuploader.setProgress(100);
location.href = $.monstra.fileuploader.conf.uploadUrl;
$.event.trigger('uploaded.fuploader');
},
error: function(){
Messenger().post({
@@ -121,11 +121,3 @@ $.monstra.fileuploader = {
this._uploaderObj.find('.upload-file-info').html(fname +' '+ sizeStr);
}
};
$(document).ready(function(){
$val_fUploaderInit = $('#fUploaderInit').val();
if ($val_fUploaderInit !== undefined) {
$.monstra.fileuploader.init($.extend({}, {uploaderId:'DgDfileUploader'}, $.parseJSON($val_fUploaderInit)));
}
});