Permalink
Browse files

Fix selIndicator not correctly send

Fix syntax error. Closes #10. Closes #5
  • Loading branch information...
1 parent ba81967 commit 3af6de1a599d518fce43681a11fe47a57c4b3b50 @nyroDev committed Jan 10, 2011
@@ -26,7 +26,7 @@ jQuery(function($, undefined) {
load: function(nm) {
var data = nm.opener.serializeArray();
if (nm.store.form.sel)
- data.push({name: nm.selIndicator, value: nm.store.form.sel});
+ data.push({name: nm.selIndicator, value: nm.store.form.sel.substring(1)});
$.ajax({
url: nm.store.form.url,
data: data,
@@ -37,7 +37,7 @@ jQuery(function($, undefined) {
inputSel = $('<input />', {
'type': 'hidden',
name: nm.selIndicator,
- value: nm.store.form.sel
+ value: nm.store.form.sel.substring(1)
}).appendTo(nm.opener);
function rmFormFileElts() {
if (inputSel) {
@@ -26,7 +26,7 @@ jQuery(function($, undefined) {
load: function(nm) {
$.ajax({
url: nm.store.link.url,
- data: nm.store.link.sel ? {nm.selIndicator: nm.store.link.sel} : undefined,
+ data: nm.store.link.sel ? [{name: nm.selIndicator, value: nm.store.link.sel.substring(1)}] : undefined,
success: function(data) {
nm._setCont(data, nm.store.link.sel);
},

0 comments on commit 3af6de1

Please sign in to comment.