| @@ 826-833 (lines=8) @@ | ||
| 823 | * |
|
| 824 | * @return Response |
|
| 825 | */ |
|
| 826 | public function includeScript($sFileName, $sType = '', $sId = '') |
|
| 827 | { |
|
| 828 | $command = [ |
|
| 829 | 'type' => $sType, |
|
| 830 | 'elm_id' => $sId |
|
| 831 | ]; |
|
| 832 | return $this->_addCommand('in', $command, $sFileName, true); |
|
| 833 | } |
|
| 834 | ||
| 835 | /** |
|
| 836 | * Add a command to include a javascript file on the browser if it has not already been loaded |
|
| @@ 843-850 (lines=8) @@ | ||
| 840 | * |
|
| 841 | * @return Response |
|
| 842 | */ |
|
| 843 | public function includeScriptOnce($sFileName, $sType = '', $sId = '') |
|
| 844 | { |
|
| 845 | $command = [ |
|
| 846 | 'type' => $sType, |
|
| 847 | 'elm_id' => $sId |
|
| 848 | ]; |
|
| 849 | return $this->_addCommand('ino', $command, $sFileName, true); |
|
| 850 | } |
|
| 851 | ||
| 852 | /** |
|
| 853 | * Add a command to remove a SCRIPT reference to a javascript file on the browser |
|