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:
Mridul97
2019-01-06 01:02:18 +05:30
committed by Jeffrey Warren
parent 69ed689ad7
commit 6d9f656a1e
3 changed files with 17 additions and 0 deletions

View File

@@ -201,6 +201,12 @@ h1 {
margin-bottom: 20px;
}
.savesequencemsg{
display: none;
text-align: center;
}
#stepRemovedNotification {
background-color: #808b96;
padding:4px;

View File

@@ -86,6 +86,13 @@ window.onload = function() {
return false;
});
function displayMessageOnSaveSequence(){
$(".savesequencemsg").fadeIn();
setTimeout(function() {
$(".savesequencemsg").fadeOut();
}, 1000);
}
$('body').on('click', 'button.remove', ui.removeStepUi);
$('#save-seq').click(() => {
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)";
sequencer.saveSequence(result, sequencer.toString());
sequencer.loadModules();
displayMessageOnSaveSequence();
refreshOptions();
}
});

View File

@@ -80,6 +80,7 @@
</section>
<hr />
<p class = "alert alert-success savesequencemsg">Saved Sequence Success. Sequence can be found among other modules.</p>
<div class="row">
<div class="col-sm-8">
<section id="addStep" class="panel panel-primary">
@@ -184,6 +185,8 @@
<button><i class="fa fa-arrow-circle-o-up"></i></button>
</form>
<footer>
<hr style="margin:20px;"><center><a class="color:grey;" id="clear-cache">Clear offline cache</a></center>
</footer>