|
@@ -116,7 +116,7 @@ class Response
|
|
|
*/
|
|
|
public function download($url)
|
|
|
{
|
|
|
- return $this->then(['action' => 'download', 'value' => $url]);
|
|
|
+ return $this->then(['action' => 'download', 'value' => admin_url($url)]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -129,6 +129,16 @@ class Response
|
|
|
return $this->then(['action' => 'refresh', 'value' => true]);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param string $script
|
|
|
+ *
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function script($script)
|
|
|
+ {
|
|
|
+ return $this->then(['action' => 'script', 'value' => $script]);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param array $value
|
|
|
*
|