pari: branch 2.0 r3962 - /branches/2.0/config/followme.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Oct 17 10:19:50 CDT 2008
Author: pari
Date: Fri Oct 17 10:19:49 2008
New Revision: 3962
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3962
Log:
Improvement: make sure hasvoicemail is checked when followme is enabled
( as followme is called from macro-stdexten )
Modified:
branches/2.0/config/followme.html
Modified: branches/2.0/config/followme.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/followme.html?view=diff&rev=3962&r1=3961&r2=3962
==============================================================================
--- branches/2.0/config/followme.html (original)
+++ branches/2.0/config/followme.html Fri Oct 17 10:19:49 2008
@@ -301,8 +301,6 @@
var save_FollowMeUser = function(){
- // we do not have seperate edit/new cases here, we just have to save the chosen preferences
-
// update follow me status of the user in extensions.conf
// update followme.conf with all other chosen preferences
// reload the page
@@ -320,6 +318,13 @@
for( var t=0; t < CURRENT_DESTINATIONS.length ; t++ ){
u.new_action( 'append', EDIT_USER , 'number', CURRENT_DESTINATIONS[t] );
}
+
+ var uinfo = parent.sessionData.pbxinfo.users[EDIT_USER];
+ if( !uinfo.getProperty('hasvoicemail').isAstTrue() ){
+ ASTGUI.updateaValue({file:'users.conf', context : EDIT_USER, variable :'hasvoicemail', value :'yes'});
+ parent.sessionData.pbxinfo.users[EDIT_USER].hasvoicemail = 'yes';
+ }
+
u.callActions( function(){
window.location.reload();
});
More information about the asterisk-gui-commits
mailing list