浏览代码

try to use console button

andre 4 年之前
父节点
当前提交
90b041a770
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/UI/Vms/Buttons/ConsoleButton.php

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

@@ -32,7 +32,8 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
     {
         $this->initIds('consoleButton');
         $this->setDisableByColumnValue("vmid", 0);
-        $url ="window.open('clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=console&mg-action=novnc', '', 'width=900,height=700'); return false;";
+        $target = "clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=console&mg-action=novnc";
+        $url = "window.open('" . $target . "', '', 'width=900,height=700'); return false;";
 //        $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=vm";
         $this->setRawUrl($url)
             ->setRedirectParams(['vm' => ':id']);