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:
@@ -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)));
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user