8000 Unbreak the build. · cloud-coders/arangodb@c3d3aa8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3d3aa8

Browse files
committed
Unbreak the build.
1 parent b26b469 commit c3d3aa8

File tree

7 files changed

+15
-18
lines changed

7 files changed

+15
-18
lines changed

js/apps/system/_admin/aardvark/APP/frontend/build/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101886,10 +101886,8 @@ window.ArangoUsers = Backbone.Collection.extend({
101886101886
},
101887101887

101888101888
runScript: function(event) {
101889-
console.log('script', $(event.currentTarget).data('script'), $(event.currentTarget).attr('data-script'));
101890101889
this.model.runScript($(event.currentTarget).attr('data-script'), function() {
101891101890
});
101892-
this.toggleScripts();
101893101891
},
101894101892

101895101893
render: function() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script src="app.js?version=1427926557147"></script>
1+
<script src="app.js?version=1427932097148"></script>

js/apps/system/_admin/aardvark/APP/frontend/build/standalone.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
<span class="icon_arangodb_settings2" title="Configure"></span>
4646
</a>
4747
</li>
48-
<li class="dropdown">
49-
<a id="app-scripts" class="headerButton <%= app.get('scripts').length?'':'disabled' %>">
48+
<li id="app-scripts" class="dropdown">
49+
<a class="headerButton <%= app.get('scripts').length?'':'disabled' %>">
5050
<i class="fa fa-file-code-o"></i>
5151
</a>
5252
<ul class="script-dropdown-menu" id="scripts_dropdown">
@@ -2685,7 +2685,7 @@ <h5 class="collectionName"><%=_.escape(username) %> <% if (name !== ' ') { %>(<%
26852685
</div>
26862686
</footer>
26872687

2688-
<script src="app.js?version=1427926557147"></script>
2688+
<script src="app.js?version=1427932097148"></script>
26892689

26902690
</body>
26912691
</html>

js/apps/system/_admin/aardvark/APP/frontend/js/templates/applicationDetailView.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<span class="icon_arangodb_settings2" title="Configure"></span>
99
</a>
1010
</li>
11-
<li class="dropdown">
12-
<a id="app-scripts" class="headerButton <%= app.get('scripts').length?'':'disabled' %>">
11+
<li id="app-scripts" class="dropdown">
12+
<a class="headerButton <%= app.get('scripts').length?'':'disabled' %>">
1313
<i class="fa fa-file-code-o"></i>
1414
</a>
1515
<ul class="script-dropdown-menu" id="scripts_dropdown">

js/apps/system/_admin/aardvark/APP/frontend/js/views/applicationDetailView.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@
6464
},
6565

6666
runScript: function(event) {
67-
console.log('script', $(event.currentTarget).data('script'), $(event.currentTarget).attr('data-script'));
6867
this.model.runScript($(event.currentTarget).attr('data-script'), function() {
6968
});
70-
this.toggleScripts();
7169
},
7270

7371
render: function() {

js/common/modules/org/arangodb/foxx/manager-utils.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*jshint globalstrict: true */
12
/*global require, exports */
23
'use strict';
34

@@ -282,9 +283,14 @@ function listJson (showPrefix, onlyDevelopment) {
282283
}
283284
var result = [];
284285
var doc, res;
286+
function toScriptItem(scriptName) {
287+
return {
288+
name: scriptName,
289+
title: getReadableName(scriptName)
290+
};
291+
}
285292
while (cursor.hasNext()) {
286293
doc = cursor.next();
287-
288294
res = {
289295
mountId: doc._key,
290296
mount: doc.mount,
@@ -299,12 +305,7 @@ function listJson (showPrefix, onlyDevelopment) {
299305
scripts: (
300306
doc.manifest.scripts ?
301307
Object.keys(doc.manifest.scripts)
302-
.map(function (scriptName) {
303-
return {
304-
name: scriptName,
305-
title: getReadableName(scriptName)
306-
};
307-
}) : []
308+
.map(toScriptItem) : []
308309
)
309310
};
310311

js/server/modules/org/arangodb/foxx/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*jshint esnext: true */
1+
/*jshint esnext: true, globalstrict: true */
22
/*global module, require, exports*/
33
/*global ArangoServerState, ArangoClusterInfo, ArangoClusterComm */
44
'use strict';

0 commit comments

Comments
 (0)
0