mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 16:10:23 +00:00
[Plot] Fixed jsLint, removed onchange
Removed ngChange from mct-control Removed ng-change
This commit is contained in:
@ -23,7 +23,6 @@
|
|||||||
ng-controller="DateTimeFieldController">
|
ng-controller="DateTimeFieldController">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
ng-model="textValue"
|
ng-model="textValue"
|
||||||
ng-change="structure.onchange(ngModel[field])"
|
|
||||||
ng-blur="restoreTextValue(); ngBlur()"
|
ng-blur="restoreTextValue(); ngBlur()"
|
||||||
ng-class="{
|
ng-class="{
|
||||||
error: textInvalid ||
|
error: textInvalid ||
|
||||||
|
@ -146,7 +146,6 @@ define(
|
|||||||
*/
|
*/
|
||||||
PlotOptionsController.prototype.updateConfiguration = function() {
|
PlotOptionsController.prototype.updateConfiguration = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
console.log('form values changed');
|
|
||||||
this.domainObject.useCapability('mutation', function(model){
|
this.domainObject.useCapability('mutation', function(model){
|
||||||
model.configuration = model.configuration || {};
|
model.configuration = model.configuration || {};
|
||||||
model.configuration.plot = self.configuration.plot;
|
model.configuration.plot = self.configuration.plot;
|
||||||
|
@ -40,7 +40,6 @@ define(
|
|||||||
*/
|
*/
|
||||||
this.xAxisForm = {
|
this.xAxisForm = {
|
||||||
'name':'x-axis',
|
'name':'x-axis',
|
||||||
'onchange': onchange,
|
|
||||||
'sections': [{
|
'sections': [{
|
||||||
'name': 'x-axis',
|
'name': 'x-axis',
|
||||||
'rows': [
|
'rows': [
|
||||||
@ -59,7 +58,6 @@ define(
|
|||||||
|
|
||||||
this.yAxisForm = {
|
this.yAxisForm = {
|
||||||
'name':'y-axis',
|
'name':'y-axis',
|
||||||
'onchange': onchange,
|
|
||||||
'sections': [{
|
'sections': [{
|
||||||
// Will need to be repeated for each y-axis, with a
|
// Will need to be repeated for each y-axis, with a
|
||||||
// distinct name for each. Ideally the name of the axis
|
// distinct name for each. Ideally the name of the axis
|
||||||
@ -98,7 +96,6 @@ define(
|
|||||||
};
|
};
|
||||||
this.plotSeriesForm = {
|
this.plotSeriesForm = {
|
||||||
'name':'Series Options',
|
'name':'Series Options',
|
||||||
'onchange': onchange,
|
|
||||||
'sections': [
|
'sections': [
|
||||||
{
|
{
|
||||||
rows: [
|
rows: [
|
||||||
|
@ -97,8 +97,6 @@ define(
|
|||||||
// Set of choices (if any)
|
// Set of choices (if any)
|
||||||
options: "=",
|
options: "=",
|
||||||
|
|
||||||
ngChange: "&",
|
|
||||||
|
|
||||||
// Structure (subtree of Form Structure)
|
// Structure (subtree of Form Structure)
|
||||||
structure: "=",
|
structure: "=",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user