fixed jquery.on syntax bug, addresses #346

pull/477/head
Justin Richer 2013-08-19 16:07:34 -04:00
parent 8edc8cc69a
commit 2fb138aa19
1 changed files with 1 additions and 9 deletions

View File

@ -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});
});