Fixes crop module bug (#1019)

* Fixes crop module bug

* Fixes crop functionality

* Add looks like test for crop module
This commit is contained in:
Slytherin
2019-04-18 17:10:36 +05:30
committed by Jeffrey Warren
parent 6fa8b1b880
commit 2be7a3dca6
7 changed files with 61 additions and 10 deletions

View File

@@ -42,6 +42,7 @@ module.exports = function CropModuleUi(step, ui) {
converted[2],
converted[3]
);
$($(imgEl()).parents()[3]).find("input").trigger("change")
}
});
}
@@ -77,7 +78,7 @@ module.exports = function CropModuleUi(step, ui) {
}
function setOptions(x1, y1, width, height) {
let options = $($(imgEl()).parents()[2]).find("input");
let options = $($(imgEl()).parents()[3]).find("input");
options[0].value = x1;
options[1].value = y1;
options[2].value = width;