summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-05-09 20:46:52 -0500
committerAdam Young <ayoung@redhat.com>2011-05-11 11:17:30 -0400
commit314d6be229736d76aaf538e9e05894ee42b476fb (patch)
tree52c9b3ebb8f9db2ae280e06e5e2bb394b3a08eb5 /install/ui/widget.js
parent90fb4ca00a26d8509ee22721474b09d080c6ce93 (diff)
downloadfreeipa-314d6be229736d76aaf538e9e05894ee42b476fb.tar.gz
freeipa-314d6be229736d76aaf538e9e05894ee42b476fb.tar.xz
freeipa-314d6be229736d76aaf538e9e05894ee42b476fb.zip
Updated DNS interface.
The IPA.records_facet has been converted into a subclass of IPA.search_facet. This helps remove duplicate table code and provide consistent DOM element attributes for Selenium tests.
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index a376c3ac6..dd2288886 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1218,11 +1218,9 @@ IPA.table_widget = function (spec) {
}).appendTo(td);
};
-
that.select_changed = function(){
};
-
that.setup = function(container) {
that.widget_setup(container);
@@ -1292,6 +1290,10 @@ IPA.table_widget = function (spec) {
return values;
};
+ that.get_selected_rows = function() {
+ return $('input[name="select"]:checked', that.tbody).closest('tr');
+ };
+
that.get_record = function(result, index) {
var record = {};
for (var i=0; i<that.columns.length; i++){
@@ -1325,7 +1327,6 @@ IPA.table_widget = function (spec) {
$('input[name="select"]', tr).click(function(){
that.select_changed();
});
-
}
var span = $('span[name="'+column.name+'"]', tr);