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