summaryrefslogtreecommitdiffstats
path: root/install/ui/jquery.ordered-map.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2011-11-21 16:43:52 -0600
committerEndi S. Dewata <edewata@redhat.com>2011-12-07 15:33:06 +0000
commit9276e51bce438b0686deac827fce2ca60a5301e1 (patch)
treecb82201c759df569131a836489cc57ec939619a1 /install/ui/jquery.ordered-map.js
parentd040b93e386457266d5095bd696fa146962b640c (diff)
downloadfreeipa.git-9276e51bce438b0686deac827fce2ca60a5301e1.tar.gz
freeipa.git-9276e51bce438b0686deac827fce2ca60a5301e1.tar.xz
freeipa.git-9276e51bce438b0686deac827fce2ca60a5301e1.zip
Fixed navigation buttons for HBAC Test.
The Back, Next, and New Test buttons in HBAC Test have been fixed to work properly. Ticket #388
Diffstat (limited to 'install/ui/jquery.ordered-map.js')
-rwxr-xr-xinstall/ui/jquery.ordered-map.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/install/ui/jquery.ordered-map.js b/install/ui/jquery.ordered-map.js
index ea61b954..f30f8d13 100755
--- a/install/ui/jquery.ordered-map.js
+++ b/install/ui/jquery.ordered-map.js
@@ -44,7 +44,7 @@ jQuery.ordered_map = jQuery.fn.ordered_map = function() {
that.remove = function(key) {
- var i = that.keys.indexOf(key);
+ var i = that.get_key_index(key);
if (i<0) return null;
that.keys.splice(i, 1);
@@ -63,5 +63,17 @@ jQuery.ordered_map = jQuery.fn.ordered_map = function() {
that.length = that.keys.length;
};
+ that.get_key_index = function(key) {
+ return that.keys.indexOf(key);
+ };
+
+ that.get_key_by_index = function(index) {
+ return that.keys[index];
+ };
+
+ that.get_value_by_index = function(index) {
+ return that.values[index];
+ };
+
return that;
};