How to shorten display time for the inline message in Windchill 10.0

标题 说明 适用于 原因 解决方案
How to shorten display time for the inline message in Windchill 10.0
  • The inline message will display 4 seconds, then fade out gradually.
  • How to shorten the display time?
  • Inline message example after creating a new object successfully:

CONFIRMATION: Create successful
The object was created successfully.

Windchill PDMLink 10.0 M020
 
1. Open file  <WT_HOME>\codebase\netmarkets\javascript\util\jsfrags\messaging.jsfrag in a text editor
2. Locate following content:
 

/** after user has not touched the message window for 4 seconds, begin to fade it out */
PTC.messaging.deferTimeoutMill = 4000;


3. Change the value of PTC.messaging.deferTimeoutMill from 4000 (4 seconds) to 1000 (1 second), this will shorten the display time for inline message.

4. Locate following content:

PTC.messaging.messageFadeout = function(){
    PTC.messaging.msgWindow.getEl().fadeOut({
        endOpacity: 0.01,
        duration: 6,
                  callback: PTC.messaging.closeInlineMessageFadeout
    });
};

5. Change the duration value from 6 to 1, this will shorten the fade out time for  inline message.
6. Save the file
7. Execute following command in  Windchill shell:
 

ant -f bin\jsfrag_combine.xml

8. Restart Windchill
9. Open a new browser session to observe the change

猜你喜欢

转载自felixli.iteye.com/blog/1669871
今日推荐