1
0
Fork 0

Added generated files in WebInterface

This commit is contained in:
Michael Hackstein 2015-02-22 21:23:03 +01:00
parent 4727a44b18
commit 27253fde9c
1 changed files with 3 additions and 1 deletions

View File

@ -2875,7 +2875,8 @@ window.StatisticsCollection = Backbone.Collection.extend({
var tests = _.map(this._validators, function(v) { var tests = _.map(this._validators, function(v) {
return v(); return v();
}); });
if (_.any(tests)) { var invalid = _.any(tests);
if (invalid) {
$('.modal-footer .button-success') $('.modal-footer .button-success')
.prop('disabled', true) .prop('disabled', true)
.addClass('disabled'); .addClass('disabled');
@ -2884,6 +2885,7 @@ window.StatisticsCollection = Backbone.Collection.extend({
.prop('disabled', false) .prop('disabled', false)
.removeClass('disabled'); .removeClass('disabled');
} }
return !invalid;
}, },
clearValidators: function() { clearValidators: function() {