diff --git a/src/app/app.js b/src/app/app.js index e331a1b38e1..132e7f2b994 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -11,7 +11,8 @@ define([ 'angular-sanitize', 'angular-strap', 'angular-dragdrop', - 'extend-jquery' + 'extend-jquery', + 'bindonce' ], function (angular, $, _, appLevelRequire) { "use strict"; @@ -84,7 +85,8 @@ function (angular, $, _, appLevelRequire) { '$strap.directives', 'ngSanitize', 'ngDragDrop', - 'kibana' + 'kibana', + 'pasvaz.bindonce' ]; _.each('controllers directives factories services filters'.split(' '), diff --git a/src/app/components/kbn.js b/src/app/components/kbn.js index 7d8efef2e43..8a7bb392b74 100644 --- a/src/app/components/kbn.js +++ b/src/app/components/kbn.js @@ -479,6 +479,26 @@ function($, _, moment) { }); }; + // Find the smallest missing number in an array + kbn.smallestMissing = function(arr,start,end) { + start = start || 0; + end = end || arr.length-1; + + if(start > end) { + return end + 1; + } + if(start !== arr[start]) { + return start; + } + var middle = Math.floor((start + end) / 2); + + if (arr[middle] > middle) { + return kbn.smallestMissing(arr, start, middle); + } else { + return kbn.smallestMissing(arr, middle + 1, end); + } + }; + kbn.byteFormat = function(size, decimals) { var ext, steps = 0; decimals = decimals || 2; diff --git a/src/app/components/require.config.js b/src/app/components/require.config.js index e987b4cbf73..a13dac6b458 100644 --- a/src/app/components/require.config.js +++ b/src/app/components/require.config.js @@ -20,6 +20,7 @@ require.config({ 'angular-sanitize': '../vendor/angular/angular-sanitize', timepicker: '../vendor/angular/timepicker', datepicker: '../vendor/angular/datepicker', + bindonce: '../vendor/angular/bindonce', underscore: 'components/underscore.extended', 'underscore-src': '../vendor/underscore', @@ -84,7 +85,7 @@ require.config({ 'angular-resource': ['angular'], 'angular-route': ['angular'], 'angular-touch': ['angular'], - + 'bindonce': ['angular'], 'angular-strap': ['angular', 'bootstrap','timepicker', 'datepicker'], timepicker: ['jquery', 'bootstrap'], diff --git a/src/app/dashboards/blank.json b/src/app/dashboards/blank.json index 14a601da7af..f73ee1fc5a9 100644 --- a/src/app/dashboards/blank.json +++ b/src/app/dashboards/blank.json @@ -2,12 +2,6 @@ "title": "New Dashboard", "services": { "query": { - "idQueue": [ - 1, - 2, - 3, - 4 - ], "list": { "0": { "query": "*", @@ -21,11 +15,6 @@ ] }, "filter": { - "idQueue": [ - 0, - 1, - 2 - ], "list": {}, "ids": [] } diff --git a/src/app/dashboards/default.json b/src/app/dashboards/default.json index a0d31cc1c25..5a5bc905735 100644 --- a/src/app/dashboards/default.json +++ b/src/app/dashboards/default.json @@ -2,12 +2,6 @@ "title": "Introduction", "services": { "query": { - "idQueue": [ - 1, - 2, - 3, - 4 - ], "list": { "0": { "query": "*", @@ -23,11 +17,6 @@ ] }, "filter": { - "idQueue": [ - 0, - 1, - 2 - ], "list": {}, "ids": [] } diff --git a/src/app/dashboards/guided.json b/src/app/dashboards/guided.json index 13114ab450e..eabb77f9db9 100644 --- a/src/app/dashboards/guided.json +++ b/src/app/dashboards/guided.json @@ -2,12 +2,6 @@ "title": "Your Basic Dashboard", "services": { "query": { - "idQueue": [ - 1, - 2, - 3, - 4 - ], "list": { "0": { "query": "*", @@ -23,11 +17,6 @@ ] }, "filter": { - "idQueue": [ - 0, - 1, - 2 - ], "list": {}, "ids": [] } diff --git a/src/app/dashboards/logstash.json b/src/app/dashboards/logstash.json index 15ed4cf4eac..9bd1aac1550 100644 --- a/src/app/dashboards/logstash.json +++ b/src/app/dashboards/logstash.json @@ -2,9 +2,6 @@ "title": "Logstash Search", "services": { "query": { - "idQueue": [ - 1 - ], "list": { "0": { "query": "{{ARGS.query || '*'}}", @@ -20,9 +17,6 @@ ] }, "filter": { - "idQueue": [ - 1 - ], "list": { "0": { "type": "time", diff --git a/src/app/dashboards/noted.json b/src/app/dashboards/noted.json index c9b49b64667..8f2db5024b6 100644 --- a/src/app/dashboards/noted.json +++ b/src/app/dashboards/noted.json @@ -2,12 +2,6 @@ "title": "A few notes", "services": { "query": { - "idQueue": [ - 1, - 2, - 3, - 4 - ], "list": { "0": { "query": "*", @@ -23,11 +17,6 @@ ] }, "filter": { - "idQueue": [ - 0, - 1, - 2 - ], "list": {}, "ids": [] } diff --git a/src/app/panels/table/editor.html b/src/app/panels/table/editor.html index c09d9f198b9..3a4c36bd749 100644 --- a/src/app/panels/table/editor.html +++ b/src/app/panels/table/editor.html @@ -42,7 +42,7 @@
-
Trim Factor Trim fields to this long divided by # of rows
- +
Trim Factor Trim fields to this long divided by # of rows. Requires data refresh.
+
\ No newline at end of file diff --git a/src/app/panels/table/module.html b/src/app/panels/table/module.html index 426424f69d3..d8f8e9091e6 100644 --- a/src/app/panels/table/module.html +++ b/src/app/panels/table/module.html @@ -8,24 +8,29 @@
-
+