removed crop div (#623)

This commit is contained in:
Vibhor Gupta
2019-01-07 20:10:53 +05:30
committed by Jeffrey Warren
parent 20d49456fd
commit ef4a4d3055

View File

@@ -174,7 +174,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
if (stepOptions.index == _sequencer.images.image1.steps.length) { if (stepOptions.index == _sequencer.images.image1.steps.length) {
stepsEl.appendChild(step.ui); stepsEl.appendChild(step.ui);
$("#steps .container:nth-last-child(1) .insert-step").prop('disabled',true); $("#steps .container:nth-last-child(1) .insert-step").prop('disabled',true);
if($("#steps .container:nth-last-child(2)")) if($("#steps .container:nth-last-child(2)"))
$("#steps .container:nth-last-child(2) .insert-step").prop('disabled',false); $("#steps .container:nth-last-child(2) .insert-step").prop('disabled',false);
} else { } else {
stepsEl.insertBefore(step.ui, $(stepsEl).children()[stepOptions.index]); stepsEl.insertBefore(step.ui, $(stepsEl).children()[stepOptions.index]);
@@ -183,7 +183,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
else { else {
$("#load-image").append(step.ui); $("#load-image").append(step.ui);
} }
$('input[type="range"]').on('input', function() { $('input[type="range"]').on('input', function() {
$(this).next().html($(this).val()); $(this).next().html($(this).val());
}) })
@@ -241,6 +241,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
function onRemove(step) { function onRemove(step) {
step.ui.remove(); step.ui.remove();
$("#steps .container:nth-last-child(1) .insert-step").prop('disabled',true); $("#steps .container:nth-last-child(1) .insert-step").prop('disabled',true);
$('div[class^=imgareaselect-]').remove();
} }
function getPreview() { function getPreview() {