Ignore:
Timestamp:
Jun 12, 2012, 7:25:25 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Podpora překládání.
  • Přidáno: Do seznamu modulů přidány akce Instalovat a Odinstalovat.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Common/ViewList.php

    r404 r405  
    5555        foreach($this->Actions as $Action)
    5656        {
    57           if(array_key_exists('Confirm', $Action)) $Confirm = ' onclick="return confirmAction(\''.$this->System->Localization->Translate($Action['Confirm']).'\');"';
     57          if(array_key_exists('Confirm', $Action) and ($Action['Confirm'] != ''))
     58            $Confirm = ' onclick="return confirmAction(\''.$this->System->Localization->Translate($Action['Confirm']).'\');"';
    5859            else $Confirm = '';
    5960          if(strpos($Action['Name'], '<') !== false) $ActionName = $Action['Name'];
     
    148149      'Type' => ViewItemTypeOneToMany, 'SQL' => $Name, 'TargetTable' => $TargetTable);
    149150  }   
     151 
     152  function AddItemAction($Name, $Module, $Action, $Confirm)
     153  {
     154    $this->Actions[$Name] = array('Name' => $Name, 'Module' => $Module,
     155      'Action' => $Action, 'Confirm' => $Confirm);
     156  }
    150157}
    151158
Note: See TracChangeset for help on using the changeset viewer.