allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [17/50] [abbrv] allura git commit: fix JS error when viewing ticket list page that has no tickets
Date Mon, 19 Oct 2015 11:37:42 GMT
fix JS error when viewing ticket list page that has no tickets


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/70001e20
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/70001e20
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/70001e20

Branch: refs/heads/ib/7924
Commit: 70001e2016b993aa2863b2b2a3a53ef55d691dfc
Parents: cd63778
Author: Dave Brondsema <dave@brondsema.net>
Authored: Thu Oct 1 14:54:50 2015 -0400
Committer: Heith Seewald <hseewald@hsmb.local>
Committed: Fri Oct 2 10:01:49 2015 -0400

----------------------------------------------------------------------
 ForgeTracker/forgetracker/widgets/resources/js/ticket-list.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/70001e20/ForgeTracker/forgetracker/widgets/resources/js/ticket-list.js
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/resources/js/ticket-list.js b/ForgeTracker/forgetracker/widgets/resources/js/ticket-list.js
index 9221389..9d060e6 100644
--- a/ForgeTracker/forgetracker/widgets/resources/js/ticket-list.js
+++ b/ForgeTracker/forgetracker/widgets/resources/js/ticket-list.js
@@ -150,7 +150,10 @@
     });
 
     function select_active_filter() {
-      /* this 'filter' var is set in HTML */
+      /* this 'filter' var is set in HTML on list pages (if there are tickets) */
+      if (typeof filter === 'undefined') {
+          return;
+      }
       for (var name in filter) {
         var fname = 'filter-' + name;
         var $select = $('select[name="' + fname + '"]');


Mime
View raw message