Skip to content

Commit c6fd136

Browse files
committed
Update jquery.quicknote.js
1 parent 6a528c1 commit c6fd136

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jquery.quicknote.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
completeNote: function() {
5959
// i USED FOR NOTES ID
6060
var i = 0;
61-
$('.qn_container').on('keypress', '#notes input', function(e) {
61+
this.$el.on('keypress', '#notes input', function(e) {
6262
// RETURN KEY PRESSED
6363
if (e.which == 13 || e.keyCode == 13) {
6464
var notesInpVal = $('#notes input').val();
@@ -73,12 +73,12 @@
7373
});
7474

7575
// SHOW AND HIDE
76-
$('.qn_container').on('click', '#qn_sh span', function(){
76+
this.$el.on('click', '#qn_sh span', function(){
7777
$('.qn_container #notes').slideToggle(100);
7878
});
7979

8080
// CLICK TO CLOSE NOTES
81-
$('.qn_container').on('click', '#notes .quicknote', function(){
81+
this.$el.on('click', '#notes .quicknote', function(){
8282
$(this).each(function(){
8383
$(this).stop().fadeOut('fast', function() {
8484
$(this).remove();

0 commit comments

Comments
 (0)