Changeset 824


Ignore:
Timestamp:
Feb 24, 2011, 12:11:31 PM (13 years ago)
Author:
gav
Message:

Add jQuery AJAX util js and css.

Location:
trunk/web-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/css/main.css

    r801 r824  
    229229/* MESSAGES AND ERRORS */
    230230
     231.jQueryAjaxLoading {
     232    margin: 10px 0 5px 0;
     233    padding: 5px 5px 5px 0px
     234}
     235
    231236.message {
    232237    background: #f3f8fc url(../images/skin/information.png) 8px 50% no-repeat;
  • trunk/web-app/js/application.js

    r311 r824  
    1212    });
    1313}
     14
     15// jQuery AJAX utils.
     16
     17function getLoadingHtml() {
     18    var imgSrc = getContextPath()+"/images/loading.gif";
     19    return '<div class="jQueryAjaxLoading"><img src="'+imgSrc+'" />.</div>';
     20}
     21
     22function getErrorHtml() {
     23    var html =  '<div class="message_error">Could not perform operation.</div>';
     24    return html;
     25}
Note: See TracChangeset for help on using the changeset viewer.