summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-05-27 11:32:17 -0400
committerAdam Young <ayoung@redhat.com>2011-06-01 22:15:11 -0400
commitc0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4 (patch)
tree6fb9f9f374bb8734b2cea37aa68688172d978f36 /install/ui/widget.js
parent6039fdd6b3002f65ecd0121b7ca6d31e49b9590e (diff)
downloadfreeipa-c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4.tar.gz
freeipa-c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4.tar.xz
freeipa-c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4.zip
automount delete key
indirect automount maps code review changes for automount: Removed: fields for mount and parentmap in maps details since they are not present in show or mod Hid undo link for adder dialog set up click handler for checkboxes when row does not have primary key removed add override in automountmap_adder_dialog moved 'var input...' in automount.js line 158 to start of method. changed logic in if statmenet ,dialog.js line 628 it if (!first) as suggested
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index ac78de259..1c12ac480 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -36,7 +36,7 @@ IPA.widget = function(spec) {
that.disabled = spec.disabled;
that.hidden = spec.hidden;
-
+ that.conditional = spec.conditional;
// read_only is set during initialization
that.read_only = spec.read_only;
@@ -1143,7 +1143,8 @@ IPA.table_widget = function (spec) {
if (that.scrollable && (i == columns.length-1)) {
if (column.width) {
- var width = parseInt(column.width.substring(0, column.width.length-2),10);
+ var width = parseInt(
+ column.width.substring(0, column.width.length-2),10);
width += 16;
th.css('width', width+'px');
}
@@ -1348,6 +1349,11 @@ IPA.table_widget = function (spec) {
var tr = that.row.clone();
tr.appendTo(that.tbody);
+ $('input[name="select"]', tr).click(function(){
+ that.select_changed();
+ });
+
+
var columns = that.columns.values;
for (var i=0; i<columns.length; i++){
var column = columns[i];
@@ -1356,12 +1362,7 @@ IPA.table_widget = function (spec) {
value = value ? value.toString() : '';
if (column.primary_key) {
- // set checkbox value
$('input[name="select"]', tr).val(value);
-
- $('input[name="select"]', tr).click(function(){
- that.select_changed();
- });
}
var span = $('span[name="'+column.name+'"]', tr);