@@ -30,6 +30,7 @@ protected function _construct()
30
30
$ this ->buttonList ->update ('save ' , 'id ' , 'save_button ' );
31
31
32
32
$ this ->buttonList ->update ('reset ' , 'id ' , 'reset_button ' );
33
+ $ this ->buttonList ->update ('reset ' , 'onclick ' , 'window.review.formReset() ' );
33
34
34
35
$ this ->_formScripts [] = '
35
36
require(["prototype"], function(){
@@ -44,6 +45,7 @@ protected function _construct()
44
45
require(["jquery","prototype"], function(jQuery){
45
46
window.review = function() {
46
47
return {
48
+ reviewFormEditSelector: "#edit_form",
47
49
productInfoUrl : null,
48
50
formHidden : true,
49
51
gridRowClick : function(data, click) {
@@ -72,6 +74,9 @@ protected function _construct()
72
74
toggleVis("save_button");
73
75
toggleVis("reset_button");
74
76
},
77
+ formReset: function() {
78
+ jQuery(review.reviewFormEditSelector).trigger( \'reset \');
79
+ },
75
80
updateRating: function() {
76
81
elements = [$("select_stores"), $("rating_detail").getElementsBySelector("input[type= \'radio \']")].flatten();
77
82
$( \'save_button \').disabled = true;
0 commit comments