|
|
@@ -46,35 +46,6 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- protected function parseCustomParams()
|
|
|
- {
|
|
|
- if (count($this->redirectParams) === 0 && $this->rawUrl === null)
|
|
|
- {
|
|
|
- return '{}';
|
|
|
- }
|
|
|
-
|
|
|
- return $this->parseListTOJsString($this->redirectParams);
|
|
|
- }
|
|
|
-
|
|
|
- protected function parseListTOJsString($params)
|
|
|
- {
|
|
|
- $jsString = '{';
|
|
|
-
|
|
|
- if ($this->rawUrl !== null)
|
|
|
- {
|
|
|
- $params['rawUrl'] = $this->rawUrl;
|
|
|
- }
|
|
|
-
|
|
|
- foreach ($params as $key => $value)
|
|
|
- {
|
|
|
- $jsString .= ' ' . str_replace('-', '__', $key) . ': ' . (is_array($value) ? ($this->parseListTOJsString($value) . ',') : ("'" . (string) $value) . "',");
|
|
|
- }
|
|
|
-
|
|
|
- $jsString = trim($jsString, ',') . ' } ';
|
|
|
-
|
|
|
- return $jsString;
|
|
|
- }
|
|
|
-
|
|
|
public function setRedirectParams($paramsList)
|
|
|
{
|
|
|
$this->redirectParams = $paramsList;
|