From 2fb138aa19b66bea76d9881f0c16429f50b2b574 Mon Sep 17 00:00:00 2001
From: Justin Richer <jricher@mitre.org>
Date: Mon, 19 Aug 2013 16:07:34 -0400
Subject: [PATCH] fixed jquery.on syntax bug, addresses #346

---
 .../src/main/webapp/resources/js/admin.js              | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/openid-connect-server/src/main/webapp/resources/js/admin.js b/openid-connect-server/src/main/webapp/resources/js/admin.js
index 7ecd2f453..bb7d0402e 100644
--- a/openid-connect-server/src/main/webapp/resources/js/admin.js
+++ b/openid-connect-server/src/main/webapp/resources/js/admin.js
@@ -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});
     });