rbrindley: branch rbrindley/astman_revamp r4686 - /team/rbrindley/astman_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Apr 1 12:34:05 CDT 2009


Author: rbrindley
Date: Wed Apr  1 12:34:02 2009
New Revision: 4686

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

- js/ringgroups.js now uses pbx.ring_groups and pbx.users


Modified:
    team/rbrindley/astman_revamp/config/js/ringgroups.js

Modified: team/rbrindley/astman_revamp/config/js/ringgroups.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/ringgroups.js?view=diff&rev=4686&r1=4685&r2=4686
==============================================================================
--- team/rbrindley/astman_revamp/config/js/ringgroups.js (original)
+++ team/rbrindley/astman_revamp/config/js/ringgroups.js Wed Apr  1 12:34:02 2009
@@ -92,7 +92,7 @@
 
 	var RG_EXTEN = ASTGUI.getFieldValue( DOM_text_rgExten );
 	if( !isNewRG ){ // if editing existing ring group
-		parent.astgui_manageRingGroups.deleteRg(RG_EDITING) ;
+		parent.pbx.ring_groups.remove(RG_EDITING);
 	}else{ // if is a new ring group
 		if( parent.miscFunctions.ifExtensionAlreadyExists(RG_EXTEN) ){
 			ASTGUI.highlightField(DOM_text_rgExten , 'Extension already exists');
@@ -127,7 +127,7 @@
 		$(DOM_ringgroup_editdiv).hide();
 		window.location.reload();
 	};
-	parent.astgui_manageRingGroups.createNewRg( tmp_obj, later, RG_EDITING ) ;
+	parent.pbx.ring_groups.add( tmp_obj, later, RG_EDITING ) ;
 };
 
 
@@ -214,7 +214,7 @@
 
 var delete_rg_confirm = function(d){
 	if (!confirm('Delete RingGroup ?')) { return; }
-	parent.astgui_manageRingGroups.deleteRg(d) ;
+	parent.pbx.ring_groups.remove(d) ;
 	ASTGUI.feedback( { msg:'Ring Group deleted', showfor:2 });
 	window.location.reload();
 };
@@ -285,7 +285,7 @@
 	loadDOMelements();
 	
 	(function (){
-		var t = parent.astgui_manageusers.listOfUsers();
+		var t = parent.pbx.users.list();
 		t.each(function(usr){	
 			if( parent.sessionData.pbxinfo['users'][usr]['hassip']  && parent.sessionData.pbxinfo['users'][usr]['hassip'] == 'yes' ){
 				listOfDialDevices.push( 'SIP/' + usr );




More information about the asterisk-gui-commits mailing list