Explorar o código

finish using console button

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
d4726e0438

+ 22 - 0
templates/admin/assets/js/defaultComponents/__vue_app_modal_object.js

@@ -532,6 +532,28 @@ var mgDefauleVueModalObject = {
                         window.location = self.targetUrl;
                         window.location = self.targetUrl;
                     }
                     }
                 },
                 },
+                popup : function (event, params, targetSize) {
+                    var self = this;
+                    var tempUrl = self.targetUrl;
+                    if(params.rawUrl !== undefined){
+                        self.targetUrl = params.rawUrl;
+                    }
+                    if(params.actionElementId !== undefined) {
+                        self.getActionId(event);
+                    }
+                    $.each(params, function(key, value){
+                        if(key === 'rawUrl' || key === 'actionElementId'){
+                            return false;
+                        } else {
+                            self.updateUrlParam(key.replace('__', '-'), value, event);
+                        }
+                    });
+                    if (targetSize) {
+                        window.open(self.targetUrl, '', targetSize);
+                    } else {
+                        window.open(self.targetUrl, '_blank');
+                    }
+                },
                 submitFormByEvent : function(event){
                 submitFormByEvent : function(event){
                     var self = this;
                     var self = this;
                     self.submitForm($(event.target).parents("form").first().attr('id'), event);
                     self.submitForm($(event.target).parents("form").first().attr('id'), event);