Skip to content

Commit

Permalink
Support for trailing slashes in URL
Browse files Browse the repository at this point in the history
- Added support for trailing slashes.
  • Loading branch information
kidchunks committed Apr 23, 2014
1 parent 7912bf6 commit f377093
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion dist/jquery.remodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
}
}
} else {
var $elem = $("[data-" + pluginName + "-id=" + id + "]");
var $elem = $("[data-" + pluginName + "-id=" + id.replace(new RegExp('/', 'g'), "\\/") + "]");

if ($elem.length) {
var instance = $[pluginName].lookup[$elem.data(pluginName)];
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.remodal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/jquery.remodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
}
}
} else {
var $elem = $("[data-" + pluginName + "-id=" + id + "]");
var $elem = $("[data-" + pluginName + "-id=" + id.replace(new RegExp('/', 'g'), "\\/") + "]");

if ($elem.length) {
var instance = $[pluginName].lookup[$elem.data(pluginName)];
Expand Down

0 comments on commit f377093

Please sign in to comment.