Skip to content

Commit bb21de7

Browse files
author
Denys Rul
committed
MAGETWO-32484: Stabilization of changes and bug fixing
- Get rid of dependency on extjs
1 parent 3232138 commit bb21de7

File tree

1 file changed

+12
-5
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+12
-5
lines changed

app/code/Magento/Review/Block/Adminhtml/Add.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ protected function _construct()
3737
';
3838

3939
$this->_formInitScripts[] = '
40-
//<![CDATA[
41-
require(["extjs/ext-tree-checkbox"], function(){
40+
require(["jquery","prototype"], function(jQuery){
4241
window.review = function() {
4342
return {
4443
productInfoUrl : null,
@@ -54,7 +53,16 @@ protected function _construct()
5453
},
5554
5655
loadProductData : function() {
57-
var con = new Ext.lib.Ajax.request(\'POST\', review.productInfoUrl, {success:review.reqSuccess,failure:review.reqFailure}, {form_key:FORM_KEY});
56+
jQuery.ajax({
57+
type: "POST",
58+
url: review.productInfoUrl,
59+
data: {
60+
form_key: FORM_KEY
61+
},
62+
showLoader: true,
63+
success: review.reqSuccess,
64+
error: review.reqFailure
65+
});
5866
},
5967
6068
showForm : function() {
@@ -81,8 +89,7 @@ protected function _construct()
8189
'", {parameters:params, evalScripts: true, onComplete:function(){ $(\'save_button\').disabled = false; } });
8290
},
8391
84-
reqSuccess :function(o) {
85-
var response = Ext.util.JSON.decode(o.responseText);
92+
reqSuccess :function(response) {
8693
if( response.error ) {
8794
alert(response.message);
8895
} else if( response.id ){

0 commit comments

Comments
 (0)