diff --git a/js/script.js b/js/script.js
index 3272a3c..ec9d9c3 100644
--- a/js/script.js
+++ b/js/script.js
@@ -314,7 +314,7 @@ View.prototype = {
var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color"));
var tags = $("#modal-note-div .slim-tag").toArray().map(function (value) {
return {
- id: value.getAttribute('data-id'),
+ id: value.getAttribute('tag-id'),
name: value.textContent.trim()
};
});
@@ -468,11 +468,11 @@ View.prototype = {
$('#app-content').on('click', '.slim-tag', function (event) {
event.stopPropagation();
- var tagId = parseInt($(this).data('id'), 10);
+ var tagId = parseInt($(this).attr('tag-id'), 10);
$('.notes-grid').isotope({ filter: function() {
var match = false;
$(this).find(".slim-tag").siblings().addBack().each(function() {
- var id = parseInt($(this).data('id'), 10);
+ var id = parseInt($(this).attr('tag-id'), 10);
if (tagId === id)
match = true;
});
@@ -621,7 +621,7 @@ View.prototype = {
modalTags.html('');
newTags.forEach(function (item, index) {
var noteId = parseInt(item.id) || -1;
- var tag = $('
' + item.text + '
');
+ var tag = $('' + item.text + '
');
modalTags.append(tag);
});
}
@@ -773,11 +773,11 @@ View.prototype = {
$('#app-navigation .nav-tag > a').click(function (event) {
event.stopPropagation();
- var tagId = parseInt($(this).parent().data('id'), 10);
+ var tagId = parseInt($(this).parent().attr('tag-id'), 10);
$('.notes-grid').isotope({ filter: function() {
var match = false;
$(this).find(".slim-tag").siblings().addBack().each(function() {
- var id = parseInt($(this).data('id'), 10);
+ var id = parseInt($(this).attr('tag-id'), 10);
if (tagId === id)
match = true;
});
diff --git a/js/templates/navigation.handlebars b/js/templates/navigation.handlebars
index b4002df..3f0b3aa 100644
--- a/js/templates/navigation.handlebars
+++ b/js/templates/navigation.handlebars
@@ -33,10 +33,10 @@
- {{tagsTxt}}
+ {{tagsTxt}}
{{#each tags}}
-
{{/each}}
diff --git a/js/templates/note-item.handlebars b/js/templates/note-item.handlebars
index d3ba32b..45ec743 100644
--- a/js/templates/note-item.handlebars
+++ b/js/templates/note-item.handlebars
@@ -27,7 +27,7 @@
{{/if}}
diff --git a/js/templates/notes.handlebars b/js/templates/notes.handlebars
index 0f42b76..91755e6 100644
--- a/js/templates/notes.handlebars
+++ b/js/templates/notes.handlebars
@@ -30,7 +30,7 @@