src_js/iconolab-bundle/src/main.js
changeset 520 d1e231a045ac
parent 418 a04c55054afe
child 539 08e2513dbc2f
--- a/src_js/iconolab-bundle/src/main.js	Mon May 22 12:11:44 2017 +0200
+++ b/src_js/iconolab-bundle/src/main.js	Mon May 22 16:17:36 2017 +0200
@@ -38,6 +38,14 @@
 Vue.component('annotation-list', Editor.AnnotationList);
 Vue.component('comment-list', Editor.CommentList);
 
+$('.table-clickable').each(function() {
+    var selector = $(this).data('selector');
+    $(this).find('tr').on('click', function(e) {
+        var href = $(this).find(selector).attr('href');
+        window.location.replace(href);
+    });
+})
+
 if (!window.iconolab) {
     window.iconolab = iconolab;
 }