1
0
Fork 0

js/arango

This commit is contained in:
Heiko Kernbach 2013-02-18 17:37:40 +01:00
parent d35a34ca66
commit 802c5a1600
2 changed files with 12 additions and 1 deletions

View File

@ -11,8 +11,19 @@ var documentSourceView = Backbone.View.extend({
render: function() { render: function() {
$(this.el).html(this.template.text); $(this.el).html(this.template.text);
this.breadcrumb();
return this; return this;
}, },
breadcrumb: function () {
var name = window.location.hash.split("/");
$('#transparentHeader').append(
'<a href="#" class="activeBread">Collections</a>'+
' > '+
'<a class="activeBread" href="#collection/'+name[1]+'/documents/1">'+name[1]+'</a>'+
' > '+
'<a class="disabledBread">'+name[2]+'</a>'
);
},
saveSourceDoc: function() { saveSourceDoc: function() {
window.arangoDocumentStore.saveDocument("source"); window.arangoDocumentStore.saveDocument("source");
}, },

View File

@ -64,7 +64,7 @@ var documentView = Backbone.View.extend({
initTable: function () { initTable: function () {
var documentTable = $(this.table).dataTable({ var documentTable = $(this.table).dataTable({
"aaSorting": [[ 1, "desc" ]], "aaSorting": [[ 1, "asc" ]],
"bAutoWidth": false, "bAutoWidth": false,
"bFilter": false, "bFilter": false,
"bPaginate":false, "bPaginate":false,