diff --git a/frontend/css/bootstrap.css b/frontend/css/bootstrap.css index 85364e6c56..53bb9acbb5 100644 --- a/frontend/css/bootstrap.css +++ b/frontend/css/bootstrap.css @@ -5226,7 +5226,7 @@ input[type="submit"].btn.btn-mini { } .tooltip-inner { - max-width: 200px; + max-width: 700px; padding: 3px 8px; color: #ffffff; text-align: center; diff --git a/frontend/js/views/documentsView.js b/frontend/js/views/documentsView.js index 658466a3b4..38e6fcc88c 100644 --- a/frontend/js/views/documentsView.js +++ b/frontend/js/views/documentsView.js @@ -91,7 +91,7 @@ var documentsView = Backbone.View.extend({ "bJQueryUI": false, "aoColumns": [ { "sClass":"read_only leftCell docleftico", "bSortable": false, "sWidth":"30px"}, - { "sClass":"read_only","bSortable": false}, + { "sClass":"read_only arangoTooltip","bSortable": false}, // { "sClass":"read_only","bSortable": false, "sWidth": "100px"}, // { "sClass":"read_only","bSortable": false, "sWidth": "100px"}, { "bSortable": false, "sClass": "cuttedContent rightCell", "sWidth": "500px"} @@ -105,15 +105,20 @@ var documentsView = Backbone.View.extend({ drawTable: function() { var self = this; $.each(window.arangoDocumentsStore.models, function(key, value) { + console.log(JSON.stringify(value.attributes.content)); $(self.table).dataTable().fnAddData([ value.attributes.id, //value.attributes.key, //value.attributes.rev, - '
' + self.cutByResolution(JSON.stringify(value.attributes.content)) + '', + '
' + self.cutByResolution(JSON.stringify(value.attributes.content)) + '', '' ]); }); $(".prettify").snippet("javascript", {style: "nedit", menu: false, startText: false, transparent: true, showNum: false}); + console.log(this); + $(".prettify").tooltip({ + placement: "top" + }); this.totalPages = window.arangoDocumentsStore.totalPages; this.currentPage = window.arangoDocumentsStore.currentPage; this.documentsCount = window.arangoDocumentsStore.documentsCount;