Fixes disabling of clicking after crop is deleted and added test for the cropUI (#1481)

* crop-ui

* crop-ui

* Added test

* Adding test

* improving comments

Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
keshav234156
2020-01-17 03:48:34 +05:30
committed by Jeffrey Warren
parent 1a0f4d4042
commit d1b9b8becc
3 changed files with 49 additions and 8 deletions

View File

@@ -418,7 +418,9 @@ function DefaultHtmlStepUi(_sequencer, options) {
if (_sequencer.steps.length - 1 > 1) $('#load-image .insert-step').prop('disabled', false);
else $('#load-image .insert-step').prop('disabled', true);
$('div[class*=imgareaselect-]').remove();
$(step.imgElement).imgAreaSelect({
remove: true
});
}
function getPreview() {