rbrindley: branch rbrindley/welcome_revamp r4296 - in /team/rbrindley/welcome...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Dec 5 12:05:28 CST 2008


Author: rbrindley
Date: Fri Dec  5 12:05:28 2008
New Revision: 4296

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

- removed setTimeout for loadTrunks
- put refresh button for loadTrunks
- added countHtml and countSecs in $(document).ready function


Modified:
    team/rbrindley/welcome_revamp/config/js/welcome2.js
    team/rbrindley/welcome_revamp/config/welcome2.html

Modified: team/rbrindley/welcome_revamp/config/js/welcome2.js
URL: http://svn.digium.com/view/asterisk-gui/team/rbrindley/welcome_revamp/config/js/welcome2.js?view=diff&rev=4296&r1=4295&r2=4296
==============================================================================
--- team/rbrindley/welcome_revamp/config/js/welcome2.js (original)
+++ team/rbrindley/welcome_revamp/config/js/welcome2.js Fri Dec  5 12:05:28 2008
@@ -26,6 +26,7 @@
 var loadTrunks = function() {
 	EX_CF = config2json({filename:'extensions.conf', usf:0 });
 
+	$('#trunks_list tr:not(:first)').remove();
 	var TBL = _$('trunks_list');
 	var addCell = ASTGUI.domActions.tr_addCell; // temporarily store the function
 

Modified: team/rbrindley/welcome_revamp/config/welcome2.html
URL: http://svn.digium.com/view/asterisk-gui/team/rbrindley/welcome_revamp/config/welcome2.html?view=diff&rev=4296&r1=4295&r2=4296
==============================================================================
--- team/rbrindley/welcome_revamp/config/welcome2.html (original)
+++ team/rbrindley/welcome_revamp/config/welcome2.html Fri Dec  5 12:05:28 2008
@@ -384,6 +384,9 @@
 			} else {
 				$(e.target).html("[ - ]");
 			}
+		},
+		'img.loadTrunks': function (e) {
+			loadTrunks();
 		}
 	}));
 
@@ -410,6 +413,10 @@
 		});
 
 	manager_events.watch();
+
+	/* countUp and countDown tickers */
+	setTimeout('countHtml()',1000);
+	setTimeout('countSecs()',1000);
 
 	return;
  });
@@ -440,7 +447,7 @@
 				<div class="handle title"> 
 					<span class="minimaxi">[ - ]</span>
 					<img src="images/asterisk_red.gif" class="title_img" />
-					Trunks
+					Trunks <img class="loadTrunks" src="images/refresh.png" title="Refresh" border="0" />
 				</div>
 				<div class="clear"></div>
 				<div class="body">




More information about the asterisk-gui-commits mailing list