Changeset 9981 for extensions/autoupdate


Ignore:
Timestamp:
Apr 2, 2011, 12:26:04 PM (13 years ago)
Author:
patdenice
Message:

Hide submit button on upgrade

Location:
extensions/autoupdate/branches/2.0/template
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/branches/2.0/template/autoupdate.tpl

    r6196 r9981  
    88</style>
    99{/literal}
     10
     11<script type="text/javascript">
     12jQuery(document).ready(function() {ldelim}
     13        jQuery('input[name="submit"]').click(function() {ldelim}
     14    if(!confirm('{'autoupdate_alert'|@translate}'))
     15      return false;
     16    jQuery(this).hide();
     17    jQuery('.autoupdate_bar').show();
     18        });
     19});
     20</script>
    1021{/html_head}
    1122
     
    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>
     
    7587<fieldset>
    7688  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
    77   <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
     89  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
     90  <p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
    7891</fieldset>
    7992
Note: See TracChangeset for help on using the changeset viewer.