rbrindley: branch 2.0 r4492 - in /branches/2.0/config: ./ js/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Jan 29 09:31:10 CST 2009


Author: rbrindley
Date: Thu Jan 29 09:31:10 2009
New Revision: 4492

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

- moved localajaxinit() from js/features.js into features.html
	- this is in accordance to CODING_GUIDELINES. js/*.js files
	  are considered to be libraries and init functions are
	  custom to the loading page therefore should be placed
	  in that page.


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

Modified: branches/2.0/config/features.html
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/features.html?view=diff&rev=4492&r1=4491&r2=4492
==============================================================================
--- branches/2.0/config/features.html (original)
+++ branches/2.0/config/features.html Thu Jan 29 09:31:10 2009
@@ -190,4 +190,38 @@
 <script src="js/features.js"></script>
 <script src="js/jquery.tooltip.js"></script>
 <script src="js/jquery.autocomplete.js"></script>
+<script type="text/javascript">
+
+var localajaxinit = function(){
+	top.document.title = 'Call Parking preferences' ;
+
+	ASTGUI.tabbedOptions( _$('tabbedMenu') , [
+		{	url: '#',
+			desc: 'Feature Codes',
+			click_function: function(){ $('.Features_tabs').hide(); $('#featurecode_settings_container').show(); }
+		},{
+			url: '#',
+			desc: 'Call Parking',
+			click_function: function(){ $('.Features_tabs').hide(); $('#callparking_settings_container').show(); }
+		},{
+			url: '#',
+			desc: 'Application Map',
+			click_function: function(){ $('.Features_tabs').hide(); $('#applicationMap_settings_container').show(); }
+		},{
+			url: '#',
+			desc: 'Dial Options',
+			click_function: function(){ $('.Features_tabs').hide(); $('#DialOptions_settings_container').show(); }
+		}
+		
+	]);
+
+	try{
+		load_preferences();
+	}catch(err){
+
+	}finally{
+		$('#tabbedMenu').find('A:eq(0)').click();
+	}
+};
+</script>
 </body>

Modified: branches/2.0/config/js/features.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/features.js?view=diff&rev=4492&r1=4491&r2=4492
==============================================================================
--- branches/2.0/config/js/features.js (original)
+++ branches/2.0/config/js/features.js Thu Jan 29 09:31:10 2009
@@ -206,38 +206,6 @@
 
 };
 
-var localajaxinit = function(){
-	top.document.title = 'Call Parking preferences' ;
-
-	ASTGUI.tabbedOptions( _$('tabbedMenu') , [
-		{	url: '#',
-			desc: 'Feature Codes',
-			click_function: function(){ $('.Features_tabs').hide(); $('#featurecode_settings_container').show(); }
-		},{
-			url: '#',
-			desc: 'Call Parking',
-			click_function: function(){ $('.Features_tabs').hide(); $('#callparking_settings_container').show(); }
-		},{
-			url: '#',
-			desc: 'Application Map',
-			click_function: function(){ $('.Features_tabs').hide(); $('#applicationMap_settings_container').show(); }
-		},{
-			url: '#',
-			desc: 'Dial Options',
-			click_function: function(){ $('.Features_tabs').hide(); $('#DialOptions_settings_container').show(); }
-		}
-		
-	]);
-
-	try{
-		load_preferences();
-	}catch(err){
-
-	}finally{
-		$('#tabbedMenu').find('A:eq(0)').click();
-	}
-};
-
 var save_changes = function(){
 
 	var TBL = _$('Table_applicationMap_definitions');




More information about the asterisk-gui-commits mailing list