diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-03-18 19:38:12 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:19 +0200 |
commit | 3fbdb43d6227f1cfd2a77bfce8d7c944a89df126 (patch) | |
tree | 0d307bf8f8b0d08ca0b27eb80fc5852180eb92bb /install/ui/src/freeipa | |
parent | e4f2218f18056d8aa7aea47735058aff66f3d417 (diff) | |
download | freeipa-3fbdb43d6227f1cfd2a77bfce8d7c944a89df126.tar.gz freeipa-3fbdb43d6227f1cfd2a77bfce8d7c944a89df126.tar.xz freeipa-3fbdb43d6227f1cfd2a77bfce8d7c944a89df126.zip |
Remove old navigation code in certificates
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa')
-rwxr-xr-x | install/ui/src/freeipa/certificate.js | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js index 11cb444fc..4000e5aae 100755 --- a/install/ui/src/freeipa/certificate.js +++ b/install/ui/src/freeipa/certificate.js @@ -1215,12 +1215,12 @@ IPA.cert.search_facet = function(spec) { that.create_refresh_command = function() { var command = that.search_facet_create_refresh_command(); - var arg = command.args.pop(); - var option = that.search_option.val(); + var value = command.args.pop(); + var opt_name = that.state.search_option; - if (arg) { - command.set_option(option, arg); + if (value) { + command.set_option(opt_name, value); } return command; @@ -1229,24 +1229,21 @@ IPA.cert.search_facet = function(spec) { // parent method only sets expired flag when filter change, it doesn't // expect that option can change -> set expire flag for every search that.find = function() { + var filter = that.filter.val(); var search_opt = that.search_option.val(); - var old_filter = IPA.nav.get_state(that.managed_entity.name+'-filter'); - var state = {}; - state[that.managed_entity.name + '-filter'] = filter; - state[that.managed_entity.name + '-search-option'] = search_opt; - - that.set_expired_flag(); - IPA.nav.push_state(state); + that.state.set({ + 'search_option': search_opt, + 'filter': filter + }); }; that.show = function() { that.search_facet_show(); if (that.search_option) { - var search_opt = IPA.nav.get_state(that.entity.name+'-search-option'); - that.search_option.val(search_opt); + that.search_option.val(that.state.search_option); } }; |