source: trunk/web-app/js/jsUtil.js @ 417

Last change on this file since 417 was 358, checked in by gav, 15 years ago

Added an application log view.
Reduced log file size and added CSS and JavaScript? to suite.

File size: 858 bytes
RevLine 
[312]1
2function toggleUtil(id) {
3    $(id).toggle();
4}
5
[322]6function toggleWithImgUtil(id, imageId, openImgUrl, closedImgUrl) {
7
8    $(id).toggle();
9
10    if( $(id).visible() ) {
11        $(imageId).src= openImgUrl;
12    }
13    else {
14        $(imageId).src= closedImgUrl;
15    }
16}
17
[312]18function showUtil(id) {
19    Effect.Appear(id,{duration:0.4,queue:'end'});
20}
21
22function hideUtil(id) {
23    Effect.Fade(id,{duration:0.4,queue:'end'});
[323]24}
25
26function toggleWithImgAndEffectUtil(id, imageId, openImgUrl, closedImgUrl) {
27
28    if( $(id).visible() ) {
29        Effect.Fade(id,{duration:0.4,queue:'end'});
30        $(imageId).src= closedImgUrl;
31    }
32    else {
33        Effect.Appear(id,{duration:0.4,queue:'end'});
34        $(imageId).src= openImgUrl;
35    }
[358]36}
37
38function textAreaScrollBottom(id) {
39    $(id).scrollTop = $(id).scrollHeight;
40}
41
42function focusUtil(id) {
43    $(id).focus();
[312]44}
Note: See TracBrowser for help on using the repository browser.