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.
2 parents 68c903f + c422bdf commit 8990635Copy full SHA for 8990635
app/code/Magento/Review/Block/Adminhtml/Edit.php
@@ -220,10 +220,16 @@ protected function _construct()
220
);
221
}
222
223
- Event.observe(window, \'load\', function(){
224
- Event.observe($("select_stores"), \'change\', review.updateRating);
225
- });
226
';
+ if (!$this->_storeManager->hasSingleStore()) {
+ $this->_formInitScripts[] = '
+ require(["jquery","prototype"], function(jQuery){
227
+ Event.observe(window, \'load\', function(){
228
+ Event.observe($("select_stores"), \'change\', review.updateRating);
229
+ });
230
+ })
231
+ ';
232
+ }
233
234
235
/**
0 commit comments