function saveNote() {
  const noteData = jQuery('#note').val();
  if (noteData === '') {
    notify('warning', 'Note is empty');
    return;
  }
  createNote(noteData).then(() => {
    notify('success', 'Note has been stored');
    displayNotes();
  }, () => {
    notify('danger', 'Error storing the note');
  });
}
/**
 * This method saves the note from the note input field
 */
This method saves the note from the note input field
This method saves the note from the note input field
function saveNote() {
  const noteData = jQuery('#note').val();
  if (noteData === '') {
    notify('warning', 'Note is empty');
    return;
  }
  createNote(noteData).then(() => {
    notify('success', 'Note has been stored');
    displayNotes();
  }, () => {
    notify('danger', 'Error storing the note');
  });
}
function saveNote ( ) { const noteData = jQuery ( '#note' ) . val ( ) ; if ( noteData === '' ) { notify ( 'warning' , 'Note is empty' ) ; return ; } createNote ( noteData ) . then ( ( ) => { notify ( 'success' , 'Note has been stored' ) ; displayNotes ( ) ; } , ( ) => { notify ( 'danger' , 'Error storing the note' ) ; } ) ; }
This method saves the note from the note input field
This method saves the note from the note input field