Author: jablko
Date: Mon Oct 18 10:03:22 2010
New Revision: 8226
Log:
Cosmetic change
Modified:
trunk/js/dialog.js
Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js Mon Oct 18 09:56:44 2010 (r8225)
+++ trunk/js/dialog.js Mon Oct 18 10:03:22 2010 (r8226)
@@ -51,7 +51,7 @@
}
// Build an internal representation of HTML table elements
- $(thisDialog.table).find(':input').each(function ()
+ $(':input', thisDialog.table).each(function ()
{
if ('' == this.name || undefined != thisDialog.fields[this.name])
{
@@ -101,15 +101,19 @@
.replaceWith(addLink)
.appendTo($yuiDialogWrapper.find('form'));
- // Tooltips (TODO Move to js/description.js?)
- $yuiDialogWrapper.find('.description').addClass('description-right').hide();
+ // Tooltips
+ // TODO Move to description.js?
+ $yuiDialogWrapper.find('.description')
+ .addClass('description-right')
+ .hide();
+
$yuiDialogWrapper.find('td:has(.description)')
- .focusin(function()
+ .focusin(function ()
{
$yuiDialogWrapper.find('.description').hide();
- $(this).find('.description').show();
+ $('.description', this).show();
})
- .focusout(function()
+ .focusout(function ()
{
$yuiDialogWrapper.find('.description').hide();
});
@@ -220,7 +224,7 @@
}
else if ('radio' == this.fields[fname].type)
{
- return $(thisDialog.table).find('input[name='+fname+']:checked').val();
+ return $('input[name=' + fname + ']:checked', thisDialog.table).val();
}
else if (undefined != this.fields[fname].value)
{
@@ -393,7 +397,7 @@
this.save = function (yuiDialogData)
{
- $(thisDialog.table).find('input.form-autocomplete').each(function ()
+ $('input.form-autocomplete', thisDialog.table).each(function ()
{
$hidden = $(this).prev('input:hidden');
@@ -499,7 +503,7 @@
return;
}
- var tr = $('#' + this.options.displayTable).find('tr[id="' + thisId +
'"]');
+ var tr = $('#' + this.options.displayTable + ' tr[id=' + thisId + ']');
// Wrap <td/> contents in <div/> so the row hides nicely then hide and
// remove row
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.