image_styles_admin.js 523 B

12345678910111213141516171819
  1. (function($) {
  2. "use strict";
  3. Drupal.behaviors.imageStylesAdmin = {
  4. attach: function(context) {
  5. $('#image-styles').find('th.expand-all').once('expand-all', function() {
  6. $(this).click(function() {
  7. $('#image-styles').find('td.description .inner.expand').addClass('expanded');
  8. });
  9. });
  10. $('#image-styles').find('td.description').once('description', function() {
  11. $('.inner.expand', $(this)).click(function() {
  12. $(this).toggleClass('expanded');
  13. });
  14. });
  15. }
  16. };
  17. })(jQuery);