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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 5 09:21:03 CST 2009


Author: rbrindley
Date: Thu Mar  5 09:21:00 2009
New Revision: 4581

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

- properly renamed cookies.get param from user to varname


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

Modified: team/rbrindley/astman_revamp/config/js/session.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/session.js?view=diff&rev=4581&r1=4580&r2=4581
==============================================================================
--- team/rbrindley/astman_revamp/config/js/session.js (original)
+++ team/rbrindley/astman_revamp/config/js/session.js Thu Mar  5 09:21:00 2009
@@ -52,10 +52,10 @@
  * Get a Cookie. OM NOM NOM NOM
  * @param user Username
  */
-cookies.get = function(user) {
+cookies.get = function(varname) {
 	var ck = top.document.cookie;
 
-	if (ck.indexOf(user + '=') == -1) {
+	if (ck.indexOf(varname + '=') == -1) {
 		top.log.warn("Can't seem to find the user in a cookie, exiting.");
 		return '';
 	}
@@ -63,8 +63,8 @@
 	var cookies = ck.split(';');
 	for (var i=0; i < cookies.length; i++) {
 		var c = cookies[i].strip();
-		if (c.beginsWith(user + '=')) {
-			return c.split(user + '=')[1];
+		if (c.beginsWith(varname + '=')) {
+			return c.split(varname + '=')[1];
 		}
 	}
 




More information about the asterisk-gui-commits mailing list