Changeset 825 for trunk/web-app/js


Ignore:
Timestamp:
Feb 24, 2011, 5:09:48 PM (14 years ago)
Author:
gav
Message:

Add jQuery AJAX util js and css, part 2.

File:
1 edited

Legend:

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

    r824 r825  
    1515// jQuery AJAX utils.
    1616
    17 function getLoadingHtml() {
    18     var imgSrc = getContextPath()+"/images/loading.gif";
    19     return '<div class="jQueryAjaxLoading"><img src="'+imgSrc+'" />.</div>';
     17function loadingIndication() {
     18    return jQuery('#jQueryAjaxLoading').clone();
    2019}
    2120
    22 function getErrorHtml() {
    23     var html =  '<div class="message_error">Could not perform operation.</div>';
    24     return html;
     21function errorIndication() {
     22    return jQuery('#jQueryAjaxDefaultError').clone();
    2523}
Note: See TracChangeset for help on using the changeset viewer.