Thread: [Sitracker-devel] SF.net SVN: sitracker:[5403] trunk/main.php
Open source support tracking in your browser
Brought to you by:
ivanlucas
From: <iva...@us...> - 2009-05-26 14:19:13
|
Revision: 5403 http://sitracker.svn.sourceforge.net/sitracker/?rev=5403&view=rev Author: ivanlucas Date: 2009-05-26 14:19:10 +0000 (Tue, 26 May 2009) Log Message: ----------- Re-add ability to order dashlets (Resolves Mantis 711) Modified Paths: -------------- trunk/main.php Modified: trunk/main.php =================================================================== --- trunk/main.php 2009-05-24 18:42:21 UTC (rev 5402) +++ trunk/main.php 2009-05-26 14:19:10 UTC (rev 5403) @@ -141,10 +141,18 @@ var dashlets = $$('div.windowbox'); -Droppables.add('col0', {ghosting: true, onDrop: moveItem, hoverclass: 'droptarget'}); -Droppables.add('col1', {ghosting: true, onDrop: moveItem, hoverclass: 'droptarget'}); -Droppables.add('col2', {ghosting: true, onDrop: moveItem, hoverclass: 'droptarget'}); +var contain0 = ['col1', 'col2']; +var contain1 = ['col0', 'col2']; +var contain2 = ['col0', 'col1']; +Droppables.add('col0', {ghosting: true, onDrop: moveItem, hoverclass: 'droptarget', containment: contain0}); +Droppables.add('col1', {ghosting: true, onDrop: moveItem, hoverclass: 'droptarget', containment: contain1}); +Droppables.add('col2', {ghosting: true, onDrop: moveItem, hoverclass: 'droptarget', containment: contain2}); + +Sortable.create('col0', { tag:'div', only:'windowbox', onUpdate: save_layout}); +Sortable.create('col1', { tag:'div', only:'windowbox', onUpdate: save_layout}); +Sortable.create('col2', { tag:'div', only:'windowbox', onUpdate: save_layout}); + // Set drop area by default non cleared. $('col0').cleared = false; $('col1').cleared = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |