|
@@ -21,15 +21,13 @@ var NOTEBOOK_API_PREFIX = "/notebook/api/autocomplete/";
|
|
|
* @param options {object}
|
|
* @param options {object}
|
|
|
* @param options.notebook
|
|
* @param options.notebook
|
|
|
* @param options.user
|
|
* @param options.user
|
|
|
|
|
+ * @param options.activeDatabase
|
|
|
*
|
|
*
|
|
|
* @constructor
|
|
* @constructor
|
|
|
*/
|
|
*/
|
|
|
function AssistHelper (options) {
|
|
function AssistHelper (options) {
|
|
|
var self = this;
|
|
var self = this;
|
|
|
- self.activeDatabase = ko.observable();
|
|
|
|
|
- if (typeof options.db !== "undefined") {
|
|
|
|
|
- self.activeDatabase(options.db)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ self.activeDatabase = ko.observable(options.activeDatabase);
|
|
|
self.notebook = options.notebook;
|
|
self.notebook = options.notebook;
|
|
|
self.user = options.user;
|
|
self.user = options.user;
|
|
|
self.availableDatabases = ko.observableArray();
|
|
self.availableDatabases = ko.observableArray();
|