Author: jablko
Date: Mon Oct 18 09:56:44 2010
New Revision: 8225

Log:
Cosmetic change

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Mon Oct 18 09:43:23 2010        (r8224)
+++ trunk/js/dialog.js  Mon Oct 18 09:56:44 2010        (r8225)
@@ -79,15 +79,15 @@
   } );
 
   // Create YUI container for dialog
-  var yuiDialogWrapper = $(
-'<div class="yui-skin-sam">' +
-  '<div id="' + this.table.id + '">' +
-    '<div class="hd">' + this.label + '</div>' +
-    '<div class="bd">' +
-      '<form action="" method="post" style="border: none"></form>' +
-    '</div>' +
-  '</div>' +
-'</div>');
+  var $yuiDialogWrapper = $('<div class="yui-skin-sam">'
+    + '  <div id="' + this.table.id + '">'
+    + '    <div class="hd">'
+    + '      ' + this.label
+    + '    </div><div class="bd">'
+    + '      <form action="" method="post" style="border: none"></form>'
+    + '    </div>'
+    + '  </div>'
+    + '</div>');
 
   // Bind onClick event to "Add" link
   var addLink = $('<a href="#">Add new</a>');
@@ -99,23 +99,23 @@
   // Replace dialog table with "Add" link and move into dialog wrapper
   $(this.table)
     .replaceWith(addLink)
-    .appendTo(yuiDialogWrapper.find('form'));
+    .appendTo($yuiDialogWrapper.find('form'));
 
   // Tooltips (TODO Move to js/description.js?)
-  yuiDialogWrapper.find('.description').addClass('description-right').hide();
-  yuiDialogWrapper.find('td:has(.description)')
+  $yuiDialogWrapper.find('.description').addClass('description-right').hide();
+  $yuiDialogWrapper.find('td:has(.description)')
     .focusin(function()
       {
-        yuiDialogWrapper.find('.description').hide();
+        $yuiDialogWrapper.find('.description').hide();
         $(this).find('.description').show();
       })
     .focusout(function()
       {
-        yuiDialogWrapper.find('.description').hide();
+        $yuiDialogWrapper.find('.description').hide();
       });
 
-  // Prepend yuiDialogWrapper to document body
-  $('body').prepend(yuiDialogWrapper);
+  // Prepend $yuiDialogWrapper to document body
+  $('body').prepend($yuiDialogWrapper);
 
   // Submit dialog data
   var handleYuiSubmit = function () {

-- 
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.

Reply via email to