diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-09 13:36:50 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-09 13:37:42 -0400 |
commit | 24f53f5c9bd4ab467615c14a13f532918adcc935 (patch) | |
tree | 26e09e9475e1f71ee4c42d8800737c3706c04829 /usr | |
parent | 3be4cbe9c6f1196ba272ca75b1bf8eeca3fac06e (diff) | |
download | pfsense-24f53f5c9bd4ab467615c14a13f532918adcc935.zip pfsense-24f53f5c9bd4ab467615c14a13f532918adcc935.tar.gz |
Use window onload to initialize sortable and such.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/index.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index f6aadf0..1772cef 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -436,6 +436,13 @@ $closehead = false; $pgtitle = array("{$g['product_name']} Dashboard"); include("head.inc"); +?> + +<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/prototype.js"></script> +<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/scriptaculous.js"></script> + +<?php + outputJavaScriptFileInline("javascript/domTT/domLib.js"); outputJavaScriptFileInline("javascript/domTT/domTT.js"); outputJavaScriptFileInline("javascript/domTT/behaviour.js"); @@ -455,9 +462,6 @@ columns = ['col1','col2']; </script> -<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/prototype.js"></script> -<script type="text/javascript" language="javascript" src="javascript/scriptaculous/scriptaculous.js"></script> - <?php include("fbegin.inc"); echo $jscriptstr; @@ -716,19 +720,15 @@ echo $jscriptstr; <?php include("fend.inc"); ?> <script type="text/javascript"> - - <?php if (!$config['widgets'] && $pconfig['sequence'] != ""){ ?> window.onload = function(in_event) { + Sortable.create("col1", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); + Sortable.create("col2", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); + <?php if (!$config['widgets'] && $pconfig['sequence'] != ""){ ?> hideAllWidgets(); domTT_activate('welcome1', null, 'x', 287, 'y', 107, 'content', document.getElementById('welcome-container'), 'type', 'sticky', 'closeLink', '','delay', 1000, 'fade', 'both', 'fadeMax', 100, 'styleClass', 'niceTitle'); - } <?php } ?> - // <![CDATA[ - Sortable.create("col1", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); - Sortable.create("col2", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); - // ]]> - + } <?php //build list of javascript include files $jsincludefiles = array(); |