mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 20:30:01 +01:00
Fixes crop module bug (#1019)
* Fixes crop module bug * Fixes crop functionality * Add looks like test for crop module
This commit is contained in:
committed by
Jeffrey Warren
parent
6fa8b1b880
commit
2be7a3dca6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user