12345678910111213141516171819202122232425262728293031 |
- /*
- IBM Confidential
- OCO Source Materials
- IBM Cognos Products: uipe
- (C) Copyright IBM Corp. 2014
- The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office.
- */
-
- D_UIProfileSource.F_Dialog_OnBeforeVisible = function()
- {
- this.F_GetDlgItem( "btnOK" ).style.display = this.m_bCopyToClipboard ? "none" : "";
- U_Button.F_SetLabel( this.F_GetDlgItem( "btnCancel" ), G_ResManager.F_GetString( this.m_bCopyToClipboard ? "IDS_HAL_BTN_CLOSE" : "IDS_HAL_BTN_CANCEL" ) );
- var ta = this.F_GetDlgItem( "ta" );
- ta.value = this.m_sText;
- ta.readOnly = this.m_bCopyToClipboard;
- };
- D_UIProfileSource.F_Dialog_OnAfterVisible = function()
- {
- var ta = this.F_GetDlgItem( "ta" );
- ta.focus();
- ta.select();
- };
- D_UIProfileSource.F_OnOK = function()
- {
- var ta = this.F_GetDlgItem( "ta" );
- var v_nProfile = U_XML.F_LoadString( D_XmlError, ta.value );
- G_UIPE.F_SaveProfileToCM( v_nProfile, true );
- this.M_fnSuper_OnOK();
- };
|