mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Show a message where to find saved sequence on saving a sequence (#586)
* show message on save sequence * chaanges * changes
This commit is contained in:
@@ -201,6 +201,12 @@ h1 {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.savesequencemsg{
|
||||||
|
display: none;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
#stepRemovedNotification {
|
#stepRemovedNotification {
|
||||||
background-color: #808b96;
|
background-color: #808b96;
|
||||||
padding:4px;
|
padding:4px;
|
||||||
|
|||||||
@@ -86,6 +86,13 @@ window.onload = function() {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function displayMessageOnSaveSequence(){
|
||||||
|
$(".savesequencemsg").fadeIn();
|
||||||
|
setTimeout(function() {
|
||||||
|
$(".savesequencemsg").fadeOut();
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
$('body').on('click', 'button.remove', ui.removeStepUi);
|
$('body').on('click', 'button.remove', ui.removeStepUi);
|
||||||
$('#save-seq').click(() => {
|
$('#save-seq').click(() => {
|
||||||
var result = window.prompt("Please give a name to your sequence... (Saved sequence will only be available in this browser).");
|
var result = window.prompt("Please give a name to your sequence... (Saved sequence will only be available in this browser).");
|
||||||
@@ -93,6 +100,7 @@ window.onload = function() {
|
|||||||
result = result + " (local)";
|
result = result + " (local)";
|
||||||
sequencer.saveSequence(result, sequencer.toString());
|
sequencer.saveSequence(result, sequencer.toString());
|
||||||
sequencer.loadModules();
|
sequencer.loadModules();
|
||||||
|
displayMessageOnSaveSequence();
|
||||||
refreshOptions();
|
refreshOptions();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
<p class = "alert alert-success savesequencemsg">Saved Sequence Success. Sequence can be found among other modules.</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<section id="addStep" class="panel panel-primary">
|
<section id="addStep" class="panel panel-primary">
|
||||||
@@ -184,6 +185,8 @@
|
|||||||
<button><i class="fa fa-arrow-circle-o-up"></i></button>
|
<button><i class="fa fa-arrow-circle-o-up"></i></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<hr style="margin:20px;"><center><a class="color:grey;" id="clear-cache">Clear offline cache</a></center>
|
<hr style="margin:20px;"><center><a class="color:grey;" id="clear-cache">Clear offline cache</a></center>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user