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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Feb 19 13:43:24 CST 2009


Author: rbrindley
Date: Thu Feb 19 13:43:24 2009
New Revision: 4523

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

- moved localajaxinit to timeinterval.html from js/timeinterval.js
- move all javascript to the bottom of the page to allow for html preformatting


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

Modified: branches/2.0/config/js/timeintervals.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/timeintervals.js?view=diff&rev=4523&r1=4522&r2=4523
==============================================================================
--- branches/2.0/config/js/timeintervals.js (original)
+++ branches/2.0/config/js/timeintervals.js Thu Feb 19 13:43:24 2009
@@ -242,20 +242,3 @@
 		}}
 	}
 };
-
-
-var localajaxinit = function(){
-	top.document.title = 'Manage Time Intervals' ;
-	TI_LIST = parent.miscFunctions.getTimeIntervals();
-	ti_miscFunctions.showTable();
-
-	ASTGUI.COMBOBOX.call( _$('edit_ti_starttime') , RMP_TBR_timeIntervals , 95 );
-	ASTGUI.COMBOBOX.call( _$('edit_ti_endtime') , RMP_TBR_timeIntervals , 95 );
-
-	ASTGUI.domActions.enableDisableByCheckBox ('ti_type_byGroupofDates', ['edit_ti_from_date', 'edit_ti_month']);
-	ASTGUI.domActions.enableDisableByCheckBox ('ti_type_byDayofWeek', ['edit_ti_dayofweek_start', 'edit_ti_dayofweek_end']);
-	ASTGUI.domActions.enableDisableByCheckBox ('edit_ti_entireday', ['edit_ti_starttime', 'edit_ti_endtime'] , true); // _$('edit_ti_entireday').updateStatus();
-
-	ASTGUI.events.add( 'ti_type_byGroupofDates', 'click' , function(){ _$('ti_type_byDayofWeek').updateStatus(); } ); 
-	ASTGUI.events.add( 'ti_type_byDayofWeek', 'click' , function(){ _$('ti_type_byGroupofDates').updateStatus(); } );
-};

Modified: branches/2.0/config/timeintervals.html
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/timeintervals.html?view=diff&rev=4523&r1=4522&r2=4523
==============================================================================
--- branches/2.0/config/timeintervals.html (original)
+++ branches/2.0/config/timeintervals.html Thu Feb 19 13:43:24 2009
@@ -21,12 +21,6 @@
 -->
 <html>
 <head>
-<script src="js/jquery.js"></script>
-<script src="js/astman.js"></script>
-<script src="js/timeintervals.js"></script>
-<script src="js/jquery.tooltip.js"></script>
-<script src="js/jquery.date_input.js"></script>
-<script src="js/jquery.autocomplete.js"></script>
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <style type="text/css">
 
@@ -178,5 +172,28 @@
 
 </div>
 
+<script src="js/jquery.js"></script>
+<script src="js/astman.js"></script>
+<script src="js/timeintervals.js"></script>
+<script src="js/jquery.tooltip.js"></script>
+<script src="js/jquery.date_input.js"></script>
+<script src="js/jquery.autocomplete.js"></script>
+<script type="text/javascript">
+var localajaxinit = function(){
+	top.document.title = 'Manage Time Intervals' ;
+	TI_LIST = parent.miscFunctions.getTimeIntervals();
+	ti_miscFunctions.showTable();
+
+	ASTGUI.COMBOBOX.call( _$('edit_ti_starttime') , RMP_TBR_timeIntervals , 95 );
+	ASTGUI.COMBOBOX.call( _$('edit_ti_endtime') , RMP_TBR_timeIntervals , 95 );
+
+	ASTGUI.domActions.enableDisableByCheckBox ('ti_type_byGroupofDates', ['edit_ti_from_date', 'edit_ti_month']);
+	ASTGUI.domActions.enableDisableByCheckBox ('ti_type_byDayofWeek', ['edit_ti_dayofweek_start', 'edit_ti_dayofweek_end']);
+	ASTGUI.domActions.enableDisableByCheckBox ('edit_ti_entireday', ['edit_ti_starttime', 'edit_ti_endtime'] , true); // _$('edit_ti_entireday').updateStatus();
+
+	ASTGUI.events.add( 'ti_type_byGroupofDates', 'click' , function(){ _$('ti_type_byDayofWeek').updateStatus(); } ); 
+	ASTGUI.events.add( 'ti_type_byDayofWeek', 'click' , function(){ _$('ti_type_byGroupofDates').updateStatus(); } );
+};
+</script>
 </body>
 </html>




More information about the asterisk-gui-commits mailing list