summaryrefslogtreecommitdiffstats
path: root/install/static/widget.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-11-15 16:41:21 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-11-17 21:50:03 -0500
commit632639b62ddad72e31daa62ef21f992299ec0b8e (patch)
tree0e846397e8d6136678112bf1bd6dd0616066e323 /install/static/widget.js
parent7abd8c6ecb0a0aafeaac9a4baa1d5db96722a3ab (diff)
downloadfreeipa.git-632639b62ddad72e31daa62ef21f992299ec0b8e.tar.gz
freeipa.git-632639b62ddad72e31daa62ef21f992299ec0b8e.tar.xz
freeipa.git-632639b62ddad72e31daa62ef21f992299ec0b8e.zip
action select
if exactly one entity is selected, it enables the entity-facet links in the action panel, and sets the pkey in bbq to the pkey of the selected
Diffstat (limited to 'install/static/widget.js')
-rwxr-xr-xinstall/static/widget.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/install/static/widget.js b/install/static/widget.js
index 84b1d9ae..1b99831e 100755
--- a/install/static/widget.js
+++ b/install/static/widget.js
@@ -544,6 +544,11 @@ function ipa_table_widget(spec) {
}).appendTo(td);
};
+
+ that.select_changed = function(){
+ }
+
+
that.setup = function(container) {
that.widget_setup(container);
@@ -563,6 +568,8 @@ function ipa_table_widget(spec) {
for (var i=0; i<checkboxes.length; i++) {
checkboxes[i].checked = checked;
}
+ that.select_changed();
+ return false;
});
that.row = that.tbody.children().first();
@@ -627,6 +634,11 @@ function ipa_table_widget(spec) {
if (column.primary_key) {
// set checkbox value
$('input[name="select"]', tr).val(value);
+
+ $('input[name="select"]', tr).click(function(){
+ that.select_changed();
+ });
+
}
column.setup(tr, name, value, record);