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() {
$(this.el).html(this.template.text);
this.breadcrumb();
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() {
window.arangoDocumentStore.saveDocument("source");
},

View File

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