Changeset 502 for trunk/services
- Timestamp:
- Dec 30, 2014 10:24:51 PM (9 years ago)
- Location:
- trunk/services
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/templates/versions_diff.ihtml
r497 r502 45 45 $action_links = array(); 46 46 if (!getFormData('current', false)) { 47 $action_links[] = array('href' => $app->oHREF( $_SERVER['PHP_SELF'] .'?op=restore', array('version_id', 'version_title')), 'value' => _("Restore this saved version"), 'class' => 'small button alert', 'accesskey' => 'r');47 $action_links[] = array('href' => $app->oHREF('?op=restore', array('version_id', 'version_title')), 'value' => _("Restore this saved version"), 'class' => 'small button alert', 'accesskey' => 'r'); 48 48 } 49 $action_links[] = array('href' => $app->ohref( oTxt($_SERVER['PHP_SELF'])), 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'b');49 $action_links[] = array('href' => $app->ohref('?op=cancel'), 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'c'); 50 50 HTML::printButtons($action_links); 51 51 ?> -
trunk/services/templates/versions_list.ihtml
r497 r502 50 50 <div class="sc-help"><?php printf(_("When there are more than %s versions, those over %s days old are deleted."), $version->getParam('min_qty'), $version->getParam('min_days')); ?></div> 51 51 <?php 52 HTML::printButtons(array( 53 array('name' => 'op', 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'c'), 54 )); 52 // Buttons. 53 $action_links = array(); 54 $action_links[] = array('href' => $app->ohref('?op=cancel'), 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'c'); 55 HTML::printButtons($action_links); 55 56 ?> 56 57 </div> -
trunk/services/templates/versions_view.ihtml
r497 r502 28 28 $action_links = array(); 29 29 if (!getFormData('current', false)) { 30 $action_links[] = array('href' => $app->oHREF( $_SERVER['PHP_SELF'] .'?op=restore', array('version_id', 'version_title')), 'value' => _("Restore this saved version"), 'class' => 'small button alert', 'accesskey' => 'r');30 $action_links[] = array('href' => $app->oHREF('?op=restore', array('version_id', 'version_title')), 'value' => _("Restore this saved version"), 'class' => 'small button alert', 'accesskey' => 'r'); 31 31 } 32 $action_links[] = array('href' => $app->ohref( oTxt($_SERVER['PHP_SELF'])), 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'b');32 $action_links[] = array('href' => $app->ohref('?op=cancel'), 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'c'); 33 33 HTML::printButtons($action_links); 34 34 ?> -
trunk/services/versions.php
r497 r502 78 78 switch (getFormData('op')) { 79 79 80 case _("Cancel") : 81 $app->dieBoomerangURL('versions', false); 80 case 'cancel' : 81 if ($app->validBoomerangURL('version')) { 82 // Display boomerang page. 83 $app->dieBoomerangURL('version'); 84 } 85 // Display default page. 86 $app->dieURL(false, false); 82 87 break; 83 88
Note: See TracChangeset
for help on using the changeset viewer.