Пример #1
0
			valid : function(){
				var valids = {
				//	photo 	 : this.validPhoto(),
					material : this.validMaterial(),
					cause : this.validCause(),
					faultParagraph : this.validFaultParagraph()
				}
				if(store.checkForce && store.isNeedGS)valids.isNeedGS = this.validLightCheck()
				Promise.props(valids)
						.then(function(result){
							this.revert(result)
						}.bind(this))
						.catch(function(error){
							notify.error(error)
						})
			},
Пример #2
0
			valid : function(){
				var store = this.store
				var valids = {
					photo 	 : this.validPhoto(),
					triggerOdm : this.triggerOdm(),
					isNeedRate : this.validRateCheck(),
					isNeedGS : this.validLightCheck(),
					material : this.validMaterial()
				}
				Promise.props(valids)
						.then(function(result){
							this.revert(result)
						}.bind(this))
						.catch(function(error){
							notify.error(error)
						})
			},