pari: branch appliance r225 -
/branches/appliance/config/setup/2.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Jan 9 15:51:24 MST 2007
Author: pari
Date: Tue Jan 9 16:51:24 2007
New Revision: 225
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=225
Log:
The appliance date can now be set using the setup wizard
Modified:
branches/appliance/config/setup/2.html
Modified: branches/appliance/config/setup/2.html
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/setup/2.html?view=diff&rev=225&r1=224&r2=225
==============================================================================
--- branches/appliance/config/setup/2.html (original)
+++ branches/appliance/config/setup/2.html Tue Jan 9 16:51:24 2007
@@ -187,11 +187,12 @@
var hourofday = parseInt( $('hod').value) + 12 ;
}
}
-
- var newdate = $('year').value + "-" + ($('moy').selectedIndex +1) + "-" + $('dom').value + " "
- + hourofday + ":" + $('minute').value + ":" + $('second').value ;
-
- opt.parameters="action=originate&channel=" + encodeURIComponent("Local/executecommand@"+parent.asterisk_guitools ) + "&Variable=command%3d"+ encodeURIComponent("date --set='" + newdate + "'" ) + "&application=noop&timeout=60000";
+ var tmp_month = $('moy').selectedIndex +1 ;
+ if (tmp_month < 10) { tmp_month = "0"+ tmp_month ; }
+ var newdate = tmp_month + $('dom').value + hourofday + $('minute').value + $('year').value ;
+ //var newdate = $('year').value + "-" + ($('moy').selectedIndex +1) + "-" + $('dom').value + " "
+ // + hourofday + ":" + $('minute').value + ":" + $('second').value ;
+ opt.parameters="action=originate&channel=" + encodeURIComponent("Local/executecommand@"+parent.asterisk_guitools ) + "&Variable=command%3d"+ encodeURIComponent("date -s " + newdate ) + "&application=noop&timeout=60000";
var tmp = new Ajax.Request(rawman_url, opt);
return;
}
More information about the asterisk-gui-commits
mailing list