diff --git a/src/base/single/button/button.basic.js b/src/base/single/button/button.basic.js index bfc1090c9..efad22775 100644 --- a/src/base/single/button/button.basic.js +++ b/src/base/single/button/button.basic.js @@ -409,4 +409,4 @@ BI.BasicButton = BI.inherit(BI.Single, { BI.BasicButton.superclass.destroy.apply(this, arguments); } }); -BI.BasicButton.EVENT_CHANGE = "BasicButton.EVENT_CHANGE"; \ No newline at end of file +BI.BasicButton.EVENT_CHANGE = "EVENT_CHANGE"; \ No newline at end of file diff --git a/src/base/single/button/buttons/button.icon.js b/src/base/single/button/buttons/button.icon.js index ec059e8bc..62f9a5bd0 100644 --- a/src/base/single/button/buttons/button.icon.js +++ b/src/base/single/button/buttons/button.icon.js @@ -48,5 +48,5 @@ BI.IconButton = BI.inherit(BI.BasicButton, { } } }); -BI.IconButton.EVENT_CHANGE = "IconButton.EVENT_CHANGE"; +BI.IconButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.icon_button", BI.IconButton); \ No newline at end of file diff --git a/src/base/single/button/buttons/button.image.js b/src/base/single/button/buttons/button.image.js index 085e901a8..503ce034a 100644 --- a/src/base/single/button/buttons/button.image.js +++ b/src/base/single/button/buttons/button.image.js @@ -83,5 +83,5 @@ BI.ImageButton = BI.inherit(BI.BasicButton, { } } }); -BI.ImageButton.EVENT_CHANGE = "ImageButton.EVENT_CHANGE"; +BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.image_button", BI.ImageButton); \ No newline at end of file diff --git a/src/base/single/editor/editor.multifile.js b/src/base/single/editor/editor.multifile.js index 9284c12e8..f4aa6073b 100644 --- a/src/base/single/editor/editor.multifile.js +++ b/src/base/single/editor/editor.multifile.js @@ -82,9 +82,9 @@ BI.MultifileEditor = BI.inherit(BI.Widget, { this.file.reset(); } }); -BI.MultifileEditor.EVENT_CHANGE = "MultifileEditor.EVENT_CHANGE"; -BI.MultifileEditor.EVENT_UPLOADSTART = "MultifileEditor.EVENT_UPLOADSTART"; -BI.MultifileEditor.EVENT_ERROR = "MultifileEditor.EVENT_ERROR"; -BI.MultifileEditor.EVENT_PROGRESS = "MultifileEditor.EVENT_PROGRESS"; -BI.MultifileEditor.EVENT_UPLOADED = "MultifileEditor.EVENT_UPLOADED"; +BI.MultifileEditor.EVENT_CHANGE = "EVENT_CHANGE"; +BI.MultifileEditor.EVENT_UPLOADSTART = "EVENT_UPLOADSTART"; +BI.MultifileEditor.EVENT_ERROR = "EVENT_ERROR"; +BI.MultifileEditor.EVENT_PROGRESS = "EVENT_PROGRESS"; +BI.MultifileEditor.EVENT_UPLOADED = "EVENT_UPLOADED"; BI.shortcut("bi.multifile_editor", BI.MultifileEditor); \ No newline at end of file diff --git a/src/base/single/input/checkbox/checkbox.image.js b/src/base/single/input/checkbox/checkbox.image.js index e326c5361..c20127f60 100644 --- a/src/base/single/input/checkbox/checkbox.image.js +++ b/src/base/single/input/checkbox/checkbox.image.js @@ -28,6 +28,6 @@ BI.ImageCheckbox = BI.inherit(BI.IconButton, { } } }); -BI.ImageCheckbox.EVENT_CHANGE = "Checkbox.EVENT_CHANGE"; +BI.ImageCheckbox.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.image_checkbox", BI.ImageCheckbox); \ No newline at end of file diff --git a/src/base/single/input/checkbox/checkbox.js b/src/base/single/input/checkbox/checkbox.js index 87c1843a4..f9574dbdb 100644 --- a/src/base/single/input/checkbox/checkbox.js +++ b/src/base/single/input/checkbox/checkbox.js @@ -56,6 +56,6 @@ BI.Checkbox = BI.inherit(BI.BasicButton, { } } }); -BI.Checkbox.EVENT_CHANGE = "Checkbox.EVENT_CHANGE"; +BI.Checkbox.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.checkbox", BI.Checkbox); \ No newline at end of file diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 2697920a4..0ed1b7e2e 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -617,7 +617,7 @@ } } }); - BI.File.EVENT_CHANGE = "BI.File.EVENT_CHANGE"; + BI.File.EVENT_CHANGE = "EVENT_CHANGE"; BI.File.EVENT_UPLOADSTART = "EVENT_UPLOADSTART"; BI.File.EVENT_ERROR = "EVENT_ERROR"; BI.File.EVENT_PROGRESS = "EVENT_PROGRESS"; diff --git a/src/base/single/input/radio/radio.image.js b/src/base/single/input/radio/radio.image.js index 6349024ed..7fc365aea 100644 --- a/src/base/single/input/radio/radio.image.js +++ b/src/base/single/input/radio/radio.image.js @@ -28,6 +28,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, { } } }); -BI.ImageRadio.EVENT_CHANGE = "Radio.EVENT_CHANGE"; +BI.ImageRadio.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.image_radio", BI.ImageRadio); \ No newline at end of file diff --git a/src/base/single/input/radio/radio.js b/src/base/single/input/radio/radio.js index eadb0bc29..6cf5e3635 100644 --- a/src/base/single/input/radio/radio.js +++ b/src/base/single/input/radio/radio.js @@ -57,6 +57,6 @@ BI.Radio = BI.inherit(BI.BasicButton, { } } }); -BI.Radio.EVENT_CHANGE = "Radio.EVENT_CHANGE"; +BI.Radio.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.radio", BI.Radio); \ No newline at end of file diff --git a/src/case/button/icon/icon.change.js b/src/case/button/icon/icon.change.js index 9f7326d47..8790008e2 100644 --- a/src/case/button/icon/icon.change.js +++ b/src/case/button/icon/icon.change.js @@ -79,5 +79,5 @@ BI.IconChangeButton = BI.inherit(BI.Single, { } } }); -BI.IconChangeButton.EVENT_CHANGE = "IconChangeButton.EVENT_CHANGE"; +BI.IconChangeButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.icon_change_button", BI.IconChangeButton); \ No newline at end of file diff --git a/src/case/button/icon/icon.trigger.js b/src/case/button/icon/icon.trigger.js index 8ae75e3cf..f37906a75 100644 --- a/src/case/button/icon/icon.trigger.js +++ b/src/case/button/icon/icon.trigger.js @@ -26,5 +26,5 @@ BI.TriggerIconButton = BI.inherit(BI.IconButton, { } } }); -BI.TriggerIconButton.EVENT_CHANGE = "TriggerIconButton.EVENT_CHANGE"; +BI.TriggerIconButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton); \ No newline at end of file diff --git a/src/case/button/icon/iconhalf/icon.half.image.js b/src/case/button/icon/iconhalf/icon.half.image.js index 5c93f7585..925f1211d 100644 --- a/src/case/button/icon/iconhalf/icon.half.image.js +++ b/src/case/button/icon/iconhalf/icon.half.image.js @@ -27,6 +27,6 @@ BI.HalfIconButton = BI.inherit(BI.IconButton, { } } }); -BI.HalfIconButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; +BI.HalfIconButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.half_icon_button", BI.HalfIconButton); \ No newline at end of file diff --git a/src/case/button/icon/iconhalf/icon.half.js b/src/case/button/icon/iconhalf/icon.half.js index f89dda240..83cdedcec 100644 --- a/src/case/button/icon/iconhalf/icon.half.js +++ b/src/case/button/icon/iconhalf/icon.half.js @@ -35,6 +35,6 @@ BI.HalfButton = BI.inherit(BI.BasicButton, { } } }); -BI.HalfButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; +BI.HalfButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.half_button", BI.HalfButton); \ No newline at end of file diff --git a/src/case/button/item.singleselect.js b/src/case/button/item.singleselect.js index f30ccce01..04420722d 100644 --- a/src/case/button/item.singleselect.js +++ b/src/case/button/item.singleselect.js @@ -43,7 +43,7 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, { doClick: function () { BI.SingleSelectItem.superclass.doClick.apply(this, arguments); if (this.isValid()) { - this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this); + this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE, this.isSelected(), this); } }, @@ -51,5 +51,6 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, { BI.SingleSelectItem.superclass.setSelected.apply(this, arguments); } }); -BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE"; + +BI.SingleSelectItem.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.single_select_item", BI.SingleSelectItem); \ No newline at end of file diff --git a/src/case/button/item.singleselect.radio.js b/src/case/button/item.singleselect.radio.js index ce49b215f..272fe2939 100644 --- a/src/case/button/item.singleselect.radio.js +++ b/src/case/button/item.singleselect.radio.js @@ -56,6 +56,9 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { doClick: function () { BI.SingleSelectRadioItem.superclass.doClick.apply(this, arguments); this.radio.setSelected(this.isSelected()); + if (this.isValid()) { + this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE, this.isSelected(), this); + } }, setSelected: function (v) { @@ -65,4 +68,5 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { } }); +BI.SingleSelectItem.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.single_select_radio_item", BI.SingleSelectRadioItem); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.custom.js b/src/case/colorchooser/colorchooser.custom.js index 99120d6dc..445b99530 100644 --- a/src/case/colorchooser/colorchooser.custom.js +++ b/src/case/colorchooser/colorchooser.custom.js @@ -65,5 +65,5 @@ BI.CustomColorChooser = BI.inherit(BI.Widget, { return this.editor.getValue(); } }); -BI.CustomColorChooser.EVENT_CHANGE = "CustomColorChooser.EVENT_CHANGE"; +BI.CustomColorChooser.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.custom_color_chooser", BI.CustomColorChooser); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.js b/src/case/colorchooser/colorchooser.js index 02b1efd5f..d1fc4a74d 100644 --- a/src/case/colorchooser/colorchooser.js +++ b/src/case/colorchooser/colorchooser.js @@ -104,5 +104,5 @@ BI.ColorChooser = BI.inherit(BI.Widget, { return this.combo.getValue(); } }); -BI.ColorChooser.EVENT_CHANGE = "ColorChooser.EVENT_CHANGE"; +BI.ColorChooser.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_chooser", BI.ColorChooser); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.popup.js b/src/case/colorchooser/colorchooser.popup.js index 0e3861ef0..5e4f0b87e 100644 --- a/src/case/colorchooser/colorchooser.popup.js +++ b/src/case/colorchooser/colorchooser.popup.js @@ -220,6 +220,6 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { return this.colorEditor.getValue(); } }); -BI.ColorChooserPopup.EVENT_VALUE_CHANGE = "ColorChooserPopup.EVENT_VALUE_CHANGE"; -BI.ColorChooserPopup.EVENT_CHANGE = "ColorChooserPopup.EVENT_CHANGE"; +BI.ColorChooserPopup.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE"; +BI.ColorChooserPopup.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_chooser_popup", BI.ColorChooserPopup); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.popup.simple.js b/src/case/colorchooser/colorchooser.popup.simple.js index 4e9386203..8f77dbd45 100644 --- a/src/case/colorchooser/colorchooser.popup.simple.js +++ b/src/case/colorchooser/colorchooser.popup.simple.js @@ -44,6 +44,6 @@ BI.SimpleColorChooserPopup = BI.inherit(BI.Widget, { return this.popup.getValue(); } }); -BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE = "ColorChooserPopup.EVENT_VALUE_CHANGE"; -BI.SimpleColorChooserPopup.EVENT_CHANGE = "ColorChooserPopup.EVENT_CHANGE"; +BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE"; +BI.SimpleColorChooserPopup.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.simple_color_chooser_popup", BI.SimpleColorChooserPopup); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.simple.js b/src/case/colorchooser/colorchooser.simple.js index 2f68ffcd3..d3fa70285 100644 --- a/src/case/colorchooser/colorchooser.simple.js +++ b/src/case/colorchooser/colorchooser.simple.js @@ -54,5 +54,5 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, { return this.combo.getValue(); } }); -BI.SimpleColorChooser.EVENT_CHANGE = "ColorChooser.EVENT_CHANGE"; +BI.SimpleColorChooser.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.simple_color_chooser", BI.SimpleColorChooser); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.trigger.js b/src/case/colorchooser/colorchooser.trigger.js index 0f1ade649..9cd3d2f09 100644 --- a/src/case/colorchooser/colorchooser.trigger.js +++ b/src/case/colorchooser/colorchooser.trigger.js @@ -61,5 +61,5 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, { } } }); -BI.ColorChooserTrigger.EVENT_CHANGE = "ColorChooserTrigger.EVENT_CHANGE"; +BI.ColorChooserTrigger.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_chooser_trigger", BI.ColorChooserTrigger); \ No newline at end of file diff --git a/src/case/colorchooser/colorchooser.trigger.long.js b/src/case/colorchooser/colorchooser.trigger.long.js index 9eedd3659..04c88b88a 100644 --- a/src/case/colorchooser/colorchooser.trigger.long.js +++ b/src/case/colorchooser/colorchooser.trigger.long.js @@ -93,5 +93,5 @@ BI.LongColorChooserTrigger = BI.inherit(BI.Trigger, { } } }); -BI.LongColorChooserTrigger.EVENT_CHANGE = "ColorChooserTrigger.EVENT_CHANGE"; +BI.LongColorChooserTrigger.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.long_color_chooser_trigger", BI.LongColorChooserTrigger); \ No newline at end of file diff --git a/src/case/colorchooser/colorpicker/button/button.colorpicker.js b/src/case/colorchooser/colorpicker/button/button.colorpicker.js index df5412c51..caa895620 100644 --- a/src/case/colorchooser/colorpicker/button/button.colorpicker.js +++ b/src/case/colorchooser/colorpicker/button/button.colorpicker.js @@ -56,5 +56,5 @@ BI.ColorPickerButton = BI.inherit(BI.BasicButton, { BI.Maskers[b ? "show" : "hide"](this.getName()); } }); -BI.ColorPickerButton.EVENT_CHANGE = "ColorPickerButton.EVENT_CHANGE"; +BI.ColorPickerButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_picker_button", BI.ColorPickerButton); \ No newline at end of file diff --git a/src/case/colorchooser/colorpicker/colorpicker.js b/src/case/colorchooser/colorpicker/colorpicker.js index a35b88dd0..b6c8c9fe3 100644 --- a/src/case/colorchooser/colorpicker/colorpicker.js +++ b/src/case/colorchooser/colorpicker/colorpicker.js @@ -186,5 +186,5 @@ BI.ColorPicker = BI.inherit(BI.Widget, { return this.colors.getValue(); } }); -BI.ColorPicker.EVENT_CHANGE = "ColorPicker.EVENT_CHANGE"; +BI.ColorPicker.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_picker", BI.ColorPicker); \ No newline at end of file diff --git a/src/case/colorchooser/colorpicker/editor.colorpicker.js b/src/case/colorchooser/colorpicker/editor.colorpicker.js index bbb2d39bb..3afacdd83 100644 --- a/src/case/colorchooser/colorpicker/editor.colorpicker.js +++ b/src/case/colorchooser/colorpicker/editor.colorpicker.js @@ -240,5 +240,5 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { })); } }); -BI.ColorPickerEditor.EVENT_CHANGE = "ColorPickerEditor.EVENT_CHANGE"; +BI.ColorPickerEditor.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_picker_editor", BI.ColorPickerEditor); \ No newline at end of file diff --git a/src/case/colorchooser/colorpicker/editor.colorpicker.simple.js b/src/case/colorchooser/colorpicker/editor.colorpicker.simple.js index 49c759548..819a0b3ab 100644 --- a/src/case/colorchooser/colorpicker/editor.colorpicker.simple.js +++ b/src/case/colorchooser/colorpicker/editor.colorpicker.simple.js @@ -106,5 +106,5 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, { })); } }); -BI.SimpleColorPickerEditor.EVENT_CHANGE = "ColorPickerEditor.EVENT_CHANGE"; +BI.SimpleColorPickerEditor.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.simple_color_picker_editor", BI.SimpleColorPickerEditor); \ No newline at end of file diff --git a/src/case/colorchooser/farbtastic/farbtastic.js b/src/case/colorchooser/farbtastic/farbtastic.js index 630cf9af5..cba596bc5 100644 --- a/src/case/colorchooser/farbtastic/farbtastic.js +++ b/src/case/colorchooser/farbtastic/farbtastic.js @@ -276,5 +276,5 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, { return this.value; } }); -BI.Farbtastic.EVENT_CHANGE = "Farbtastic.EVENT_CHANGE"; +BI.Farbtastic.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.farbtastic", BI.Farbtastic); \ No newline at end of file diff --git a/src/case/layer/panel.js b/src/case/layer/panel.js index 4cbc74b16..d24b7b546 100644 --- a/src/case/layer/panel.js +++ b/src/case/layer/panel.js @@ -74,6 +74,6 @@ BI.Panel = BI.inherit(BI.Widget, { this.text.setValue(title); } }); -BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE"; +BI.Panel.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.panel", BI.Panel); diff --git a/src/case/toolbar/toolbar.multiselect.js b/src/case/toolbar/toolbar.multiselect.js index f2bf90c21..082135697 100644 --- a/src/case/toolbar/toolbar.multiselect.js +++ b/src/case/toolbar/toolbar.multiselect.js @@ -135,5 +135,5 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { } } }); -BI.MultiSelectBar.EVENT_CHANGE = "MultiSelectBar.EVENT_CHANGE"; +BI.MultiSelectBar.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.multi_select_bar", BI.MultiSelectBar); diff --git a/src/case/trigger/trigger.editor.js b/src/case/trigger/trigger.editor.js index 5a1d281c7..d76f5ff5d 100644 --- a/src/case/trigger/trigger.editor.js +++ b/src/case/trigger/trigger.editor.js @@ -76,5 +76,5 @@ BI.EditorTrigger = BI.inherit(BI.Trigger, { this.editor.setState(text); } }); -BI.EditorTrigger.EVENT_CHANGE = "BI.EditorTrigger.EVENT_CHANGE"; +BI.EditorTrigger.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.editor_trigger", BI.EditorTrigger); diff --git a/src/component/allvaluechooser/pane.allvaluechooser.js b/src/component/allvaluechooser/pane.allvaluechooser.js index 301223b62..1e2c6837d 100644 --- a/src/component/allvaluechooser/pane.allvaluechooser.js +++ b/src/component/allvaluechooser/pane.allvaluechooser.js @@ -60,5 +60,5 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { this.list.populate.apply(this.list, arguments); } }); -BI.AllValueChooserPane.EVENT_CHANGE = "AllValueChooserPane.EVENT_CHANGE"; +BI.AllValueChooserPane.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane); \ No newline at end of file diff --git a/src/component/treevaluechooser/pane.treevaluechooser.js b/src/component/treevaluechooser/pane.treevaluechooser.js index 457ee13ce..87c80ce8b 100644 --- a/src/component/treevaluechooser/pane.treevaluechooser.js +++ b/src/component/treevaluechooser/pane.treevaluechooser.js @@ -49,5 +49,5 @@ BI.TreeValueChooserPane = BI.inherit(BI.AbstractTreeValueChooser, { this.pane.populate.apply(this.pane, arguments); } }); -BI.TreeValueChooserPane.EVENT_CHANGE = "TreeValueChooserPane.EVENT_CHANGE"; +BI.TreeValueChooserPane.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.tree_value_chooser_pane", BI.TreeValueChooserPane); \ No newline at end of file diff --git a/src/component/valuechooser/pane.valuechooser.js b/src/component/valuechooser/pane.valuechooser.js index fd6b5d699..eb53acca6 100644 --- a/src/component/valuechooser/pane.valuechooser.js +++ b/src/component/valuechooser/pane.valuechooser.js @@ -54,5 +54,5 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { this.list.populate.apply(this.list, arguments); } }); -BI.ValueChooserPane.EVENT_CHANGE = "ValueChooserPane.EVENT_CHANGE"; +BI.ValueChooserPane.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane); \ No newline at end of file diff --git a/src/core/listener/listener.show.js b/src/core/listener/listener.show.js index e571dac7e..c27eb4e13 100644 --- a/src/core/listener/listener.show.js +++ b/src/core/listener/listener.show.js @@ -46,4 +46,4 @@ BI.ShowListener = BI.inherit(BI.OB, { } } }); -BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE"; \ No newline at end of file +BI.ShowListener.EVENT_CHANGE = "EVENT_CHANGE"; \ No newline at end of file diff --git a/src/core/utils/aes.js b/src/core/utils/aes.js index 9971ebdd4..1d739a8fa 100644 --- a/src/core/utils/aes.js +++ b/src/core/utils/aes.js @@ -2317,7 +2317,7 @@ * * var ciphertext = BI.aesEncrypt(text, key); */ - aesEncrypt: function (text, key) { + encrypt: function (text, key) { key = CryptoJS.enc.Utf8.parse(key); var cipher = CryptoJS.AES.encrypt(text, key, { mode: CryptoJS.mode.ECB, diff --git a/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js b/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js index 752416570..74d8792fa 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js @@ -98,7 +98,7 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }); o.itemsCreator(op, function (ob) { hasNext = ob.hasNext; - self._populate(ob.items); + (op.times === 1 && !op.node) && self._populate(ob.items); callback(self._formatItems(BI.Tree.transformToTreeFormat(ob.items), op.node ? op.node.layer + 1 : 0, op.node)); self.setValue(self.storeValue); (op.times === 1 && !op.node) && BI.nextTick(function () { diff --git a/src/widget/multilayersingletree/multilayersingletree.leveltree.js b/src/widget/multilayersingletree/multilayersingletree.leveltree.js index 8b897354e..f067f2ef0 100644 --- a/src/widget/multilayersingletree/multilayersingletree.leveltree.js +++ b/src/widget/multilayersingletree/multilayersingletree.leveltree.js @@ -98,7 +98,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }); o.itemsCreator(op, function (ob) { hasNext = ob.hasNext; - self._populate(ob.items); + (op.times === 1 && !op.node) && self._populate(ob.items); callback(self._formatItems(BI.Tree.transformToTreeFormat(ob.items), op.node ? op.node.layer + 1 : 0, op.node)); self.setValue(self.storeValue); (op.times === 1 && !op.node) && BI.nextTick(function () { diff --git a/src/widget/multiselectlist/multiselectlist.insert.js b/src/widget/multiselectlist/multiselectlist.insert.js index 09c2f84bd..6cc5959d9 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.js +++ b/src/widget/multiselectlist/multiselectlist.insert.js @@ -332,5 +332,5 @@ BI.extend(BI.MultiSelectInsertList, { REQ_GET_ALL_DATA: -1 }); -BI.MultiSelectInsertList.EVENT_CHANGE = "BI.MultiSelectInsertList.EVENT_CHANGE"; +BI.MultiSelectInsertList.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.multi_select_insert_list", BI.MultiSelectInsertList); \ No newline at end of file diff --git a/src/widget/multiselectlist/multiselectlist.insert.nobar.js b/src/widget/multiselectlist/multiselectlist.insert.nobar.js index 17e641ecc..a273d942d 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.nobar.js +++ b/src/widget/multiselectlist/multiselectlist.insert.nobar.js @@ -342,5 +342,5 @@ BI.extend(BI.MultiSelectInsertNoBarList, { REQ_GET_ALL_DATA: -1 }); -BI.MultiSelectInsertNoBarList.EVENT_CHANGE = "BI.MultiSelectInsertNoBarList.EVENT_CHANGE"; +BI.MultiSelectInsertNoBarList.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.multi_select_insert_no_bar_list", BI.MultiSelectInsertNoBarList); \ No newline at end of file diff --git a/src/widget/multiselectlist/multiselectlist.js b/src/widget/multiselectlist/multiselectlist.js index d111db583..3b52b9e56 100644 --- a/src/widget/multiselectlist/multiselectlist.js +++ b/src/widget/multiselectlist/multiselectlist.js @@ -344,5 +344,5 @@ BI.extend(BI.MultiSelectList, { REQ_GET_ALL_DATA: -1 }); -BI.MultiSelectList.EVENT_CHANGE = "BI.MultiSelectList.EVENT_CHANGE"; +BI.MultiSelectList.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.multi_select_list", BI.MultiSelectList); \ No newline at end of file diff --git a/src/widget/multiselecttree/multiselecttree.js b/src/widget/multiselecttree/multiselecttree.js index 36bd7d5c8..f980b0456 100644 --- a/src/widget/multiselecttree/multiselecttree.js +++ b/src/widget/multiselecttree/multiselecttree.js @@ -163,5 +163,5 @@ BI.MultiSelectTree = BI.inherit(BI.Single, { this.adapter.populate.apply(this.adapter, arguments); } }); -BI.MultiSelectTree.EVENT_CHANGE = "BI.MultiSelectTree.EVENT_CHANGE"; +BI.MultiSelectTree.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.multi_select_tree", BI.MultiSelectTree); \ No newline at end of file diff --git a/src/widget/multiselecttree/multiselecttree.popup.js b/src/widget/multiselecttree/multiselecttree.popup.js index fe635f157..4c28651a8 100644 --- a/src/widget/multiselecttree/multiselecttree.popup.js +++ b/src/widget/multiselecttree/multiselecttree.popup.js @@ -52,6 +52,6 @@ BI.MultiSelectTreePopup = BI.inherit(BI.Widget, { } }); -BI.MultiSelectTreePopup.EVENT_AFTER_INIT = "BI.MultiSelectTreePopup.EVENT_AFTER_INIT"; -BI.MultiSelectTreePopup.EVENT_CHANGE = "BI.MultiSelectTreePopup.EVENT_CHANGE"; +BI.MultiSelectTreePopup.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; +BI.MultiSelectTreePopup.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.multi_select_tree_popup", BI.MultiSelectTreePopup); \ No newline at end of file diff --git a/src/widget/singleselect/singleselect.item.js b/src/widget/singleselect/singleselect.item.js index 2c90ba2d9..b3a053f01 100644 --- a/src/widget/singleselect/singleselect.item.js +++ b/src/widget/singleselect/singleselect.item.js @@ -55,6 +55,9 @@ BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, { doClick: function () { BI.SingleSelectComboItem.superclass.doClick.apply(this, arguments); this.radio.setSelected(this.isSelected()); + if (this.isValid()) { + this.fireEvent(BI.SingleSelectComboItem.EVENT_CHANGE, this.isSelected(), this); + } }, setSelected: function (v) { @@ -63,5 +66,5 @@ BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, { } }); - +BI.SingleSelectComboItem.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.single_select_combo_item", BI.SingleSelectComboItem); \ No newline at end of file diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index b1adc0b0d..fb687e7f0 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -233,5 +233,5 @@ BI.extend(BI.SingleSelectInsertList, { REQ_GET_ALL_DATA: -1 }); -BI.SingleSelectInsertList.EVENT_CHANGE = "BI.SingleSelectInsertList.EVENT_CHANGE"; +BI.SingleSelectInsertList.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.single_select_insert_list", BI.SingleSelectInsertList); diff --git a/src/widget/singletree/singletree.combo.js b/src/widget/singletree/singletree.combo.js index f7e9c9828..fae7f8ff5 100644 --- a/src/widget/singletree/singletree.combo.js +++ b/src/widget/singletree/singletree.combo.js @@ -76,6 +76,6 @@ BI.SingleTreeCombo = BI.inherit(BI.Widget, { } }); -BI.SingleTreeCombo.EVENT_CHANGE = "SingleTreeCombo.EVENT_CHANGE"; +BI.SingleTreeCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.SingleTreeCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.shortcut("bi.single_tree_combo", BI.SingleTreeCombo); \ No newline at end of file