Skip to content

Commit

Permalink
Applying default marking when model is created, instead of null marki…
Browse files Browse the repository at this point in the history
…ng. Addresses #584
  • Loading branch information
alexsielicki committed Mar 2, 2016
1 parent 19d89e3 commit df84609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web-server/plugins/slycat-cca/js/new-ui.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
define(["slycat-server-root", "slycat-web-client", "slycat-dialog", "knockout", "knockout-mapping", "slycat_file_uploader_factory"], function(server_root, client, dialog, ko, mapping, fileUploader)
define(["slycat-server-root", "slycat-web-client", "slycat-dialog", "slycat-markings", "knockout", "knockout-mapping", "slycat_file_uploader_factory"], function(server_root, client, dialog, markings, ko, mapping, fileUploader)
{
function constructor(params)
{
var component = {};
component.tab = ko.observable(0);
component.project = params.projects()[0];
component.model = mapping.fromJS({_id: null, name: "New CCA Model", description: "", marking: null});
component.model = mapping.fromJS({_id: null, name: "New CCA Model", description: "", marking: markings.preselected()});
component.remote = mapping.fromJS({hostname: null, username: null, password: null, status: null, status_type: null, enable: true, focus: false, sid: null});
component.remote.focus.extend({notify: "always"});
component.browser = mapping.fromJS({path:null, selection: []});
Expand Down
4 changes: 2 additions & 2 deletions web-server/plugins/slycat-parameter-image/js/wizard-ui.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
define(["slycat-server-root", "slycat-web-client", "slycat-dialog", "knockout", "knockout-mapping", "slycat_file_uploader_factory"], function(server_root, client, dialog, ko, mapping, fileUploader)
define(["slycat-server-root", "slycat-web-client", "slycat-dialog", "slycat-markings", "knockout", "knockout-mapping", "slycat_file_uploader_factory"], function(server_root, client, dialog, markings, ko, mapping, fileUploader)
{
function constructor(params)
{
var component = {};
component.tab = ko.observable(0);
component.project = params.projects()[0];
component.model = mapping.fromJS({_id: null, name: "New Parameter Space Model", description: "", marking: null});
component.model = mapping.fromJS({_id: null, name: "New Parameter Space Model", description: "", marking: markings.preselected()});
component.remote = mapping.fromJS({hostname: null, username: null, password: null, status: null, status_type: null, enable: true, focus: false, sid: null});
component.remote.focus.extend({notify: "always"});
component.browser = mapping.fromJS({path:null, selection: []});
Expand Down

0 comments on commit df84609

Please sign in to comment.