Add unpin tooltip and highlight tags when hovering theme..

This commit is contained in:
Matias De lellis
2020-06-04 09:19:30 -03:00
parent 9b09f54dd1
commit 0845127458
2 changed files with 13 additions and 9 deletions

View File

@@ -13,10 +13,6 @@
$(document).ready(function () {
var translations = {
pinNote: t('quicknotes', 'Pin note'),
};
// this notes object holds all our notes
var Notes = function (baseUrl) {
this._baseUrl = baseUrl;
@@ -589,6 +585,7 @@ View.prototype = {
$(this).addClass("fixed-header-icon");
$(this).removeClass("icon-pin");
$(this).addClass("icon-pinned");
$(this).attr('title', t('quicknotes', 'Unpin note'));
$('.notes-grid').isotope('updateSortData').isotope();
});
@@ -600,6 +597,8 @@ View.prototype = {
$(this).removeClass("icon-pinned");
$(this).addClass("icon-pin");
$(this).attr('title', t('quicknotes', 'Pin note'));
$('.notes-grid').isotope('updateSortData').isotope();
});