_jm9.js 4.4 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 _jm9=new _lcm("_jm9");_jm9._jgn=function(_u4c,_6wa,_rlm,_4ch){this._vhm=_rlm;this._0mg=_4ch;this._4le(_u4c, _6wa);};_jm9._ttc=function(){return this._0mg;};_jm9._bgn=function(){this._h11();if(this._2oh("radBackgroundImageDefault").checked){this._0mg["background-image"] = "";this._0mg["background-repeat"] = "";this._0mg["background-position"] = "";this._0mg["background-attachment"] = "";}else if(this._2oh("radBackgroundImageNone").checked){this._0mg["background-image"] = "none";this._0mg["background-repeat"] = "";this._0mg["background-position"] = "";this._0mg["background-attachment"] = "";}else{var _apn=this._2oh("txtURL").value;if(_u0n._6s9(_apn)){_m9b("IDS_INVALID_URL");return;}if(!_4ke._vi2( this._vhm, "background-image", "background-position" ) ){this._0mg["background-position"] = "";}if(!_4ke._vi2( this._vhm, "background-image", "background-repeat" ) ){this._0mg["background-repeat"] = "";}if(!_4ke._vi2( this._vhm, "background-image", "background-attachment" ) ){this._0mg["background-attachment"] = "";}}this._3le();};_jm9._76g=function(){this._2oh("txtURL").value=_3zm._zdm();this._vje(true);};_jm9._5nk=function(){_8fm._vqh( "_3zm", "_7y", this._2oh( "txtURL" ).value, this._76g.bind( this ) );};_jm9._5z2=function(){if(!this._0mg){this._0mg={};}this._6ea=new _pgk( this._2oh( "divRepeat" ), this._53g( "repeat" ), this );this._ou7=new _pgk( this._2oh( "divPosition" ), this._53g( "backgroundPosition" ), this );this._agj=this._2oh("divSample");this._gpe();this._vje();var b=_4ke._vi2( this._vhm, "background-image", "background-position" );this._2oh("fsPosition").style.display=b?'inline':'none';var b=_4ke._vi2( this._vhm, "background-image", "background-repeat" );this._2oh("fsRepeat").style.display=b?'inline':'none';var b=_4ke._vi2( this._vhm, "background-image", "background-attachment" );this._2oh( "divAttachment" ).style.display = b?"block":"none";};_jm9._o46=function(){this._6ea._fdm();this._6ea=null;this._ou7._fdm();this._ou7=null;this._0mg=null;};_jm9._gpe=function(){var _apn=this._0mg["background-image"];if(!_apn){this._2oh("radBackgroundImageDefault").checked=true;}else if(_apn=="none"){this._2oh("radBackgroundImageNone").checked=true;}else{this._2oh("radBackgroundImageSpecified").checked=true; }var re=/url\((.*)\)/;if(re.test(_apn)){_apn=RegExp.$1;}this._2oh( "txtURL" ).value = (_apn=="none")?"":_apn;var _mzj=_pgk._lee( this._6ea._eq9(), "value", this._0mg["background-repeat"], true );if(!_mzj){_mzj=this._6ea._5g8().selectSingleNode("listItem");}this._6ea._uab(_mzj);this._2oh( "chkAttachment" ).checked = ( this._0mg["background-attachment"].toLowerCase()=="fixed" );var _mzj=_pgk._lee( this._ou7._eq9(), "value", this._0mg["background-position"], true );if(!_mzj){_mzj=this._ou7._5g8().selectSingleNode("listItem");}this._ou7._uab(_mzj);this._uq2();};_jm9._vje=function(_k79){if(!_k79&&!this._09b()){return;}this._h11();this._7n7( "backgroundImage", "background-image" );this._7n7( "backgroundRepeat", "background-repeat" );this._7n7( "backgroundPosition", "background-position" );this._7n7( "backgroundAttachment", "background-attachment" );this._jmb();};_jm9._7n7=function(_lnc,_trf){try{this._agj.style[_lnc]=this._0mg[_trf];}catch(e){_vzm._ozm( "Exception: " + _lnc + "," + _trf );}};_jm9._h11=function(){var _apn=this._2oh("txtURL").value;_apn=_apn.replace(/\\/g, '/');this._0mg["background-image"] = ( _apn&&!_u0n._6s9( _apn ) )?( "url(" + _apn + ")" ):"";this._0mg["background-repeat"] = this._6ea._885().getAttribute( "value" );this._0mg["background-position"] = this._ou7._885().getAttribute( "value" );this._0mg["background-attachment"] = this._2oh( "chkAttachment" ).checked?"fixed":"";};_jm9._pe4=function(_a6k,_mzj,_zdf){setTimeout(this._vje.bind(this), 0);};_jm9._uq2=function(){var _zwk=this._2oh("radBackgroundImageSpecified").checked;this._pj8("btnBrowse", _zwk);this._obb("txtURL", _zwk);this._6ea._mqh(_zwk);this._ou7._mqh(_zwk);this._obb("fsPosition", _zwk);this._obb("fsRepeat", _zwk);this._obb("divLblURL", _zwk);this._obb("divLblPreview", _zwk);_4qn._qqh(this._agj, _zwk?100:50);this._jmb();};_jm9._61a=function(){this._2oh("radBackgroundImageSpecified").checked=true;this._uq2();};_jm9._jmb=function(){var _zwk=this._2oh("radBackgroundImageSpecified").checked;var _apn=this._2oh("txtURL").value;this._pj8("btnOK", _zwk?_apn:true);};