diff --git a/html/admin/css/collectionsItemView.css b/html/admin/css/collectionsItemView.css
index 3149d6ad12..5142a18afb 100644
--- a/html/admin/css/collectionsItemView.css
+++ b/html/admin/css/collectionsItemView.css
@@ -1,8 +1,8 @@
.span3 {
min-height:100px;
- width: 237px;
- margin-left: 5px !important;
- margin-bottom: 5px !important;
+ width: 230px;
+ margin-left: 13px !important;
+ margin-bottom: 13px !important;
border: 0px;
position:relative;
text-align:center;
@@ -20,7 +20,7 @@
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
- width: 221px;
+ width: 214px;
color: #fff;
border: 0;
background:#676665;
diff --git a/html/admin/css/collectionsView.css b/html/admin/css/collectionsView.css
index c354e6a9e0..b35f80a20e 100644
--- a/html/admin/css/collectionsView.css
+++ b/html/admin/css/collectionsView.css
@@ -280,4 +280,7 @@ border-top: 0;
margin-bottom: 30px;
}
-
+#collectionsThumbnailsIn {
+ background-color: none;
+ margin-left: -7px;
+}
diff --git a/html/admin/css/dashboardView.css b/html/admin/css/dashboardView.css
index 738e14779f..470f4306d8 100644
--- a/html/admin/css/dashboardView.css
+++ b/html/admin/css/dashboardView.css
@@ -83,8 +83,8 @@
.statClient {
float: left;
height: 100px;
- width: 237px;
- margin-left: 5px !important;
+ width: 230px;
+ margin-left: 13px !important;
margin-bottom: 5px !important;
background-color: #FFFFFF !important;
}
@@ -118,7 +118,7 @@
padding-top: 0 !important;
/*height: 140px;*/
height: 155px;
- width: 300px;
+ width: 305px;
}
.svgDetailClass {
@@ -166,7 +166,7 @@ li:hover h6, li.hover h6 {
margin-bottom: 16px;
margin-top: 0px;
margin-right: 5px !important;
- margin-left: 5px !important;
+ margin-left: 12px !important;
padding: 0 !important;
height: 24px !important;
width: auto !important;
@@ -488,5 +488,8 @@ li:hover h6, li.hover h6 {
margin-top: 5px;
padding-left: 7px;
font-size: 15px;
-
+}
+
+#dbThumbnailsIn {
+ margin-left: -7px;
}
diff --git a/html/admin/css/documentSourceView.css b/html/admin/css/documentSourceView.css
index 92174ccec7..8dfec2ce8c 100644
--- a/html/admin/css/documentSourceView.css
+++ b/html/admin/css/documentSourceView.css
@@ -19,6 +19,11 @@
margin-right: 0px;
padding-bottom: 20px;
border-top: 1px solid #888;
+ border-left: 1px solid #C0C0C0;
+}
+
+#sourceEditor .ui-resizable-handle {
+ border-left: 0;
}
#sourceDiv {
diff --git a/html/admin/js/templates/collectionsView.ejs b/html/admin/js/templates/collectionsView.ejs
index 6c3f300e4d..450f82ae92 100644
--- a/html/admin/js/templates/collectionsView.ejs
+++ b/html/admin/js/templates/collectionsView.ejs
@@ -91,5 +91,6 @@
diff --git a/html/admin/js/templates/dashboardView.ejs b/html/admin/js/templates/dashboardView.ejs
index 144d17c9d9..a4c52d5c48 100644
--- a/html/admin/js/templates/dashboardView.ejs
+++ b/html/admin/js/templates/dashboardView.ejs
@@ -135,5 +135,6 @@
+
diff --git a/html/admin/js/views/collectionsView.js b/html/admin/js/views/collectionsView.js
index fbf9736b65..da53b596f2 100644
--- a/html/admin/js/views/collectionsView.js
+++ b/html/admin/js/views/collectionsView.js
@@ -3,7 +3,8 @@
var collectionsView = Backbone.View.extend({
el: '#content',
- el2: '.thumbnails',
+ /*el2: '.thumbnails',*/
+ el2: '#collectionsThumbnailsIn',
searchTimeout: null,
@@ -18,12 +19,13 @@ var collectionsView = Backbone.View.extend({
var searchOptions = this.collection.searchOptions;
- $('.thumbnails', this.el).append(
+ $('#collectionsThumbnailsIn', this.el).append(
'
Add Collection'
);
+
this.collection.getFiltered(searchOptions).forEach(function (arango_collection) {
- $('.thumbnails', this.el).append(new window.CollectionListItemView({
+ $('#collectionsThumbnailsIn', this.el).append(new window.CollectionListItemView({
model: arango_collection
}).render().el);
}, this);
diff --git a/html/admin/js/views/dashboardView.js b/html/admin/js/views/dashboardView.js
index a18863699f..e88b6e7053 100644
--- a/html/admin/js/views/dashboardView.js
+++ b/html/admin/js/views/dashboardView.js
@@ -213,7 +213,7 @@ var dashboardView = Backbone.View.extend({
var counter = 1;
$.each(this.options.description.models[0].attributes.groups, function () {
- $('.thumbnails').append(
+ $('#dbThumbnailsIn').append(
'' +
'' +
'' +
diff --git a/html/admin/js/views/documentSourceView.js b/html/admin/js/views/documentSourceView.js
index db08776643..034a1d4dc2 100644
--- a/html/admin/js/views/documentSourceView.js
+++ b/html/admin/js/views/documentSourceView.js
@@ -6,8 +6,9 @@ var documentSourceView = Backbone.View.extend({
init: function () {
},
events: {
- "click #tableView" : "tableView",
- "click #saveSourceDoc" : "saveSourceDoc"
+ "click #tableView" : "tableView",
+ "click #saveSourceDoc" : "saveSourceDoc",
+ "keypress #sourceEditor" : "sourceShortcut"
},
template: new EJS({url: 'js/templates/documentSourceView.ejs'}),
@@ -16,8 +17,29 @@ var documentSourceView = Backbone.View.extend({
$(this.el).html(this.template.text);
this.breadcrumb();
this.editor();
+
+ $('#sourceEditor').resizable({
+ handles: "s",
+ ghost: true,
+ stop: function () {
+ setTimeout(function () {
+ var editor = ace.edit("sourceEditor");
+ editor.resize();
+ },200);
+ }
+ });
return this;
},
+
+ sourceShortcut: function (e) {
+ if (e.ctrlKey && e.keyCode === 13) {
+ this.saveSourceDoc();
+ }
+ else if (e.metaKey && !e.ctrlKey && e.keyCode === 13) {
+ this.saveSourceDoc();
+ }
+ },
+
typeCheck: function (type) {
this.type = type;
if (type === 'edge') {
diff --git a/html/admin/js/views/documentView.js b/html/admin/js/views/documentView.js
index a9573a9ffe..396b01fbad 100644
--- a/html/admin/js/views/documentView.js
+++ b/html/admin/js/views/documentView.js
@@ -14,7 +14,6 @@ var documentView = Backbone.View.extend({
events: {
"click #saveDocument" : "saveDocument",
- //"click #addDocumentLine" : "addLine",
"click #addDocumentLine" : "addLine",
"click #addRow" : "addLine",
"click #documentTableID #deleteRow" : "deleteLine",
@@ -293,11 +292,15 @@ var documentView = Backbone.View.extend({
var i = 0;
$('.writeable', documentEditTable.fnGetNodes() ).each(function () {
var aPos = documentEditTable.fnGetPosition(this);
- if (aPos[0] === 0) {
+ /* if (aPos[0] === 0) {
+ console.log("i=0");
+ console.log(this);
$(this).removeClass('writeable');
- }
+ }*/
if ( i === 1) {
$(this).removeClass('writeable');
+ console.log("i=1");
+ console.log(this);
i = 0;
}
if (arangoHelper.isSystemAttribute(this.innerHTML)) {
diff --git a/html/admin/js/views/navigationView.js b/html/admin/js/views/navigationView.js
index a7b25b0aae..779523ea92 100644
--- a/html/admin/js/views/navigationView.js
+++ b/html/admin/js/views/navigationView.js
@@ -22,10 +22,11 @@ var navigationView = Backbone.View.extend({
handleResize: function () {
var oldWidth = $('#content').width();
var containerWidth = $(window).width() - 70;
- var spanWidth = 242;
+ /*var spanWidth = 242;*/
+ var spanWidth = 243;
var divider = containerWidth / spanWidth;
var roundDiv = parseInt(divider, 10);
- var newWidth = roundDiv*spanWidth+5;
+ var newWidth = roundDiv*spanWidth;
var marginWidth = ((containerWidth+30) - newWidth)/2;
$('#content').width(newWidth)
.css('margin-left', marginWidth)