Commit 80d2d039 authored by Ad Schellevis's avatar Ad Schellevis

(dashboard) remove javascript hook, set timeout, change widget load text

parent 4da39cab
...@@ -236,7 +236,7 @@ include("fbegin.inc");?> ...@@ -236,7 +236,7 @@ include("fbegin.inc");?>
} }
}); });
// schedule next update // schedule next update
setTimeout('process_widget_data()', 10000); setTimeout('process_widget_data()', 5000);
}); });
} }
</script> </script>
...@@ -378,9 +378,7 @@ include("fbegin.inc");?> ...@@ -378,9 +378,7 @@ include("fbegin.inc");?>
<?php <?php
if ($divdisplay != "block"):?> if ($divdisplay != "block"):?>
<div id="<?= $widgetItem['name'] ?>-loader" style="display:<?= $display ?>;"> <div id="<?= $widgetItem['name'] ?>-loader" style="display:<?= $display ?>;">
<br /> &nbsp;&nbsp;<span class="glyphicon glyphicon-refresh"></span> <?= gettext("Save to load widget") ?>
<span class="glyphicon glyphicon-refresh"></span> <?= gettext("Loading selected widget") ?>
<br />
</div> </div>
<?php <?php
else: else:
...@@ -399,12 +397,6 @@ include("fbegin.inc");?> ...@@ -399,12 +397,6 @@ include("fbegin.inc");?>
</div> </div>
</div> </div>
</section> </section>
<?php
// include widget javascripts
foreach (glob("/usr/local/www/widgets/javascript/*.js") as $filename):?>
<script src="/widgets/javascript/<?=basename($filename);?>" type="text/javascript"></script>
<?php
endforeach;?>
<?php <?php
endif; endif;
include("foot.inc");?> include("foot.inc");?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment