Skip to content

Commit

Permalink
Disable feature for forms which auto refresh with a server validation
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler authored and martenson committed Jun 2, 2017
1 parent fdc712f commit 9d0f9ef
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions client/galaxy/scripts/mvc/form/form-input.js
Expand Up @@ -11,7 +11,8 @@ define([], function() {
text_enable : this.app_options.text_enable || 'Enable',
text_disable : this.app_options.text_disable || 'Disable',
cls_enable : this.app_options.cls_enable || 'fa fa-caret-square-o-down',
cls_disable : this.app_options.cls_disable || 'fa fa-caret-square-o-up'
cls_disable : this.app_options.cls_disable || 'fa fa-caret-square-o-up',
always_refresh : this.app_options.always_refresh
}).set( options );

// set element and link components
Expand Down Expand Up @@ -47,7 +48,7 @@ define([], function() {

// hide error on value change
if ( this.field.model && !this.model.get( 'always_refresh' ) ) {
this.listenTo( this.field.model, 'change', function() { self.reset() } );
this.listenTo( this.field.model, 'change:value', function() { self.reset() } );
}
},

Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/form/form-input.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions static/scripts/bundled/analysis.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/analysis.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/mvc/form/form-input.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d0f9ef

Please sign in to comment.