This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', '[data-ajax]', function (ev) { | |
var $this = $(this) | |
var data = $this.data() | |
var redirect = $this.prop('href') || data.redirect | |
// `settings` must follows jQuery.ajax API | |
var settings = data.ajax | |
ev.preventDefault() | |
$.ajax(settings).done(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(root, $) { | |
var Lure = root.Lure = {}; | |
// ALL credits goes to: backbone.js & marionette.js | |
Lure.$ = $; | |
var idCounter = 1; |
NewerOlder