mirror of https://gitee.com/bigwinds/arangodb
fixed document sorting
This commit is contained in:
parent
337d3f1983
commit
12673c8551
|
@ -13,6 +13,7 @@
|
||||||
<th>Value</th>
|
<th>Value</th>
|
||||||
<th>type</th>
|
<th>type</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -44,6 +44,7 @@ var documentView = Backbone.View.extend({
|
||||||
key,
|
key,
|
||||||
self.value2html(value, true),
|
self.value2html(value, true),
|
||||||
JSON.stringify(value),
|
JSON.stringify(value),
|
||||||
|
'edit',
|
||||||
""
|
""
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -52,6 +53,7 @@ var documentView = Backbone.View.extend({
|
||||||
key,
|
key,
|
||||||
self.value2html(value),
|
self.value2html(value),
|
||||||
JSON.stringify(value),
|
JSON.stringify(value),
|
||||||
|
'edit',
|
||||||
'<button class="enabled" id="deleteRow"><img src="/_admin/html/img/delete_icon16.png" width="16" height="16"></button>'
|
'<button class="enabled" id="deleteRow"><img src="/_admin/html/img/delete_icon16.png" width="16" height="16"></button>'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -61,10 +63,11 @@ var documentView = Backbone.View.extend({
|
||||||
|
|
||||||
addLine: function () {
|
addLine: function () {
|
||||||
$(this.table).dataTable().fnAddData([
|
$(this.table).dataTable().fnAddData([
|
||||||
'<button class="enabled" id="deleteRow"><img src="/_admin/html/img/delete_icon16.png" width="16" height="16"></button>',
|
|
||||||
"somekey"+this.counter,
|
"somekey"+this.counter,
|
||||||
this.value2html("editme"),
|
this.value2html("editme"),
|
||||||
JSON.stringify("editme")
|
JSON.stringify("editme"),
|
||||||
|
'edit',
|
||||||
|
'<button class="enabled" id="deleteRow"><img src="/_admin/html/img/delete_icon16.png" width="16" height="16"></button>'
|
||||||
]);
|
]);
|
||||||
this.makeEditable();
|
this.makeEditable();
|
||||||
this.updateLocalDocumentStorage();
|
this.updateLocalDocumentStorage();
|
||||||
|
@ -91,6 +94,7 @@ var documentView = Backbone.View.extend({
|
||||||
{"sClass":"writeable", "bSortable": false, "sWidth":"400px" },
|
{"sClass":"writeable", "bSortable": false, "sWidth":"400px" },
|
||||||
{"sClass":"writeable rightCell", "bSortable": false},
|
{"sClass":"writeable rightCell", "bSortable": false},
|
||||||
{"bVisible": false },
|
{"bVisible": false },
|
||||||
|
{"sClass":"read_only leftCell", "bSortable": false, "sWidth": "30px"},
|
||||||
{"sClass":"read_only leftCell", "bSortable": false, "sWidth": "30px"}
|
{"sClass":"read_only leftCell", "bSortable": false, "sWidth": "30px"}
|
||||||
],
|
],
|
||||||
"oLanguage": {"sEmptyTable": "No documents"}
|
"oLanguage": {"sEmptyTable": "No documents"}
|
||||||
|
|
Loading…
Reference in New Issue