1
0
Fork 0

Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel

This commit is contained in:
scottashton 2014-03-05 11:21:21 +01:00
commit 8f79530954
6 changed files with 32 additions and 25 deletions

View File

@ -81,7 +81,7 @@ HttpHandler::status_t RestPleaseUpgradeHandler::execute () {
/// {@inheritDoc}
////////////////////////////////////////////////////////////////////////////////
void RestPleaseUpgradeHandler::handleError (triagens::basics::TriagensError const&) {
void RestPleaseUpgradeHandler::handleError (TriagensError const&) {
}
// -----------------------------------------------------------------------------

View File

@ -1,7 +1,9 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*jslint indent: 2, nomen: true, maxlen: 100, vars: true, white: true, plusplus: true, stupid: true*/
/*global require, exports, Backbone, window, arangoCollection, $, arangoHelper, data */
(function() {
"use strict";
window.arangoCollections = Backbone.Collection.extend({
window.arangoCollections = Backbone.Collection.extend({
url: '/_api/collection',
model: arangoCollection,
@ -272,11 +274,10 @@ window.arangoCollections = Backbone.Collection.extend({
data.isSystem = isSystem;
data.type = collType;
if (shards) {
data.numberOfShards = shards,
data.numberOfShards = shards;
data.shardKeys = keys;
}
returnobj.status = false;
console.log(data);
$.ajax({
cache: false,
type: "POST",
@ -409,4 +410,5 @@ window.arangoCollections = Backbone.Collection.extend({
}
});
}
});
});
}());

View File

@ -466,7 +466,7 @@
});
}
this.userManagementView.render();
this.naviView.selectMenuItem('user-menu');
this.naviView.selectMenuItem('tools-menu');
},
userProfile: function() {

View File

@ -11,10 +11,13 @@
</ul>
</div>
<div id="transparentPlaceholder">
<input type="text" id="searchInput" class="searchInput" placeholder="Search..."><img id="searchSubmit" width="16" height="16" src="img/enter_icon.png">
<div class="pull-left">
<a class="arangoHeader">Collections</a>
</div>
</div>
<div class="searchField pull-left">
<input type="text" id="searchInput" class="searchInput" placeholder="Search..."/><img id="searchSubmit" width="16" height="16" src="img/enter_icon.png" class="searchSubmitIcon" />
</div>
<div id="collectionsDropdown2" class="headerDropdown">

View File

@ -64,19 +64,19 @@
},
events: {
"keydown #searchInput" : "restrictToSearchPhraseKey",
"change #searchInput" : "restrictToSearchPhrase",
"click #searchSubmit" : "restrictToSearchPhrase",
"click #checkSystem" : "checkSystem",
"click #checkLoaded" : "checkLoaded",
"click #checkUnloaded" : "checkUnloaded",
"click #checkDocument" : "checkDocument",
"click #checkEdge" : "checkEdge",
"click #sortName" : "sortName",
"click #sortType" : "sortType",
"click #sortOrder" : "sortOrder",
"click #collectionsToggle" : "toggleView",
"click .css-label" : "checkBoxes"
"keydown #searchInput" : "restrictToSearchPhraseKey",
"change #searchInput" : "restrictToSearchPhrase",
"click #searchSubmit" : "restrictToSearchPhrase",
"click #checkSystem" : "checkSystem",
"click #checkLoaded" : "checkLoaded",
"click #checkUnloaded" : "checkUnloaded",
"click #checkDocument" : "checkDocument",
"click #checkEdge" : "checkEdge",
"click #sortName" : "sortName",
"click #sortType" : "sortType",
"click #sortOrder" : "sortOrder",
"click #collectionsToggle" : "toggleView",
"click .css-label" : "checkBoxes"
},
toggleView: function() {

View File

@ -1,5 +1,5 @@
/*jslint indent: 2, nomen: true, maxlen: 100, vars: true, white: true, plusplus: true */
/*global require, exports, Backbone, EJS, $, window, arangoHelper, templateEngine*/
/*global require, exports, Backbone, EJS, $, window, arangoHelper, templateEngine, _*/
(function (){
"use strict";
@ -79,7 +79,9 @@
}
shards = parseInt(shards, 10);
if (shards < 1) {
arangoHelper.arangoError("Number of shards has to be an integer value greater or equal 1");
arangoHelper.arangoError(
"Number of shards has to be an integer value greater or equal 1"
);
return 0;
}
shardBy = _.pluck($('#new-collection-shardBy').select2("data"), "text");