From 1213ce7265dba43620ef31997e470ee1e444cf44 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 31 Aug 2015 17:33:30 +0000 Subject: [PATCH] webstaff: improve initialization of egTable.authorityControlSet() Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js b/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js index b40597e5cf..6b40c9cad9 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js @@ -350,6 +350,11 @@ function($q, egCore, egAuth) { }).then(function() { service.authority_control_set._remote_loaded = true; parent._parse(); + if (kwargs.controlSet) { + parent.controlSetId( kwargs.controlSet ); + } else { + parent.controlSetId( parent.controlSetList().sort(function(a,b){return (a - b)}) ); + } }); } @@ -487,13 +492,7 @@ function($q, egCore, egAuth) { this.bibToAuthorities(field) ); } - - if (kwargs.controlSet) { - this.controlSetId( kwargs.controlSet ); - } else { - this.controlSetId( this.controlSetList().sort(function(a,b){return (a - b)}) ); - } - + } return service; -- 2.11.0