|
|
@ -20192,6 +20192,20 @@ BI.extend(BI.DOM, { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var actions = {} |
|
|
|
|
|
|
|
BI.action = function (type, actionFn) { |
|
|
|
|
|
|
|
if (!actions[type]) { |
|
|
|
|
|
|
|
actions[type] = []; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
actions[type].push(actionFn) |
|
|
|
|
|
|
|
return function () { |
|
|
|
|
|
|
|
actions[type].remove(actionFn); |
|
|
|
|
|
|
|
if (actions[type].length === 0) { |
|
|
|
|
|
|
|
delete actions[type]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BI.Constants = { |
|
|
|
BI.Constants = { |
|
|
|
getConstant: function (type) { |
|
|
|
getConstant: function (type) { |
|
|
|
return constantInjection[type]; |
|
|
|
return constantInjection[type]; |
|
|
@ -20228,6 +20242,14 @@ BI.extend(BI.DOM, { |
|
|
|
return providerInstance[type]; |
|
|
|
return providerInstance[type]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.Actions = { |
|
|
|
|
|
|
|
runAction: function (type, config) { |
|
|
|
|
|
|
|
BI.each(actions[type], function (i, act) { |
|
|
|
|
|
|
|
act(config); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
/** |
|
|
|
/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
@ -26588,7 +26610,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
interval = setInterval(function () { |
|
|
|
interval = setInterval(function () { |
|
|
|
if(self.isEnabled()){ |
|
|
|
if (self.isEnabled()) { |
|
|
|
self.doClick(); |
|
|
|
self.doClick(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, 100); |
|
|
|
}, 100); |
|
|
@ -26630,7 +26652,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_trigger: function () { |
|
|
|
_trigger: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if(!this.isEnabled()){ |
|
|
|
if (!this.isEnabled()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.isDisableSelected()) { |
|
|
|
if (!this.isDisableSelected()) { |
|
|
@ -26643,6 +26665,9 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
var v = this.getValue(); |
|
|
|
var v = this.getValue(); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, v, this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, v, this); |
|
|
|
this.fireEvent(BI.BasicButton.EVENT_CHANGE, v, this); |
|
|
|
this.fireEvent(BI.BasicButton.EVENT_CHANGE, v, this); |
|
|
|
|
|
|
|
if (o.action) { |
|
|
|
|
|
|
|
BI.Actions.runAction(o.action, o); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|