Bläddra i källkod

try to use console button

andre 4 år sedan
förälder
incheckning
a6288bdb99
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/UI/Vms/Buttons/ConsoleButton.php

+ 2 - 2
app/UI/Vms/Buttons/ConsoleButton.php

@@ -40,8 +40,8 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
 
 
     public function afterInitContent()
     public function afterInitContent()
     {
     {
-        $this->htmlAttributes['@click.middle'] = 'window.open($event, ' . $this->parseCustomParams() . ', true)';
-        $this->htmlAttributes['@click'] = 'window.open($event, ' . $this->parseCustomParams() . ')';
+        $this->htmlAttributes['@click.middle'] = 'open($event, ' . $this->parseCustomParams() . ', true)';
+        $this->htmlAttributes['@click'] = 'open($event, ' . $this->parseCustomParams() . ')';
     }
     }
 
 
     public function setRawUrl($url)
     public function setRawUrl($url)