Skip to content

Commit

Permalink
Fix: _fid has only 4 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtech-dobes committed Mar 6, 2013
1 parent 17098e1 commit 0c6650b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/fidRemove.ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ $.nette.ext('fidRemove', {
}, {
timeout: 3000,
removeFid: function (url, pos) {
url = url.substr(0, pos) + url.substr(pos + 10);
if ((url.substr(url.length - 1) === '?') || (url.substr(url.length - 1) === '&')) {
url = url.substr(0, url.length - 1);
url = url.substr(0, pos) + url.substr(pos + 9);
}
return url;
}
Expand Down

0 comments on commit 0c6650b

Please sign in to comment.