We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88f580 commit 7ea4721Copy full SHA for 7ea4721
app/code/Magento/Review/Block/Adminhtml/Edit.php
@@ -222,9 +222,12 @@ protected function _construct()
222
}
223
';
224
if (!$this->_storeManager->hasSingleStore()) {
225
- $this->_formInitScripts[] = 'Event.observe(window, \'load\', function(){
226
- Event.observe($("select_stores"), \'change\', review.updateRating);
227
- });
+ $this->_formInitScripts[] = '
+ require(["jquery","prototype"], function(jQuery){
+ Event.observe(window, \'load\', function(){
228
+ Event.observe($("select_stores"), \'change\', review.updateRating);
229
+ });
230
+ })
231
232
233
0 commit comments