2015-11-13 17:04:42 +08:00
|
|
|
/*
|
|
|
|
|
|
|
|
This is a javascript file for omninotesweb
|
|
|
|
============
|
|
|
|
|
|
|
|
Author: Suraj patil
|
|
|
|
Updated: January 2015
|
|
|
|
keyCode: n-110
|
|
|
|
*/
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
/*on() is used instead of click because click can be used only on static elements, and on() is to be used when you add
|
|
|
|
elements dynamically*/
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
|
//
|
|
|
|
// $('.items').openOnHover(function(){
|
|
|
|
// alert();
|
|
|
|
// });
|
|
|
|
|
|
|
|
$('.floating-action-icon-add').click(function(){
|
|
|
|
$('#addNoteModal').modal('show');
|
|
|
|
});
|
2015-11-22 11:51:29 +08:00
|
|
|
|
2016-02-06 14:57:28 +08:00
|
|
|
$('#editCatFrmBtn').click(function(){
|
|
|
|
$('#EditForm').toggleClass('hidden')
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#searchFormBtn').click(function(){
|
|
|
|
$('#SearchForm').toggleClass('hidden')
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2016-02-06 02:08:52 +08:00
|
|
|
if ($('#actlMsg').html()==' <button id="btnMessage" class="btn btn-default">OK</button>'){
|
2015-11-22 11:51:29 +08:00
|
|
|
$('.notification').addClass('hidden');
|
|
|
|
} else {
|
|
|
|
$('.notification').fadeOut(9000);
|
|
|
|
}
|
2016-02-06 02:08:52 +08:00
|
|
|
$('.btnMessage').click(function(){$('.notification').fadeOut()})
|
2015-11-13 17:04:42 +08:00
|
|
|
|
|
|
|
/*$( document ).keypress(
|
|
|
|
function(event){
|
|
|
|
if ( event.which == 110 ) { //bind the 'n' key to add note
|
|
|
|
$('#addNoteModal').modal('show');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (event.which==109 ) { //binds the 'm' key to show the navigation drawer
|
|
|
|
$('.sidebar-toggle').click();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);*/
|
2016-01-10 21:58:24 +08:00
|
|
|
$('.toggle').click(function(){
|
|
|
|
$(this).next().toggle();
|
|
|
|
});
|
2015-11-13 17:04:42 +08:00
|
|
|
});
|