_imh.js 2.5 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. var _imh=new _lcm("_imh");_imh._jgn=function(_rlm){this._vhm=_rlm;this._4le();};_imh._5z2=function(){var _sz1=this._vhm[0].selectSingleNode("containerDropShadow");this._kt4=_sz1?_erh._woh(_sz1):_erh._cnh("containerDropShadow");var _usg=this._vhm[0].selectSingleNode("containerDropShadow")!=null;this._2oh("chkDropShadow").checked=_usg;this._7t8();this._9xh(_usg);};_imh._7t8=function(){_4qn._2b5( this._2oh( "btnShadowColor" ), this._kt4.getAttribute( "shadowColor" ) );this._2oh( "txtOffsetX" ).value = this._kt4.getAttribute( "offsetX" );this._2oh( "txtOffsetY" ).value = this._kt4.getAttribute( "offsetY" );this._2oh( "txtTransparency" ).value = this._kt4.getAttribute( "transparency" );};_imh._9xh=function(_zwk){this._obb("fsContainer", _zwk);this._pj8("btnShadowColor", _zwk);this._cb5("txtOffsetX", _zwk);this._cb5("txtOffsetY", _zwk);this._obb("divTransparency", _zwk);this._cb5("txtTransparency", _zwk);};_imh._o46=function(){this._fdm();};_imh._fdm=function(){delete this._vhm;delete this._kt4;};_imh._fl7=function(){var _usg=this._2oh("chkDropShadow").checked;this._9xh(_usg);};_imh._986=function(btn){var _uxm=this._kt4.getAttribute("shadowColor");_8fm._jgn("cchl/dialogs/_1zm", btn, true, _uxm, null, this, false, false);};_imh._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":var _uxm=_e5m._6ik();if(_uxm){_8qn._qie(this._kt4, "shadowColor", _uxm);}else{this._kt4.removeAttribute("shadowColor");}this._7t8();break;}};_imh._y9b=function(_oz7){this._sg7( this._kt4, "txtOffsetX", "offsetX" );this._sg7( this._kt4, "txtOffsetY", "offsetY" );if(_oz7!==false){this._7t8();}};_imh._sg7=function(n,_nxm,_1wi){var _uxm=this._2oh(_nxm).value;var i=parseInt(_uxm, 10);if(isNaN(i)){n.removeAttribute(_1wi);}else{_8qn._qie(n, _1wi, i.toString(10));}};_imh._hf4=function(_oz7){_u0n._5rc( this._kt4, this._qf8( "txtTransparency" ), "transparency" );if(_oz7!==false){this._7t8();}};_imh._bgn=function(){this._6ll();this._3le();};_imh._6ll=function(){_erh._ybb();var _usg=this._2oh("chkDropShadow").checked;for(var i=0;i<this._vhm.length;i++){var n=this._vhm[i];_8qn._cqh(n, "containerDropShadow");if(_usg){n.appendChild(_erh._woh(this._kt4));}}_erh._iee(true);};_imh._wph=function(e){if(e.keyCode==_4qn._x8j){if ((e.target.nodeName=="INPUT" )&&( e.target.type=="text" ) ){this._y9b(false);this._hf4(false);}}this._lb6(e);};