Changeset 502 for trunk/services


Ignore:
Timestamp:
Dec 30, 2014 10:24:51 PM (9 years ago)
Author:
anonymous
Message:

Many minor fixes during pulso development

Location:
trunk/services
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/templates/versions_diff.ihtml

    r497 r502  
    4545            $action_links = array();
    4646            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');
    4848            }
    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');
    5050            HTML::printButtons($action_links);
    5151            ?>
  • trunk/services/templates/versions_list.ihtml

    r497 r502  
    5050                <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>
    5151                <?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);
    5556                ?>
    5657            </div>
  • trunk/services/templates/versions_view.ihtml

    r497 r502  
    2828            $action_links = array();
    2929            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');
    3131            }
    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');
    3333            HTML::printButtons($action_links);
    3434            ?>
  • trunk/services/versions.php

    r497 r502  
    7878switch (getFormData('op')) {
    7979
    80 case _("Cancel") :
    81     $app->dieBoomerangURL('versions', false);
     80case 'cancel' :
     81    if ($app->validBoomerangURL('version')) {
     82        // Display boomerang page.
     83        $app->dieBoomerangURL('version');
     84    }
     85    // Display default page.
     86    $app->dieURL(false, false);
    8287    break;
    8388
Note: See TracChangeset for help on using the changeset viewer.