aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/scripts.js
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-09-04 00:57:55 +0000
committerrvelices <rv-github@modusoptimus.com>2008-09-04 00:57:55 +0000
commit4002f708e1b701a800b3d6968d12ab9a49c2d071 (patch)
treef5495a5c5b5b72d2a4c8c5d830bcb47cd02d2bd4 /template-common/scripts.js
parent56517c7545428a9f655dd31c4bb3ae15a2fac223 (diff)
- remove hello_world plugin (not working anymore)
- web service method images.add works only for admins now - fix template-common js web service calls did not have the parameters url encoded - improve admin user_list - submitting the form with no user selected triggers a javascript alert (had fun with jquery selectors) git-svn-id: http://piwigo.org/svn/trunk@2496 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-common/scripts.js')
-rw-r--r--template-common/scripts.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/template-common/scripts.js b/template-common/scripts.js
index e7fa7e9b5..4e5ef822f 100644
--- a/template-common/scripts.js
+++ b/template-common/scripts.js
@@ -120,10 +120,10 @@ PwgWS.prototype = {
if ( typeof parameters[property] == 'object' && parameters[property])
{
for (var i=0; i<parameters[property].length; i++)
- url += "&"+property+"[]="+parameters[property][i];
+ url += "&"+property+"[]="+encodeURIComponent(parameters[property][i]);
}
else
- url += "&"+property+"="+parameters[property];
+ url += "&"+property+"="+encodeURIComponent(parameters[property]);
}
}
this.transport.open(this.options.method, url, this.options.async);
@@ -150,8 +150,7 @@ PwgWS.prototype = {
try {
eval('resp = ' + transport.responseText);
}
- catch (e)
- {
+ catch (e) {
this.dispatchError( 200, e.message + '\n' + transport.responseText.substr(0,512) );
}
if (resp!=null)