Changeset 9981
- Timestamp:
- Apr 2, 2011, 12:26:04 PM (14 years ago)
- 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 8 8 </style> 9 9 {/literal} 10 11 <script type="text/javascript"> 12 jQuery(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> 10 21 {/html_head} 11 22 … … 45 56 </p> 46 57 <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;"> {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p> 48 60 <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> 49 61 </form> … … 75 87 <fieldset> 76 88 <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;"> {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p> 78 91 </fieldset> 79 92
Note: See TracChangeset
for help on using the changeset viewer.