summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorAlex Pott2017-10-11 14:40:35 (GMT)
committerAlex Pott2017-10-11 14:40:35 (GMT)
commit336d30dc4dc2488badbaf81f8071a91d7b96d0af (patch)
treec9302b9f0ad0afb41b762ad741b25370f2a7aba8 /core/modules/views_ui
parentfa985778ad46e4f5687a7f4a1ce45116027e1b37 (diff)
Issue #2914719 by nod_, droplet: JS codestyle: newline-per-chained-call
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/js/views-admin.es6.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/core/modules/views_ui/js/views-admin.es6.js b/core/modules/views_ui/js/views-admin.es6.js
index 1078209..ed1503e 100644
--- a/core/modules/views_ui/js/views-admin.es6.js
+++ b/core/modules/views_ui/js/views-admin.es6.js
@@ -346,8 +346,15 @@
const $addDisplayDropdown = $(`<li class="add"><a href="#"><span class="icon add"></span>${Drupal.t('Add')}</a><ul class="action-list" style="display:none;"></ul></li>`);
const $displayButtons = $menu.nextAll('input.add-display').detach();
- $displayButtons.appendTo($addDisplayDropdown.find('.action-list')).wrap('<li>')
- .parent().eq(0).addClass('first').end().eq(-1).addClass('last');
+ $displayButtons
+ .appendTo($addDisplayDropdown.find('.action-list'))
+ .wrap('<li>')
+ .parent()
+ .eq(0)
+ .addClass('first')
+ .end()
+ .eq(-1)
+ .addClass('last');
// Remove the 'Add ' prefix from the button labels since they're being
// placed in an 'Add' dropdown. @todo This assumes English, but so does
// $addDisplayDropdown above. Add support for translation.
@@ -1021,7 +1028,11 @@
*/
Drupal.behaviors.viewsRemoveIconClass = {
attach(context) {
- $(context).find('.dropbutton').once('dropbutton-icon').find('.icon').removeClass('icon');
+ $(context)
+ .find('.dropbutton')
+ .once('dropbutton-icon')
+ .find('.icon')
+ .removeClass('icon');
},
};