diff --git a/core/misc/dialog/dialog.ajax.js b/core/assets/components/dialog/dialog.ajax.js similarity index 100% rename from core/misc/dialog/dialog.ajax.js rename to core/assets/components/dialog/dialog.ajax.js diff --git a/core/misc/dialog/dialog.jquery-ui.js b/core/assets/components/dialog/dialog.jquery-ui.js similarity index 100% rename from core/misc/dialog/dialog.jquery-ui.js rename to core/assets/components/dialog/dialog.jquery-ui.js diff --git a/core/misc/dialog/dialog.js b/core/assets/components/dialog/dialog.js similarity index 100% rename from core/misc/dialog/dialog.js rename to core/assets/components/dialog/dialog.js diff --git a/core/misc/dialog/dialog.position.js b/core/assets/components/dialog/dialog.position.js similarity index 100% rename from core/misc/dialog/dialog.position.js rename to core/assets/components/dialog/dialog.position.js diff --git a/core/misc/dialog.theme.css b/core/assets/components/dialog/dialog.theme.css similarity index 100% rename from core/misc/dialog.theme.css rename to core/assets/components/dialog/dialog.theme.css diff --git a/core/misc/dropbutton/dropbutton.css b/core/assets/components/dropbutton/dropbutton.css similarity index 100% rename from core/misc/dropbutton/dropbutton.css rename to core/assets/components/dropbutton/dropbutton.css diff --git a/core/misc/dropbutton/dropbutton.js b/core/assets/components/dropbutton/dropbutton.js similarity index 100% rename from core/misc/dropbutton/dropbutton.js rename to core/assets/components/dropbutton/dropbutton.js diff --git a/core/misc/dropbutton/dropbutton.theme.css b/core/assets/components/dropbutton/dropbutton.theme.css similarity index 100% rename from core/misc/dropbutton/dropbutton.theme.css rename to core/assets/components/dropbutton/dropbutton.theme.css diff --git a/core/misc/print.css b/core/assets/css/print.css similarity index 100% rename from core/misc/print.css rename to core/assets/css/print.css diff --git a/core/misc/vertical-tabs.css b/core/assets/css/vertical-tabs.css similarity index 100% rename from core/misc/vertical-tabs.css rename to core/assets/css/vertical-tabs.css diff --git a/core/misc/active-link.js b/core/assets/js/active-link.js similarity index 100% rename from core/misc/active-link.js rename to core/assets/js/active-link.js diff --git a/core/misc/ajax.js b/core/assets/js/ajax.js similarity index 100% rename from core/misc/ajax.js rename to core/assets/js/ajax.js diff --git a/core/misc/announce.js b/core/assets/js/announce.js similarity index 100% rename from core/misc/announce.js rename to core/assets/js/announce.js diff --git a/core/misc/autocomplete.js b/core/assets/js/autocomplete.js similarity index 100% rename from core/misc/autocomplete.js rename to core/assets/js/autocomplete.js diff --git a/core/misc/batch.js b/core/assets/js/batch.js similarity index 100% rename from core/misc/batch.js rename to core/assets/js/batch.js diff --git a/core/misc/collapse.js b/core/assets/js/collapse.js similarity index 100% rename from core/misc/collapse.js rename to core/assets/js/collapse.js diff --git a/core/misc/debounce.js b/core/assets/js/debounce.js similarity index 100% rename from core/misc/debounce.js rename to core/assets/js/debounce.js diff --git a/core/misc/displace.js b/core/assets/js/displace.js similarity index 100% rename from core/misc/displace.js rename to core/assets/js/displace.js diff --git a/core/misc/form.js b/core/assets/js/form.js similarity index 100% rename from core/misc/form.js rename to core/assets/js/form.js diff --git a/core/misc/jquery.intrinsic.js b/core/assets/js/jquery.intrinsic.js similarity index 100% rename from core/misc/jquery.intrinsic.js rename to core/assets/js/jquery.intrinsic.js diff --git a/core/misc/machine-name.js b/core/assets/js/machine-name.js similarity index 100% rename from core/misc/machine-name.js rename to core/assets/js/machine-name.js diff --git a/core/misc/progress.js b/core/assets/js/progress.js similarity index 100% rename from core/misc/progress.js rename to core/assets/js/progress.js diff --git a/core/misc/states.js b/core/assets/js/states.js similarity index 100% rename from core/misc/states.js rename to core/assets/js/states.js diff --git a/core/misc/tabbingmanager.js b/core/assets/js/tabbingmanager.js similarity index 100% rename from core/misc/tabbingmanager.js rename to core/assets/js/tabbingmanager.js diff --git a/core/misc/tabledrag.js b/core/assets/js/tabledrag.js similarity index 100% rename from core/misc/tabledrag.js rename to core/assets/js/tabledrag.js diff --git a/core/misc/tableheader.js b/core/assets/js/tableheader.js similarity index 100% rename from core/misc/tableheader.js rename to core/assets/js/tableheader.js diff --git a/core/misc/tableresponsive.js b/core/assets/js/tableresponsive.js similarity index 100% rename from core/misc/tableresponsive.js rename to core/assets/js/tableresponsive.js diff --git a/core/misc/tableselect.js b/core/assets/js/tableselect.js similarity index 100% rename from core/misc/tableselect.js rename to core/assets/js/tableselect.js diff --git a/core/misc/timezone.js b/core/assets/js/timezone.js similarity index 100% rename from core/misc/timezone.js rename to core/assets/js/timezone.js diff --git a/core/misc/vertical-tabs.js b/core/assets/js/vertical-tabs.js similarity index 100% rename from core/misc/vertical-tabs.js rename to core/assets/js/vertical-tabs.js diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 1a36202..236eec2 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -67,7 +67,7 @@ drupalSettings: drupal.active-link: version: VERSION js: - misc/active-link.js: {} + assets/js/active-link.js: {} dependencies: - core/drupal - core/drupalSettings @@ -76,7 +76,7 @@ drupal.active-link: drupal.ajax: version: VERSION js: - misc/ajax.js: {} + assets/js/ajax.js: {} dependencies: - core/jquery - core/drupal @@ -87,7 +87,7 @@ drupal.ajax: drupal.announce: version: VERSION js: - misc/announce.js: {} + assets/js/announce.js: {} dependencies: - core/drupal - core/drupal.debounce @@ -95,7 +95,7 @@ drupal.announce: drupal.autocomplete: version: VERSION js: - misc/autocomplete.js: { weight: -1 } + assets/js/autocomplete.js: { weight: -1 } dependencies: - core/jquery - core/drupal @@ -106,7 +106,7 @@ drupal.autocomplete: drupal.batch: version: VERSION js: - misc/batch.js: { cache: false } + assets/js/batch.js: { cache: false } dependencies: - core/jquery - core/drupal @@ -118,7 +118,7 @@ drupal.batch: drupal.collapse: version: VERSION js: - misc/collapse.js: {} + assets/js/collapse.js: {} dependencies: - core/jquery - core/modernizr @@ -129,7 +129,7 @@ drupal.collapse: drupal.debounce: version: VERSION js: - misc/debounce.js: {} + assets/js/debounce.js: {} dependencies: # @todo Remove Drupal dependency. - core/drupal @@ -137,12 +137,12 @@ drupal.debounce: drupal.dialog: version: VERSION js: - misc/dialog/dialog.js: {} - misc/dialog/dialog.position.js: {} - misc/dialog/dialog.jquery-ui.js: {} + assets/components/dialog/dialog.js: {} + assets/components/dialog/dialog.position.js: {} + assets/components/dialog/dialog.jquery-ui.js: {} css: theme: - misc/dialog.theme.css: {} + assets/components/dialog/dialog.theme.css: {} dependencies: - core/jquery - core/drupal @@ -154,7 +154,7 @@ drupal.dialog: drupal.dialog.ajax: version: VERSION js: - misc/dialog/dialog.ajax.js: {} + assets/components/dialog/dialog.ajax.js: {} dependencies: - core/jquery - core/drupal @@ -165,7 +165,7 @@ drupal.dialog.ajax: drupal.displace: version: VERSION js: - misc/displace.js: {} + assets/js/displace.js: {} dependencies: - core/jquery - core/drupal @@ -174,12 +174,12 @@ drupal.displace: drupal.dropbutton: version: VERSION js: - misc/dropbutton/dropbutton.js: {} + assets/components/dropbutton/dropbutton.js: {} css: component: - misc/dropbutton/dropbutton.css: {} + assets/components/dropbutton/dropbutton.css: {} theme: - misc/dropbutton/dropbutton.theme.css: {} + assets/components/dropbutton/dropbutton.theme.css: {} dependencies: - core/jquery - core/drupal @@ -189,7 +189,7 @@ drupal.dropbutton: drupal.form: version: VERSION js: - misc/form.js: {} + assets/js/form.js: {} dependencies: - core/jquery - core/drupal @@ -200,7 +200,7 @@ drupal.form: drupal.machine-name: version: VERSION js: - misc/machine-name.js: {} + assets/js/machine-name.js: {} dependencies: - core/jquery - core/jquery.once @@ -210,7 +210,7 @@ drupal.machine-name: drupal.progress: version: VERSION js: - misc/progress.js: {} + assets/js/progress.js: {} dependencies: - core/drupal - core/jquery @@ -219,7 +219,7 @@ drupal.progress: drupal.states: version: VERSION js: - misc/states.js: {} + assets/js/states.js: {} dependencies: - core/jquery - core/drupal @@ -229,7 +229,7 @@ drupal.states: drupal.tabbingmanager: version: VERSION js: - misc/tabbingmanager.js: {} + assets/js/tabbingmanager.js: {} dependencies: - core/jquery # Supplies the ':tabbable' pseudo selector. @@ -239,7 +239,7 @@ drupal.tabbingmanager: drupal.tabledrag: version: VERSION js: - misc/tabledrag.js: { weight: -1 } + assets/js/tabledrag.js: { weight: -1 } dependencies: - core/jquery - core/modernizr @@ -251,7 +251,7 @@ drupal.tabledrag: drupal.tableheader: version: VERSION js: - misc/tableheader.js: {} + assets/js/tableheader.js: {} dependencies: - core/jquery - core/drupal @@ -262,7 +262,7 @@ drupal.tableheader: drupal.tableresponsive: version: VERSION js: - misc/tableresponsive.js: {} + assets/js/tableresponsive.js: {} dependencies: - core/jquery - core/drupal @@ -271,7 +271,7 @@ drupal.tableresponsive: drupal.tableselect: version: VERSION js: - misc/tableselect.js: {} + assets/js/tableselect.js: {} dependencies: - core/drupal - core/jquery @@ -280,7 +280,7 @@ drupal.tableselect: drupal.timezone: version: VERSION js: - misc/timezone.js: {} + assets/js/timezone.js: {} dependencies: - core/jquery - core/jquery.once @@ -290,10 +290,10 @@ drupal.vertical-tabs: version: VERSION js: # Load before core/drupal.collapse. - misc/vertical-tabs.js: { weight: -1 } + assets/js/vertical-tabs.js: { weight: -1 } css: component: - misc/vertical-tabs.css: {} + assets/css/vertical-tabs.css: {} dependencies: - core/jquery - core/jquery.once @@ -364,7 +364,7 @@ jquery.form: jquery.intrinsic: version: VERSION js: - misc/jquery.intrinsic.js: {} + assets/js/jquery.intrinsic.js: {} dependencies: - core/jquery diff --git a/core/includes/common.inc b/core/includes/common.inc index 1c915e9..91db7d1 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -1140,8 +1140,8 @@ function drupal_clean_id_identifier($id) { * * Examples: * @code - * _drupal_add_js('core/misc/collapse.js'); - * _drupal_add_js('core/misc/collapse.js', 'file'); + * _drupal_add_js('core/assets/js/collapse.js'); + * _drupal_add_js('core/assets/js/collapse.js', 'file'); * _drupal_add_js('http://example.com/example.js', 'external'); * _drupal_add_js(array('myModule' => array('key' => 'value')), 'setting'); * @endcode diff --git a/core/lib/Drupal/Core/Ajax/AddCssCommand.php b/core/lib/Drupal/Core/Ajax/AddCssCommand.php index ccd6312..d0a8a41 100644 --- a/core/lib/Drupal/Core/Ajax/AddCssCommand.php +++ b/core/lib/Drupal/Core/Ajax/AddCssCommand.php @@ -13,9 +13,9 @@ * An AJAX command for adding css to the page via ajax. * * This command is implemented by Drupal.AjaxCommands.prototype.add_css() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * - * @see misc/ajax.js + * @see assets/js/ajax.js * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/AfterCommand.php b/core/lib/Drupal/Core/Ajax/AfterCommand.php index 8674c73..78a2bd2 100644 --- a/core/lib/Drupal/Core/Ajax/AfterCommand.php +++ b/core/lib/Drupal/Core/Ajax/AfterCommand.php @@ -17,7 +17,7 @@ * given selector. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @see http://docs.jquery.com/Manipulation/after#content * diff --git a/core/lib/Drupal/Core/Ajax/AppendCommand.php b/core/lib/Drupal/Core/Ajax/AppendCommand.php index d758720..d6b92cb 100644 --- a/core/lib/Drupal/Core/Ajax/AppendCommand.php +++ b/core/lib/Drupal/Core/Ajax/AppendCommand.php @@ -17,7 +17,7 @@ * by the given selector. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @see http://docs.jquery.com/Manipulation/append#content * diff --git a/core/lib/Drupal/Core/Ajax/BeforeCommand.php b/core/lib/Drupal/Core/Ajax/BeforeCommand.php index 7e3e2ea..f85da16 100644 --- a/core/lib/Drupal/Core/Ajax/BeforeCommand.php +++ b/core/lib/Drupal/Core/Ajax/BeforeCommand.php @@ -17,7 +17,7 @@ * the given selector. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @see http://docs.jquery.com/Manipulation/before#content * diff --git a/core/lib/Drupal/Core/Ajax/ChangedCommand.php b/core/lib/Drupal/Core/Ajax/ChangedCommand.php index 2832d58..11491da 100644 --- a/core/lib/Drupal/Core/Ajax/ChangedCommand.php +++ b/core/lib/Drupal/Core/Ajax/ChangedCommand.php @@ -16,7 +16,7 @@ * given selector as 'ajax-changed'. * * This command is implemented by Drupal.AjaxCommands.prototype.changed() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/CssCommand.php b/core/lib/Drupal/Core/Ajax/CssCommand.php index 470d583..d960190 100644 --- a/core/lib/Drupal/Core/Ajax/CssCommand.php +++ b/core/lib/Drupal/Core/Ajax/CssCommand.php @@ -16,7 +16,7 @@ * apply the CSS arguments to elements matched by the given selector. * * This command is implemented by Drupal.AjaxCommands.prototype.css() defined - * in misc/ajax.js. + * in assets/js/ajax.js. * * @see http://docs.jquery.com/CSS/css#properties * diff --git a/core/lib/Drupal/Core/Ajax/DataCommand.php b/core/lib/Drupal/Core/Ajax/DataCommand.php index 5b40e30..d04bb3c 100644 --- a/core/lib/Drupal/Core/Ajax/DataCommand.php +++ b/core/lib/Drupal/Core/Ajax/DataCommand.php @@ -16,7 +16,7 @@ * selector via jQuery's data cache. * * This command is implemented by Drupal.AjaxCommands.prototype.data() defined - * in misc/ajax.js. + * in assets/js/ajax.js. * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/HtmlCommand.php b/core/lib/Drupal/Core/Ajax/HtmlCommand.php index b9c9568..0f181de 100644 --- a/core/lib/Drupal/Core/Ajax/HtmlCommand.php +++ b/core/lib/Drupal/Core/Ajax/HtmlCommand.php @@ -17,7 +17,7 @@ * leaving the outer tags intact. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @see http://docs.jquery.com/Attributes/html#val * diff --git a/core/lib/Drupal/Core/Ajax/InsertCommand.php b/core/lib/Drupal/Core/Ajax/InsertCommand.php index d1f0133..a84ebb9 100644 --- a/core/lib/Drupal/Core/Ajax/InsertCommand.php +++ b/core/lib/Drupal/Core/Ajax/InsertCommand.php @@ -17,7 +17,7 @@ * variable of the element that triggered the request. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/InvokeCommand.php b/core/lib/Drupal/Core/Ajax/InvokeCommand.php index 4aa1ea1..1da7e34 100644 --- a/core/lib/Drupal/Core/Ajax/InvokeCommand.php +++ b/core/lib/Drupal/Core/Ajax/InvokeCommand.php @@ -18,7 +18,7 @@ * removeClass(), toggleClass(), etc. * * This command is implemented by Drupal.AjaxCommands.prototype.invoke() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/PrependCommand.php b/core/lib/Drupal/Core/Ajax/PrependCommand.php index d977197..825bf30 100644 --- a/core/lib/Drupal/Core/Ajax/PrependCommand.php +++ b/core/lib/Drupal/Core/Ajax/PrependCommand.php @@ -17,7 +17,7 @@ * by the given selector. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @see http://docs.jquery.com/Manipulation/prepend#content * diff --git a/core/lib/Drupal/Core/Ajax/RemoveCommand.php b/core/lib/Drupal/Core/Ajax/RemoveCommand.php index f0e5aab..def44f8 100644 --- a/core/lib/Drupal/Core/Ajax/RemoveCommand.php +++ b/core/lib/Drupal/Core/Ajax/RemoveCommand.php @@ -17,7 +17,7 @@ * within them. * * This command is implemented by Drupal.AjaxCommands.prototype.remove() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @see http://docs.jquery.com/Manipulation/remove#expr * diff --git a/core/lib/Drupal/Core/Ajax/ReplaceCommand.php b/core/lib/Drupal/Core/Ajax/ReplaceCommand.php index fb2b9e5..69ec457 100644 --- a/core/lib/Drupal/Core/Ajax/ReplaceCommand.php +++ b/core/lib/Drupal/Core/Ajax/ReplaceCommand.php @@ -17,7 +17,7 @@ * selector with the given HTML. * * This command is implemented by Drupal.AjaxCommands.prototype.insert() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * See * @link http://docs.jquery.com/Manipulation/replaceWith#content jQuery replaceWith command @endlink diff --git a/core/lib/Drupal/Core/Ajax/RestripeCommand.php b/core/lib/Drupal/Core/Ajax/RestripeCommand.php index 708344c..ffb59b9 100644 --- a/core/lib/Drupal/Core/Ajax/RestripeCommand.php +++ b/core/lib/Drupal/Core/Ajax/RestripeCommand.php @@ -16,7 +16,7 @@ * usually used after a table has been modified by a replace or append command. * * This command is implemented by Drupal.AjaxCommands.prototype.restripe() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/SettingsCommand.php b/core/lib/Drupal/Core/Ajax/SettingsCommand.php index a5a8dc8..c574756 100644 --- a/core/lib/Drupal/Core/Ajax/SettingsCommand.php +++ b/core/lib/Drupal/Core/Ajax/SettingsCommand.php @@ -17,7 +17,7 @@ * given array, depending on the value of the $merge parameter. * * This command is implemented by Drupal.AjaxCommands.prototype.settings() - * defined in misc/ajax.js. + * defined in assets/js/ajax.js. * * @ingroup ajax */ diff --git a/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php b/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php index 2ce74db..bb6af78 100644 --- a/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php +++ b/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php @@ -18,7 +18,7 @@ * forms. * * This command is implemented by - * Drupal.AjaxCommands.prototype.update_build_id() defined in misc/ajax.js. + * Drupal.AjaxCommands.prototype.update_build_id() defined in assets/js/ajax.js. *O * @ingroup ajax */ diff --git a/core/modules/book/templates/book-export-html.html.twig b/core/modules/book/templates/book-export-html.html.twig index 5fb2e97..e7e258b 100644 --- a/core/modules/book/templates/book-export-html.html.twig +++ b/core/modules/book/templates/book-export-html.html.twig @@ -24,7 +24,7 @@ {{ title }} {{ page.head }} - + {# diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index 273bf3c..ccbfaff 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -54,8 +54,8 @@ function simpletest_js_alter(&$javascript) { // Since SimpleTest is a special use case for the table select, stick the // SimpleTest JavaScript above the table select. $simpletest = drupal_get_path('module', 'simpletest') . '/simpletest.js'; - if (array_key_exists($simpletest, $javascript) && array_key_exists('core/misc/tableselect.js', $javascript)) { - $javascript[$simpletest]['weight'] = $javascript['core/misc/tableselect.js']['weight'] - 1; + if (array_key_exists($simpletest, $javascript) && array_key_exists('core/assets/js/tableselect.js', $javascript)) { + $javascript[$simpletest]['weight'] = $javascript['core/assets/js/tableselect.js']['weight'] - 1; } } diff --git a/core/modules/system/language.api.php b/core/modules/system/language.api.php index d0ab879..078010e 100644 --- a/core/modules/system/language.api.php +++ b/core/modules/system/language.api.php @@ -58,7 +58,7 @@ * - For Twig templates, use 't' or 'trans' filters to indicate translatable * text. See https://www.drupal.org/node/2133321 for more information. * - In JavaScript code, use the Drupal.t() and Drupal.formatPlural() functions - * (defined in core/misc/drupal.js) to translate UI text. + * (defined in misc/drupal.js) to translate UI text. * - If you are using a custom module, theme, etc. that is not hosted on * Drupal.org, see * @link interface_translation_properties Interface translation properties topic @endlink diff --git a/core/modules/system/src/Tests/Ajax/DialogTest.php b/core/modules/system/src/Tests/Ajax/DialogTest.php index 4e29567..3ac9ab5 100644 --- a/core/modules/system/src/Tests/Ajax/DialogTest.php +++ b/core/modules/system/src/Tests/Ajax/DialogTest.php @@ -138,7 +138,7 @@ public function testDialog() { // Check that CSS and JavaScript are "added" to the page dynamically. $this->assertTrue(in_array('dialog.css', array_keys($ajax_result[0]['settings']['ajaxPageState']['css'])), 'jQuery UI dialog CSS added to the page.'); $this->assertTrue(in_array('core/assets/vendor/jquery.ui/ui/dialog-min.js', array_keys($ajax_result[0]['settings']['ajaxPageState']['js'])), 'jQuery UI dialog JS added to the page.'); - $this->assertTrue(in_array('core/misc/dialog/dialog.ajax.js', array_keys($ajax_result[0]['settings']['ajaxPageState']['js'])), 'Drupal dialog JS added to the page.'); + $this->assertTrue(in_array('core/assets/components/dialog/dialog.ajax.js', array_keys($ajax_result[0]['settings']['ajaxPageState']['js'])), 'Drupal dialog JS added to the page.'); // Check that the response matches the expected value. $this->assertEqual($modal_expected_response, $ajax_result[3], 'POST request modal dialog JSON response matches.'); diff --git a/core/modules/system/src/Tests/Common/AttachedAssetsTest.php b/core/modules/system/src/Tests/Common/AttachedAssetsTest.php index 8401acf..63bb771 100644 --- a/core/modules/system/src/Tests/Common/AttachedAssetsTest.php +++ b/core/modules/system/src/Tests/Common/AttachedAssetsTest.php @@ -352,7 +352,7 @@ function testAlter() { // tableselect.js. See simpletest_js_alter() to see where this alteration // takes place. $js = drupal_get_js(); - $this->assertTrue(strpos($js, 'simpletest.js') < strpos($js, 'core/misc/tableselect.js'), 'Altering JavaScript weight through the alter hook.'); + $this->assertTrue(strpos($js, 'simpletest.js') < strpos($js, 'core/assets/js/tableselect.js'), 'Altering JavaScript weight through the alter hook.'); } /** diff --git a/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php b/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php index 44a47c2..9e032cd 100644 --- a/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php +++ b/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php @@ -38,8 +38,8 @@ protected function setUp() { */ function testJavaScriptOrdering() { $this->drupalGet('form_test/vertical-tabs'); - $position1 = strpos($this->content, 'core/misc/vertical-tabs.js'); - $position2 = strpos($this->content, 'core/misc/collapse.js'); + $position1 = strpos($this->content, 'core/assets/js/vertical-tabs.js'); + $position2 = strpos($this->content, 'core/assets/js/collapse.js'); $this->assertTrue($position1 !== FALSE && $position2 !== FALSE && $position1 < $position2, 'vertical-tabs.js is included before collapse.js'); } diff --git a/core/modules/system/src/Tests/System/SystemAuthorizeTest.php b/core/modules/system/src/Tests/System/SystemAuthorizeTest.php index cbc359a..de8da16 100644 --- a/core/modules/system/src/Tests/System/SystemAuthorizeTest.php +++ b/core/modules/system/src/Tests/System/SystemAuthorizeTest.php @@ -61,6 +61,6 @@ function testFileTransferHooks() { $this->assertText('System Test Username'); // Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets as // expected to the first page of the authorize.php script. - $this->assertRaw('core/misc/states.js'); + $this->assertRaw('core/assets/js/states.js'); } } diff --git a/core/modules/system/src/Tests/Theme/TableTest.php b/core/modules/system/src/Tests/Theme/TableTest.php index 412cb8e..138cc4e 100644 --- a/core/modules/system/src/Tests/Theme/TableTest.php +++ b/core/modules/system/src/Tests/Theme/TableTest.php @@ -47,7 +47,7 @@ function testThemeTableStickyHeaders() { ); $this->render($table); $js = _drupal_add_js(); - $this->assertTrue(isset($js['core/misc/tableheader.js']), 'tableheader.js found.'); + $this->assertTrue(isset($js['core/assets/js/tableheader.js']), 'tableheader.js found.'); $this->assertRaw('sticky-enabled'); drupal_static_reset('_drupal_add_js'); } @@ -72,7 +72,7 @@ function testThemeTableNoStickyHeaders() { ); $this->render($table); $js = _drupal_add_js(); - $this->assertFalse(isset($js['core/misc/tableheader.js']), 'tableheader.js not found.'); + $this->assertFalse(isset($js['core/assets/js/tableheader.js']), 'tableheader.js not found.'); $this->assertNoRaw('sticky-enabled'); drupal_static_reset('_drupal_add_js'); } diff --git a/core/modules/system/tests/upgrade/drupal-7.language.database.php b/core/modules/system/tests/upgrade/drupal-7.language.database.php index b113e36..69aa9e0 100644 --- a/core/modules/system/tests/upgrade/drupal-7.language.database.php +++ b/core/modules/system/tests/upgrade/drupal-7.language.database.php @@ -236,7 +236,7 @@ )) ->values(array( 'lid' => '15', - 'location' => 'misc/tabledrag.js', + 'location' => 'assets/js/tabledrag.js', 'textgroup' => 'default', 'source' => 'Re-order rows by numerical weight instead of dragging.', 'context' => '', @@ -244,7 +244,7 @@ )) ->values(array( 'lid' => '16', - 'location' => 'misc/tabledrag.js', + 'location' => 'assets/js/tabledrag.js', 'textgroup' => 'default', 'source' => 'Show row weights', 'context' => '', @@ -252,7 +252,7 @@ )) ->values(array( 'lid' => '17', - 'location' => 'misc/tabledrag.js', + 'location' => 'assets/js/tabledrag.js', 'textgroup' => 'default', 'source' => 'Hide row weights', 'context' => '', @@ -260,7 +260,7 @@ )) ->values(array( 'lid' => '18', - 'location' => 'misc/tabledrag.js', + 'location' => 'assets/js/tabledrag.js', 'textgroup' => 'default', 'source' => 'Drag to re-order', 'context' => '', @@ -268,7 +268,7 @@ )) ->values(array( 'lid' => '19', - 'location' => 'misc/tabledrag.js', + 'location' => 'assets/js/tabledrag.js', 'textgroup' => 'default', 'source' => 'Changes made in this table will not be saved until the form is submitted.', 'context' => '', @@ -276,7 +276,7 @@ )) ->values(array( 'lid' => '20', - 'location' => 'misc/collapse.js', + 'location' => 'assets/js/collapse.js', 'textgroup' => 'default', 'source' => 'Hide', 'context' => '', @@ -284,7 +284,7 @@ )) ->values(array( 'lid' => '21', - 'location' => 'misc/collapse.js', + 'location' => 'assets/js/collapse.js', 'textgroup' => 'default', 'source' => 'Show', 'context' => '', @@ -384,7 +384,7 @@ )) ->values(array( 'name' => 'javascript_parsed', - 'value' => 'a:16:{i:0;s:14:"misc/drupal.js";i:1;s:14:"misc/jquery.js";i:2;s:19:"misc/jquery.once.js";s:10:"refresh:ca";s:7:"waiting";i:3;s:29:"misc/ui/jquery.ui.core.min.js";i:4;s:21:"misc/jquery.ba-bbq.js";i:5;s:33:"modules/overlay/overlay-parent.js";i:6;s:32:"modules/contextual/contextual.js";i:7;s:21:"misc/jquery.cookie.js";i:8;s:26:"modules/toolbar/toolbar.js";i:9;s:32:"modules/overlay/overlay-child.js";i:10;s:19:"misc/tableheader.js";i:11;s:17:"misc/tabledrag.js";i:12;s:12:"misc/form.js";i:13;s:16:"misc/collapse.js";s:10:"refresh:cv";s:7:"waiting";}', + 'value' => 'a:16:{i:0;s:14:"misc/drupal.js";i:1;s:14:"assets/js/jquery.js";i:2;s:19:"assets/js/jquery.once.js";s:10:"refresh:ca";s:7:"waiting";i:3;s:29:"assets/js/ui/jquery.ui.core.min.js";i:4;s:21:"assets/js/jquery.ba-bbq.js";i:5;s:33:"modules/overlay/overlay-parent.js";i:6;s:32:"modules/contextual/contextual.js";i:7;s:21:"assets/js/jquery.cookie.js";i:8;s:26:"modules/toolbar/toolbar.js";i:9;s:32:"modules/overlay/overlay-child.js";i:10;s:19:"assets/js/tableheader.js";i:11;s:17:"assets/js/tabledrag.js";i:12;s:12:"assets/js/form.js";i:13;s:16:"assets/js/collapse.js";s:10:"refresh:cv";s:7:"waiting";}', )) ->values(array( 'name' => 'language_count', diff --git a/core/themes/classy/templates/book-export-html.html.twig b/core/themes/classy/templates/book-export-html.html.twig index cbeb3b3..82fe14e 100644 --- a/core/themes/classy/templates/book-export-html.html.twig +++ b/core/themes/classy/templates/book-export-html.html.twig @@ -24,7 +24,7 @@ {{ title }} {{ page.head }} - + {# diff --git a/core/themes/seven/css/components/vertical-tabs.css b/core/themes/seven/css/components/vertical-tabs.css index 325a3af..14907c2 100644 --- a/core/themes/seven/css/components/vertical-tabs.css +++ b/core/themes/seven/css/components/vertical-tabs.css @@ -1,5 +1,5 @@ /** - * Override of misc/vertical-tabs.css. + * Override of assets/css/vertical-tabs.css. */ .vertical-tabs { position: relative;