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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 5 11:59:12 CST 2009


Author: rbrindley
Date: Thu Mar  5 11:59:09 2009
New Revision: 4586

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

- implemented pbx.users.get, to replace astman_manageusers.getUserDetails


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

Modified: team/rbrindley/astman_revamp/config/js/pbx2.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/pbx2.js?view=diff&rev=4586&r1=4585&r2=4586
==============================================================================
--- team/rbrindley/astman_revamp/config/js/pbx2.js (original)
+++ team/rbrindley/astman_revamp/config/js/pbx2.js Thu Mar  5 11:59:09 2009
@@ -97,6 +97,19 @@
 pbx.users = {};
 
 /**
+ * Get User Details
+ * @param user The user to get.
+ */
+pbx.users.get = function() {
+	if (!sessionData.pbxinfo.users[user]) {
+		top.log.debug('pbx.users.get: User not found.');
+		return null;
+	}
+
+	return sessionData.pbxinfo.users[user];
+};
+
+/**
  * List users.
  */
 pbx.users.list = function() {




More information about the asterisk-gui-commits mailing list