mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
removed crop div (#623)
This commit is contained in:
committed by
Jeffrey Warren
parent
20d49456fd
commit
ef4a4d3055
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user