rbrindley: branch rbrindley/vmenus_revamp r4414 - /team/rbrindley/vmenus_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jan 13 10:56:28 CST 2009


Author: rbrindley
Date: Tue Jan 13 10:56:28 2009
New Revision: 4414

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4414
Log:

- included draggable and sortable jquery-ui libraries
- added a tab comment
- implemented initial draggable and sortable calls


Modified:
    team/rbrindley/vmenus_revamp/config/menus2.html

Modified: team/rbrindley/vmenus_revamp/config/menus2.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/vmenus_revamp/config/menus2.html?view=diff&rev=4414&r1=4413&r2=4414
==============================================================================
--- team/rbrindley/vmenus_revamp/config/menus2.html (original)
+++ team/rbrindley/vmenus_revamp/config/menus2.html Tue Jan 13 10:56:28 2009
@@ -254,6 +254,8 @@
 <script type="text/javascript" src="js/jquery.js"></script>
 <script type="text/javascript" src="js/jquery.ui.core.js"></script>
 <script type="text/javascript" src="js/jquery.ui.tabs.js"></script>
+<script type="text/javascript" src="js/jquery.ui.draggable.js"></script>
+<script type="text/javascript" src="js/jquery.ui.sortable.js"></script>
 <script type="text/javascript" src="js/menus2.js"></script>
 <script type="text/javascript">
 	var actions = new Array(
@@ -338,6 +340,7 @@
 	);
 
 	$(document).ready( function() {
+		//load the tabs
 		$("#vmenus_edit_tabs").tabs({
 			navClass: 'ui-tabs-nav-side',
 			selectedClass: 'ui-tabs-selected-side',
@@ -355,6 +358,13 @@
 		}
 		$('#actions_list div.action:odd').removeClass('even').addClass('odd');
 		$('#actions_list div.action:even').removeClass('odd').addClass('even');
+
+		//load the dragging and sorting
+		$('#actions_list > div.action').draggable({
+			connectToSortable: '.vmenu',
+			helper: 'clone'
+		});
+		$('.vmenu').sortable();
 	});
 
 	/* many variables only need to be pulled from html once. */




More information about the asterisk-gui-commits mailing list