Changeset 9980 for extensions/autoupdate


Ignore:
Timestamp:
Apr 2, 2011, 12:19:45 PM (14 years ago)
Author:
patdenice
Message:

Hide submit button on upgrade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/template/update_pwg.tpl

    r9735 r9980  
     1{footer_script}
     2jQuery(document).ready(function() {ldelim}
     3        jQuery('input[name="submit"]').click(function() {ldelim}
     4    if(!confirm('{'autoupdate_alert'|@translate}'))
     5      return false;
     6    jQuery(this).hide();
     7    jQuery('.autoupdate_bar').show();
     8        });
     9});
     10{/footer_script}
     11
    112{html_head}
    213{literal}
     
    4556</p>
    4657<form action="" method="post">
    47 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
     58<p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
     59<p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
    4860<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
    4961</form>
     
    6779<fieldset>
    6880  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
    69   <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
     81  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
     82  <p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
    7083</fieldset>
    7184
Note: See TracChangeset for help on using the changeset viewer.