Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bunch of js bugs with comments. Also added development tips
- Loading branch information
1 parent
92137b7
commit 4a6596a
Showing
12 changed files
with
281 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,12 @@ | |||
- if note.valid? | - if note.valid? | ||
:plain | :plain | ||
$("#new_note .error").remove(); | $(".note-form-holder .error").remove(); | ||
$('#new_note textarea').val(""); | $('.note-form-holder textarea').val(""); | ||
$('#preview-link').text('Preview'); | $('.note-form-holder #preview-link').text('Preview'); | ||
$('#preview-note').hide(); $('#note_note').show(); | $('.note-form-holder #preview-note').hide(); | ||
$('.note-form-holder').show(); | |||
NoteList.prepend(#{note.id}, "#{escape_javascript(render partial: "notes/show", locals: {note: note})}"); | NoteList.prepend(#{note.id}, "#{escape_javascript(render partial: "notes/show", locals: {note: note})}"); | ||
- else | - else | ||
:plain | :plain | ||
$("#new_note").replaceWith("#{escape_javascript(render('form'))}"); | $(".note-form-holder").replaceWith("#{escape_javascript(render('form'))}"); | ||
|
|
Oops, something went wrong.