');
- if (cfg.onkeyup) {
- form.on('keyup', (function (cb) {
- return function (e) {
- cb(e);
- }
- })(cfg.onkeyup));
- }
+ // i made up navbar group to have the form be inline-block
+ var form = $('
');
+ form.append('
');
+ if (cfg.onkeyup) {
+ form.on('keyup', (function (cb) {
+ return function (e) {
+ cb(e);
+ };
+ })(cfg.onkeyup));
+ }
if (cfg.place === 'end') {
- this.container.append(form);
- } else {
- this.container.prepend(form);
- }
- return this;
+ this.container.append(form);
+ } else {
+ this.container.prepend(form);
+ }
+ return this;
}
- }
+ }
+
+
+ });
-
- });
-
- });
\ No newline at end of file
+});
\ No newline at end of file
diff --git a/src/plugins/mainwindow/modules/widgets/error.js b/src/plugins/mainwindow/modules/widgets/error.js
index 3a9f69c19..6bfe725b3 100644
--- a/src/plugins/mainwindow/modules/widgets/error.js
+++ b/src/plugins/mainwindow/modules/widgets/error.js
@@ -103,9 +103,8 @@ define([
return compare(obj, shape);
}
-
- function factory(config) {
- var mount, container, runtime = config.runtime;
+ function factory() {
+ var mount, container;
// IMPL
@@ -151,16 +150,16 @@ define([
}
// We need to always emit an error to the console. The original
- // error catch may also emit the error to console.error.
+ // error catch may also emit the error to console.error.
console.error(error);
if (error.extra) {
error.extended = html.makeObjTable([error.extra], { rotated: true });
}
- return div({
- class: 'container-fluid',
- dataWidget: 'error'
+ return div({
+ class: 'container-fluid',
+ dataWidget: 'error'
}, html.makePanel({
title: params.title,
class: 'danger',
diff --git a/src/plugins/mainwindow/modules/widgets/notFound.js b/src/plugins/mainwindow/modules/widgets/notFound.js
index 24288526a..ce7a9b784 100644
--- a/src/plugins/mainwindow/modules/widgets/notFound.js
+++ b/src/plugins/mainwindow/modules/widgets/notFound.js
@@ -17,7 +17,7 @@ define([
td = t('td');
- function factory(config) {
+ function factory() {
var hostNode, container;
// IMPL
@@ -35,11 +35,11 @@ define([
th({style: {fontWeight: 'normal'}}, 'Key'),
th({style: {fontWeight: 'normal'}}, 'Value')
]),
- Object.keys(params.request.query).map(function(key) {
+ Object.keys(params.request.query).map(function (key) {
return tr([
td({style: {fontWeight: 'bold'}}, html.embeddableString(key)),
td({style: {fontWeight: 'bold'}}, html.embeddableString(params.request.query[key]))
- ])
+ ]);
}).join('\n')
]);
}
diff --git a/src/plugins/message/modules/panel.js b/src/plugins/message/modules/panel.js
index 64778122b..8d8ac7ec1 100644
--- a/src/plugins/message/modules/panel.js
+++ b/src/plugins/message/modules/panel.js
@@ -2,7 +2,7 @@ define([
'kb_common/html',
'kb_common/places'
],
-function(
+function (
html,
Places
) {
@@ -62,8 +62,7 @@ function(
}
function start(params) {
- var id = params.messageId,
- messageInfo = getInfo(params),
+ var messageInfo = getInfo(params),
message = findMessage(params.id, messageInfo);
runtime.send('ui', 'setTitle', message.title);
places.setContent('title', message.title);
@@ -84,7 +83,7 @@ function(
}
return {
- make: function(config) {
+ make: function (config) {
return widget(config);
}
};
diff --git a/src/plugins/narrativemanager/modules/createNewPanel.js b/src/plugins/narrativemanager/modules/createNewPanel.js
index e7e23e6af..1909f4bf0 100644
--- a/src/plugins/narrativemanager/modules/createNewPanel.js
+++ b/src/plugins/narrativemanager/modules/createNewPanel.js
@@ -51,7 +51,7 @@ define([
}
}
- // Note that these are exclusive cell creation options.
+ // Note that these are exclusive cell creation options.
if (params.app) {
cells = [{ app: params.app }];
} else if (params.method) {
diff --git a/src/plugins/narrativemanager/modules/startPanel.js b/src/plugins/narrativemanager/modules/startPanel.js
index ac9894e12..18332199b 100644
--- a/src/plugins/narrativemanager/modules/startPanel.js
+++ b/src/plugins/narrativemanager/modules/startPanel.js
@@ -35,10 +35,10 @@ define([
}
//we need to construct a new narrative- we have a first timer
return narrativeManager.createTempNarrative({
- cells: [],
- parameters: [],
- importData: []
- })
+ cells: [],
+ parameters: [],
+ importData: []
+ })
.then(function (result) {
return {
redirect: {
diff --git a/src/plugins/welcome/modules/goodbyePanelWidget.js b/src/plugins/welcome/modules/goodbyePanelWidget.js
index 61ce9fc5b..ce3004cf1 100644
--- a/src/plugins/welcome/modules/goodbyePanelWidget.js
+++ b/src/plugins/welcome/modules/goodbyePanelWidget.js
@@ -14,7 +14,7 @@ function (
// VIEW
- function render(params) {
+ function render() {
return div({class: 'container-fluid'}, html.makePanel({
title: 'Signed Out',
content: [
diff --git a/src/test/integration-tests/specs/runner.js b/src/test/integration-tests/specs/runner.js
index afc0db009..cd857b4d5 100644
--- a/src/test/integration-tests/specs/runner.js
+++ b/src/test/integration-tests/specs/runner.js
@@ -55,10 +55,10 @@ function makeSelector(base, selector) {
break;
}
return buildSelector(fullPath);
-
+
}
function info() {
- let args = Array.prototype.slice.call(arguments);
+ const args = Array.prototype.slice.call(arguments);
process.stdout.write(args.join(' ') + '\n');
}
function interpValue(value, testData) {
@@ -100,16 +100,16 @@ function doTask(spec, task, testData) {
// only proceed with a further action if succeeded so far.
if (task.text) {
- let text = browser.getText(selector);
+ const text = browser.getText(selector);
expect(text).toEqual(interpValue(task.text, testData));
} else if (task.match) {
- let toMatch = browser.getText(selector);
+ const toMatch = browser.getText(selector);
expect(toMatch).toMatch(new RegExp(task.text));
} else if (task.number) {
- let toCompare = browser.getText(selector);
+ const toCompare = browser.getText(selector);
expect(toCompare).toBeDefined();
- let theNumber = Number(toCompare.replace(/,/g, ''));
-
+ const theNumber = Number(toCompare.replace(/,/g, ''));
+
Object.keys(task.number).forEach(function (comparison) {
var comparisonValue = task.number[comparison];
switch (comparison) {
@@ -118,23 +118,23 @@ function doTask(spec, task, testData) {
break;
case 'greaterThanOrEqual':
expect(theNumber).toBeGreaterThanOrEqual(comparisonValue);
- break;
+ break;
case 'lessThan':
expect(theNumber).toBeLessThan(comparisonValue);
break;
case 'lessThanOrEqual':
expect(theNumber).toBeLessThanOrEqual(comparisonValue);
- break;
+ break;
case 'equal':
expect(theNumber).toEqual(comparisonValue);
- break;
+ break;
}
});
} else if (task.count) {
// count the elements which matched this selector
- let toCompare = browser.elements(selector).value.length;
+ const toCompare = browser.elements(selector).value.length;
expect(toCompare).toBeDefined();
-
+
Object.keys(task.count).forEach(function (comparison) {
var comparisonValue = task.count[comparison];
switch (comparison) {
@@ -143,16 +143,16 @@ function doTask(spec, task, testData) {
break;
case 'greaterThanOrEqual':
expect(toCompare).toBeGreaterThanOrEqual(comparisonValue);
- break;
+ break;
case 'lessThan':
expect(toCompare).toBeLessThan(comparisonValue);
break;
case 'lessThanOrEqual':
expect(toCompare).toBeLessThanOrEqual(comparisonValue);
- break;
+ break;
case 'equal':
expect(toCompare).toEqual(comparisonValue);
- break;
+ break;
}
});
}
@@ -175,7 +175,7 @@ function doTask(spec, task, testData) {
case 'delete-cookie':
browser.deleteCookie();
expect(browser.getCookie('kbase_session')).toBeNull();
- break;
+ break;
case 'navigate':
browser.url(task.params.url);
break;