rbrindley: branch 2.0 r4657 - in /branches/2.0/config: js/users.js users.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Mar 24 15:17:02 CDT 2009


Author: rbrindley
Date: Tue Mar 24 15:16:58 2009
New Revision: 4657

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

- optimized loading by moving javascript to the bottom
- moved $(document).ready() func from js/users.js to users.html


Modified:
    branches/2.0/config/js/users.js
    branches/2.0/config/users.html

Modified: branches/2.0/config/js/users.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/users.js?view=diff&rev=4657&r1=4656&r2=4657
==============================================================================
--- branches/2.0/config/js/users.js (original)
+++ branches/2.0/config/js/users.js Tue Mar 24 15:16:58 2009
@@ -22,21 +22,6 @@
 var EXTENSION_EDIT;
 var zapchan_Before = '';
 var MULTI_FIELDS = ['edit_check_multiple_obcid','edit_multiple_obcid','edit_check_multiple_dialplan','edit_multiple_dialplan','edit_check_multiple_hasvoicemail','edit_multiple_hasvoicemail','edit_check_multiple_vmsecret', 'edit_multiple_vmCHoice1', 'edit_multiple_vmCHoice2', 'edit_multiple_vmsecret', 'edit_check_multiple_hassip', 'edit_multiple_hassip', 'edit_check_multiple_hasiax', 'edit_multiple_hasiax', 'edit_check_multiple_allow',  'edit_multiple_codec_one', 'edit_multiple_codec_two', 'edit_multiple_codec_three', 'edit_multiple_codec_fourth', 'edit_multiple_codec_fifth', 'edit_check_multiple_flashrxflash',  'edit_multiple_flash', 'edit_multiple_rxflash', 'edit_check_multiple_secret', 'edit_multiple_seCHoice1', 'edit_multiple_seCHoice2', 'edit_multiple_secret', 'edit_check_multiple_nat',  'edit_multiple_nat', 'edit_check_multiple_canreinvite', 'edit_multiple_canreinvite', 'edit_check_multiple_dtmfmode',  'edit_multiple_dtmfmode', 'edit_check_multiple_insecure',  'edit_multiple_insecure', 'edit_check_multiple_3waycalling',  'edit_multiple_3waycalling', 'edit_check_multiple_indirectory',  'edit_multiple_indirectory', 'edit_check_multiple_callwaiting',  'edit_multiple_callwaiting', 'edit_check_multiple_cti',  'edit_multiple_cti', 'edit_check_multiple_isagent',  'edit_multiple_isagent', 'edit_check_multiple_pickupgroup',  'edit_multiple_pickupgroup'];
-
-
-var localajaxinit = function(){
-	top.document.title = 'Manage User Extensions ' ;
-	if( !ASTGUI.miscFunctions.alertIfRangeisNotdefined('ue_start','ue_end', 'Users') ){
-		$('.top_buttons').hide();
-		return;
-	}
-
-	$('#new_ext').keyup(function(){ $('#edit_callerid_span').html(this.value); }).change(function(){ $('#edit_callerid_span').html(this.value); });
-
-	USERS_MISC_FUNCTIONS.load_users_table();
-	$('#whereToBuy_button').tooltip({delay:0.9,showURL:false,top:15,left:-300});
-	setTimeout( function(){ USERS_MISC_FUNCTIONS.initialize_formFields(); }, 10 );
-};
 
 var USERS_MISC_FUNCTIONS = {
 	show_UserEdit_normal : function(){ // USERS_MISC_FUNCTIONS.show_UserEdit_normal();

Modified: branches/2.0/config/users.html
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/users.html?view=diff&rev=4657&r1=4656&r2=4657
==============================================================================
--- branches/2.0/config/users.html (original)
+++ branches/2.0/config/users.html Tue Mar 24 15:16:58 2009
@@ -19,10 +19,6 @@
  * at the top of the source tree.
  *
 -->
-<script src="js/jquery.js"></script>
-<script src="js/astman.js"></script>
-<script src="js/users.js"></script>
-<script src="js/jquery.tooltip.js"></script>
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <style type="text/css">
 	.no_obcid { 
@@ -495,4 +491,31 @@
 	<form name="buynow_form" id="buynow_form" action="http://www.digium.com/en/ecosystem/partners/partners.php" method="post"></form>
 </div>
 
+<script src="js/jquery.js"></script>
+<script src="js/astman.js"></script>
+<script src="js/users.js"></script>
+<script src="js/jquery.tooltip.js"></script>
+<script type="text/javascript">
+	$(document).ready(function() {
+		top.document.title = "Manage User Extensions";
+		if (!ASTGUI.miscFunctions.alertIfRangeisNotdefined('ue_start', 'ue_end', 'Users')) {
+			$('.top_buttons').hide();
+			return;
+		}
+		
+		$('#new_ext')
+			.keyup(function() {
+				$('#edit_callerid_span').html(this.value);
+			})
+			.change(function() {
+				$('#edit_callerid_span').html(this.value);
+		});
+
+		USERS_MISC_FUNCTIONS.load_users_table();
+
+		$('#whereToBuy_button').tooltip({ delay: 0.9, showURL: false, top: 15, left: -300});
+
+		USERS_MISC_FUNCTIONS.initialize_formFields();
+	});
+</script>
 </body>




More information about the asterisk-gui-commits mailing list