Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix selIndicator not correctly send
Fix syntax error. Closes #10. Closes #5
  • Loading branch information
nyroDev committed Jan 10, 2011
1 parent ba81967 commit 3af6de1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/jquery.nyroModal.filters.form.js
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.nyroModal.filters.formFile.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.nyroModal.filters.link.js
Expand Up @@ -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);
},
Expand Down

0 comments on commit 3af6de1

Please sign in to comment.