web/ext-lib/jqCron/jqCron.js
function newSelector($block, multiple, type){
			var selector = new jqCronSelector(_self, $block, multiple, type);
			selector.$.bind('selector:open', function(){
				// we close all opened selectors of all other jqCron
				for(var n = jqCronInstances.length; n--; ){
					if(jqCronInstances[n] != _self) {
						jqCronInstances[n].closeSelectors();
					}
					else {
						// we close all other opened selectors of this jqCron
						for(var o = _selectors.length; o--; ){
							if(_selectors[o] != selector) {
								_selectors[o].close();
							}
						}
					}
				}
			});
			selector.$.bind('selector:change', function(){
				var boundChanged = false;
				// don't propagate if not initialized
				if(!_initialized) return;
				// bind data between two minute selectors (only if they have the same multiple settings)
				if(settings.multiple_mins == settings.multiple_time_minutes) {
					if(selector == _selectorMins) {
						boundChanged = _selectorTimeM.setValue(_selectorMins.getValue());
					}
					else if(selector == _selectorTimeM) {
						boundChanged = _selectorMins.setValue(_selectorTimeM.getValue());
					}
				}
				// we propagate the change event to the main object
				boundChanged || _$obj.trigger('cron:change', _self.getCron());
			});
			_selectors.push(selector);
			return selector;
		}
function newSelector($block, multiple, type){
			var selector = new jqCronSelector(_self, $block, multiple, type);
			selector.$.bind('selector:open', function(){
				// we close all opened selectors of all other jqCron
				for(var n = jqCronInstances.length; n--; ){
					if(jqCronInstances[n] != _self) {
						jqCronInstances[n].closeSelectors();
					}
					else {
						// we close all other opened selectors of this jqCron
						for(var o = _selectors.length; o--; ){
							if(_selectors[o] != selector) {
								_selectors[o].close();
							}
						}
					}
				}
			});
			selector.$.bind('selector:change', function(){
				var boundChanged = false;
				// don't propagate if not initialized
				if(!_initialized) return;
				// bind data between two minute selectors (only if they have the same multiple settings)
				if(settings.multiple_mins == settings.multiple_time_minutes) {
					if(selector == _selectorMins) {
						boundChanged = _selectorTimeM.setValue(_selectorMins.getValue());
					}
					else if(selector == _selectorTimeM) {
						boundChanged = _selectorMins.setValue(_selectorTimeM.getValue());
					}
				}
				// we propagate the change event to the main object
				boundChanged || _$obj.trigger('cron:change', _self.getCron());
			});
			_selectors.push(selector);
			return selector;
		}
function newSelector ( $block , multiple , type ) { var selector = new jqCronSelector ( _self , $block , multiple , type ) ; selector . $ . bind ( 'selector:open' , function ( ) { // we close all opened selectors of all other jqCron for ( var n = jqCronInstances . length ; n -- ; ) { if ( jqCronInstances [ n ] != _self ) { jqCronInstances [ n ] . closeSelectors ( ) ; } else { // we close all other opened selectors of this jqCron for ( var o = _selectors . length ; o -- ; ) { if ( _selectors [ o ] != selector ) { _selectors [ o ] . close ( ) ; } } } } } ) ; selector . $ . bind ( 'selector:change' , function ( ) { var boundChanged = false ; // don't propagate if not initialized if ( ! _initialized ) return ; // bind data between two minute selectors (only if they have the same multiple settings) if ( settings . multiple_mins == settings . multiple_time_minutes ) { if ( selector == _selectorMins ) { boundChanged = _selectorTimeM . setValue ( _selectorMins . getValue ( ) ) ; } else if ( selector == _selectorTimeM ) { boundChanged = _selectorMins . setValue ( _selectorTimeM . getValue ( ) ) ; } } // we propagate the change event to the main object boundChanged || _$obj . trigger ( 'cron:change' , _self . getCron ( ) ) ; } ) ; _selectors . push ( selector ) ; return selector ; }
instanciate a new selector
instanciate a new selector