Browse Source

Toast icons

tags/v1.2.0
Skylar Ittner 10 months ago
parent
commit
41865a9a72
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      www/js/editnote.js
  2. 2
    2
      www/js/home.js

+ 2
- 2
www/js/editnote.js View File

@@ -41,8 +41,8 @@ function saveme(callback) {
}
}, function () {
app.toast.create({
text: 'Note saved locally.',
closeTimeout: 2000
text: '<i class="fas fa-save"></i> &nbsp; Note saved locally.',
closeTimeout: 3000
}).open();
$("#orig_content").val(note.content);
save_in_progress = false;

+ 2
- 2
www/js/home.js View File

@@ -132,8 +132,8 @@ function loadCards(callback) {
NOTES.syncAll(function (notes) {
if ($("#offline-indicator").css("display") != "none") {
app.toast.create({
text: 'Back online.',
closeTimeout: 2000
text: '<i class="fas fa-globe-americas"></i> &nbsp; Back online.',
closeTimeout: 5000
}).open();
}
$("#offline-indicator").css("display", "none");

Loading…
Cancel
Save