mirror of https://gitee.com/bigwinds/arangodb
js/arango
This commit is contained in:
parent
d35a34ca66
commit
802c5a1600
|
@ -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");
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue