|
|
@@ -25,10 +25,14 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
|
|
|
setDescriptionEvent: function(){
|
|
|
if (this.descriptionNode){
|
|
|
this.descriptionNode.addEvents({
|
|
|
- "mousedown": function(){
|
|
|
+ "mousedown": function( ev ){
|
|
|
this.descriptionNode.setStyle("display", "none");
|
|
|
this.clickSelect();
|
|
|
- }.bind(this)
|
|
|
+ ev.stopPropagation();
|
|
|
+ }.bind(this),
|
|
|
+ "click" : function (ev) {
|
|
|
+ ev.stopPropagation();
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
@@ -195,7 +199,11 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
|
|
|
this.iconNode = new Element("div", {
|
|
|
"styles": this.form.css[this.iconStyle],
|
|
|
"events": {
|
|
|
- "click": this.clickSelect.bind(this)
|
|
|
+ "click": function (ev) {
|
|
|
+ this.clickSelect();
|
|
|
+ ev.stopPropagation();
|
|
|
+ }.bind(this)
|
|
|
+ //this.clickSelect.bind(this)
|
|
|
}
|
|
|
}).inject(this.node, "before");
|
|
|
}else if( this.form.json.nodeStyleWithhideModuleIcon ){
|
|
|
@@ -236,7 +244,11 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
|
|
|
if( !this.readonly ) {
|
|
|
this.node.setStyle("cursor" , "pointer");
|
|
|
this.node.addEvents({
|
|
|
- "click": this.clickSelect.bind(this)
|
|
|
+ "click": function (ev) {
|
|
|
+ this.clickSelect();
|
|
|
+ ev.stopPropagation();
|
|
|
+ }.bind(this)
|
|
|
+ //this.clickSelect.bind(this)
|
|
|
});
|
|
|
if (this.json.showIcon!='no' && !this.form.json.hideModuleIcon) {
|
|
|
this.iconNode = new Element("div", { //this.form.css[this.iconStyle],
|
|
|
@@ -253,7 +265,11 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
|
|
|
if (this.iconNode){
|
|
|
this.iconNode.setStyle("cursor" , "pointer");
|
|
|
this.iconNode.addEvents({
|
|
|
- "click": this.clickSelect.bind(this)
|
|
|
+ "click": function (ev) {
|
|
|
+ this.clickSelect();
|
|
|
+ ev.stopPropagation();
|
|
|
+ }.bind(this)
|
|
|
+ //this.clickSelect.bind(this)
|
|
|
});
|
|
|
}
|
|
|
|