diff --git a/core/modules/views/js/ajax_view.js b/core/modules/views/js/ajax_view.js index 9b27a92745..8c8f940d82 100644 --- a/core/modules/views/js/ajax_view.js +++ b/core/modules/views/js/ajax_view.js @@ -100,9 +100,9 @@ // Add the ajax to exposed forms. this.$exposed_form = this.$view.find( - "form[id^=\"views-exposed-form-" - .concat(settings.view_name.replace(/_/g, '-'), "-") - .concat(settings.view_display_id.replace(/_/g, '-'), "\"]") + 'form[id^="views-exposed-form-' + .concat(settings.view_name.replace(/_/g, '-'), '-') + .concat(settings.view_display_id.replace(/_/g, '-'), '"]'), ); once('exposed-form', this.$exposed_form).forEach( $.proxy(this.attachExposedFormAjax, this), diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php index 381d23d502..56da92acad 100644 --- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php @@ -310,7 +310,7 @@ public function testNoDoubleIdsForSameExposedForm() { $this->drupalGet('test_exposed_block'); $this->assertNoDuplicateIds(); - } + } /** * Tests the input required exposed form type. @@ -551,7 +551,6 @@ protected function assertNoDuplicateIds() { $this->assertTrue(TRUE, $message); } - /** * Tests the "Remember the last selection" functionality. */