Ignore:
Timestamp:
Feb 8, 2010, 2:51:23 AM (14 years ago)
Author:
gav
Message:

Move JavascriptService to JsUtilService.
Consolidate similar JsUtilService methods.
Create JsUtilTagLib?.
Disable pulsing of asset tree loading image.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/jsUtil.js

    r314 r322  
    22function toggleUtil(id) {
    33    $(id).toggle();
     4}
     5
     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    }
    416}
    517
Note: See TracChangeset for help on using the changeset viewer.