Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Nov 18, 2024
1 parent 23ddef4 commit 510c855
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions public/assets/backend/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ App.editor.datePicker = function(elem, options){
App.loader.defined(typeof (App.daterangepicker), 'dateRangePicker');
return App.datepicker(elem, options);
};
App.editor.popup = function(elem,options){
App.editor.popup = function(elem,options,callback){
if(elem == null) elem = '.image-zoom';
var defaults = {
type: 'image',
Expand All @@ -1150,14 +1150,15 @@ App.editor.popup = function(elem,options){
};
App.loader.defined(typeof ($.fn.magnificPopup), 'magnificPopup', function(){
App.getJQueryObject(elem).magnificPopup($.extend(defaults, options||{}));
callback && callback();
});
};
App.editor.galleryPopup = function(elem,options){
App.editor.galleryPopup = function(elem,options,callback){
var defaults={
closeBtnInside: false,
closeBtnInside: false, zoom: {opener: null},
gallery: {enabled: true, navigateByImgClick: true}
};
App.editor.popup(elem,$.extend(defaults,options||{}));
App.editor.popup(elem,$.extend(defaults,options||{}),callback);
};
App.editor.inputmask = function(elem,options) {
App.loader.defined(typeof ($.fn.inputmask), 'inputmask',function(){
Expand Down
Loading

0 comments on commit 510c855

Please sign in to comment.