fixed jquery.on syntax bug, addresses #346
parent
8edc8cc69a
commit
2fb138aa19
|
@ -648,14 +648,6 @@ $(function () {
|
|||
|
||||
jQuery.ajaxSetup({async:false});
|
||||
|
||||
// load up our model and collection classes
|
||||
/*
|
||||
$.get('resources/js/client.js', _load);
|
||||
$.get('resources/js/grant.js', _load);
|
||||
$.get('resources/js/scope.js', _load);
|
||||
$.get('resources/js/whitelist.js', _load);
|
||||
*/
|
||||
|
||||
var _load = function (templates) {
|
||||
$('body').append(templates);
|
||||
};
|
||||
|
@ -671,7 +663,7 @@ $(function () {
|
|||
app = new AppRouter();
|
||||
|
||||
// grab all hashed URLs and send them through the app router instead
|
||||
$('a[href*="#"]').on('click', function(event) {
|
||||
$(document).on('click', 'a[href*="#"]', function(event) {
|
||||
event.preventDefault();
|
||||
app.navigate(this.hash.slice(1), {trigger: true});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue