Skip to content

Commit 8f7f7ab

Browse files
committed
Pull href attribute if url data attribute is missing
1 parent e3d4f76 commit 8f7f7ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Griddly/Scripts/griddly.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@
329329
$(this.$element).on("click", "[data-toggle=post]", $.proxy(function (event)
330330
{
331331
var url = $(event.currentTarget).data("url");
332+
333+
if (!url)
334+
url = $(event.currentTarget).attr("href");
335+
332336
var ids = this.getSelected();
333337
var inputs = "";
334338

@@ -347,6 +351,8 @@
347351

348352
$("<form action=\"" + url + "\" method=\"post\">" + inputs + "</form>")
349353
.appendTo("body").submit().remove();
354+
355+
return false;
350356
}, this));
351357

352358
$(this.$element).on("click", "[data-toggle=postcriteria]", $.proxy(function (event)

0 commit comments

Comments
 (0)