Revision 24f53f5c
Added by Scott Ullrich over 16 years ago
usr/local/www/index.php | ||
---|---|---|
436 | 436 |
$pgtitle = array("{$g['product_name']} Dashboard"); |
437 | 437 |
include("head.inc"); |
438 | 438 |
|
439 |
?> |
|
440 |
|
|
441 |
<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/prototype.js"></script> |
|
442 |
<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/scriptaculous.js"></script> |
|
443 |
|
|
444 |
<?php |
|
445 |
|
|
439 | 446 |
outputJavaScriptFileInline("javascript/domTT/domLib.js"); |
440 | 447 |
outputJavaScriptFileInline("javascript/domTT/domTT.js"); |
441 | 448 |
outputJavaScriptFileInline("javascript/domTT/behaviour.js"); |
... | ... | |
455 | 462 |
|
456 | 463 |
</script> |
457 | 464 |
|
458 |
<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/prototype.js"></script> |
|
459 |
<script type="text/javascript" language="javascript" src="javascript/scriptaculous/scriptaculous.js"></script> |
|
460 |
|
|
461 | 465 |
<?php |
462 | 466 |
include("fbegin.inc"); |
463 | 467 |
echo $jscriptstr; |
... | ... | |
716 | 720 |
<?php include("fend.inc"); ?> |
717 | 721 |
|
718 | 722 |
<script type="text/javascript"> |
719 |
|
|
720 |
<?php if (!$config['widgets'] && $pconfig['sequence'] != ""){ ?> |
|
721 | 723 |
window.onload = function(in_event) |
722 | 724 |
{ |
725 |
Sortable.create("col1", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); |
|
726 |
Sortable.create("col2", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); |
|
727 |
<?php if (!$config['widgets'] && $pconfig['sequence'] != ""){ ?> |
|
723 | 728 |
hideAllWidgets(); |
724 | 729 |
domTT_activate('welcome1', null, 'x', 287, 'y', 107, 'content', document.getElementById('welcome-container'), 'type', 'sticky', 'closeLink', '','delay', 1000, 'fade', 'both', 'fadeMax', 100, 'styleClass', 'niceTitle'); |
725 |
} |
|
726 | 730 |
<?php } ?> |
727 |
// <![CDATA[ |
|
728 |
Sortable.create("col1", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); |
|
729 |
Sortable.create("col2", {tag:'div',dropOnEmpty:true,containment:columns,handle:'widgetheader',constraint:false,only:'widgetdiv',onChange:showSave}); |
|
730 |
// ]]> |
|
731 |
|
|
731 |
} |
|
732 | 732 |
<?php |
733 | 733 |
//build list of javascript include files |
734 | 734 |
$jsincludefiles = array(); |
Also available in: Unified diff
Use window onload to initialize sortable and such.