Browse files

Fixes Javascript Errors

Fixes the Javascript error that prevents enabling/disabling the objects
in the interface.
  • Loading branch information...
1 parent 730790d commit ee02550a564c3d4f996a70cfd4fafe78a07f0046 @mdima committed Apr 7, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 etc/inc/shaper.inc
View
6 etc/inc/shaper.inc
@@ -563,7 +563,7 @@ class altq_root_queue {
function build_javascript() {
$javascript = "<script type=\"text/javascript\">";
- $javascript .= "//<![CDATA[";
+ $javascript .= "//<![CDATA[\n";
$javascript .= "function mySuspend() {";
$javascript .= "if (document.layers && document.layers['shaperarea'] != null) ";
$javascript .= "document.layers['shaperarea'].visibility = 'hidden'; ";
@@ -874,7 +874,7 @@ class priq_queue {
function build_javascript() {
$javascript = "<script type=\"text/javascript\">";
- $javascript .= "//<![CDATA[";
+ $javascript .= "//<![CDATA[\n";
$javascript .= "function mySuspend() { \n";
$javascript .= "if (document.layers && document.layers['shaperarea'] != null)\n";
$javascript .= "document.layers['shaperarea'].visibility = 'hidden';\n";
@@ -1811,7 +1811,7 @@ class hfsc_queue extends priq_queue {
function build_javascript() {
$javascript = parent::build_javascript();
$javascript .= "<script type=\"text/javascript\">";
- $javascript .= "//<![CDATA[";
+ $javascript .= "//<![CDATA[\n";
$javascript .= "function enable_realtime(enable_over) { \n";
$javascript .= "if (document.iform.realtime.checked || enable_over) { \n";
$javascript .= "document.iform.realtime1.disabled = 0;\n";

0 comments on commit ee02550

Please sign in to comment.