commit 3d4157c7afac1613f9ef950d14dabb9b93a6fd1d Author: pheadeaux Date: Sat Sep 26 12:26:40 2015 +0200 my patches diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js index d010b3f..88b95fb 100644 --- a/core/misc/vertical-tabs.js +++ b/core/misc/vertical-tabs.js @@ -124,6 +124,11 @@ if (event.keyCode === 13) { self.focus(); // Set focus on the first input field of the visible details/tab pane. + $('.vertical-tabs__pane') + .find('input, button, textarea, select') + .filter(':visible:enabled') + .eq(0) + .trigger('focus'); $('.vertical-tabs__pane').find('input, button, textarea, select').filter(':visible:enabled').eq(0).trigger('focus'); } }); diff --git a/core/modules/content_translation/content_translation.admin.js b/core/modules/content_translation/content_translation.admin.js index 726d2f1..e0e16ce 100644 --- a/core/modules/content_translation/content_translation.admin.js +++ b/core/modules/content_translation/content_translation.admin.js @@ -86,15 +86,26 @@ attach: function (context) { // Initially hide all field rows for non translatable bundles and all // column rows for non translatable fields. - $(context).find('table .bundle-settings .translatable').find('input, button, textarea, select').once('translation-entity-admin-hide').each(function () { - var $input = $(this); - var $bundleSettings = $input.closest('.bundle-settings'); - if (!$input.is(':checked')) { - $bundleSettings.nextUntil('.bundle-settings').hide(); - } - else { - $bundleSettings.nextUntil('.bundle-settings', '.field-settings').find('.translatable').find('input, button, textarea, select').not(':checked').closest('.field-settings').nextUntil(':not(.column-settings)').hide(); - } + $(context) + .find('table .bundle-settings .translatable') + .find('input, button, textarea, select') + .once('translation-entity-admin-hide') + .each(function () { + var $input = $(this); + var $bundleSettings = $input.closest('.bundle-settings'); + if (!$input.is(':checked')) { + $bundleSettings.nextUntil('.bundle-settings').hide(); + } + else { + $bundleSettings + .nextUntil('.bundle-settings', '.field-settings') + .find('.translatable') + .find('input, button, textarea, select') + .not(':checked') + .closest('.field-settings') + .nextUntil(':not(.column-settings)') + .hide(); + } }); // When a bundle is made translatable all of its fields should inherit diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js index aad5e62..c87de20 100644 --- a/core/modules/views_ui/js/views-admin.js +++ b/core/modules/views_ui/js/views-admin.js @@ -268,10 +268,13 @@ * @type {jQuery} */ this.$form = $form; + /** * Find the wrapper of the displayed text. */ - this.$form.find('.views-filterable-options input[type="checkbox"]').on('click', $.proxy(this.handleCheck, this)); + this.$form + .find('.views-filterable-options input[type="checkbox"]') + .on('click', $.proxy(this.handleCheck, this)); this.$selected_div = this.$form.find('.views-selected-options').parent(); this.$selected_div.hide();