Author: jablko
Date: Fri Oct 15 14:07:22 2010
New Revision: 8168
Log:
Identifier no longer needed
Modified:
trunk/js/multiDelete.js
Modified: trunk/js/multiDelete.js
==============================================================================
--- trunk/js/multiDelete.js Fri Oct 15 13:58:55 2010 (r8167)
+++ trunk/js/multiDelete.js Fri Oct 15 14:07:22 2010 (r8168)
@@ -3,36 +3,6 @@
(function ($)
{
/**
- * Replace delete checkboxes with delete icon, and dynamically hide
- * elements marked for deletion.
- *
- * @param object thisElement dom <select> element to operate on
- * @return void
- */
- Qubit.multiDelete = function ()
- {
- $(this).attr('checked', 'checked');
-
- // Hide element
- var $parentRows = $(this).closest('tr');
-
- // Add "animateNicely" <div/> to each <td/> to make "hide" animation
- // play nicely
- $('td:not(:has(.animateNicely))', $parentRows)
-
- // Add a because .hide() doesn't seem to operate on <div/>s
- // that contain only whitespace
- .append(' ')
-
- .wrapInner('<div class="animateNicely"/>');
-
- $('div:visible', $parentRows).hide('normal', function ()
- {
- $parentRows.hide();
- });
- }
-
- /**
* On page load, replace "multiDelete" checkboxes with delete icons
*/
Drupal.behaviors.replaceMultiDelete = {
@@ -45,7 +15,25 @@
return $('<button class="delete-small"
type="button"/>').click(function ()
{
- Qubit.multiDelete.apply(input);
+ $(input).attr('checked', 'checked');
+
+ // Hide element
+ var $parentRows = $(this).closest('tr');
+
+ // Add "animateNicely" <div/> to each <td/> to make "hide"
+ // animation play nicely
+ $('td:not(:has(.animateNicely))', $parentRows)
+
+ // Add a because .hide() doesn't seem to operate
+ // on <div/>s that contain only whitespace
+ .append(' ')
+
+ .wrapInner('<div class="animateNicely"/>');
+
+ $('div:visible', $parentRows).hide('normal', function ()
+ {
+ $parentRows.hide();
+ });
});
})
--
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.