소스 검색

try to use console button

andre 4 년 전
부모
커밋
a937c9a34c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/UI/Vms/Buttons/ConsoleButton.php

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

@@ -32,7 +32,7 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
     {
     {
         $this->initIds('consoleButton');
         $this->initIds('consoleButton');
         $this->setDisableByColumnValue("vmid", 0);
         $this->setDisableByColumnValue("vmid", 0);
-        $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=console&mg-action=novnc";
+        $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;";
 //        $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=vm";
 //        $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=vm";
         $this->setRawUrl($url)
         $this->setRawUrl($url)
             ->setRedirectParams(['vm' => ':id']);
             ->setRedirectParams(['vm' => ':id']);