Skip to content

Commit 58ff6fa

Browse files
committed
support action-ref-by-name on link with _black target like action-ref-by-href action
1 parent 19a27fd commit 58ff6fa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/bootstrap-actionable.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/bootstrap-actionable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
} else if (actionType === "action-ref") {
5050
var actionRefName = $(this).attr("action-ref-by-name") ? $(this).attr("action-ref-by-name") : "";
5151
if ($(actionScope + " [action-name='" + actionRefName + "']").length > 0) {
52-
var linkTag = $(actionScope + " [href='" + actionRefName + "']:first");
52+
var linkTag = $(actionScope + " [action-name='" + actionRefName + "']:first");
5353
// check if current link tag has attribute target
5454
if (linkTag.attr('target')) {
5555
window.open(linkTag.attr("href"), linkTag.attr('target'));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-actionable",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Actionable plugin is a small Javascript code that help implement click actions for a and button tags by declarative way and provide functionalities to load AJAX content in Bootstrap Modal Wrapper instance.",
55
"keywords": [
66
"bootstrap",

0 commit comments

Comments
 (0)