Changeset 825 for trunk/web-app


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

Add jQuery AJAX util js and css, part 2.

Location:
trunk/web-app
Files:
2 edited

Legend:

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

    r824 r825  
    231231.jQueryAjaxLoading {
    232232    margin: 10px 0 5px 0;
    233     padding: 5px 5px 5px 0px
     233    padding: 5px 5px 5px 0px;
    234234}
    235235
  • 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.