Changeset 405 for branches/Modular/Common/ViewList.php
- Timestamp:
- Jun 12, 2012, 7:25:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Common/ViewList.php
r404 r405 55 55 foreach($this->Actions as $Action) 56 56 { 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']).'\');"'; 58 59 else $Confirm = ''; 59 60 if(strpos($Action['Name'], '<') !== false) $ActionName = $Action['Name']; … … 148 149 'Type' => ViewItemTypeOneToMany, 'SQL' => $Name, 'TargetTable' => $TargetTable); 149 150 } 151 152 function AddItemAction($Name, $Module, $Action, $Confirm) 153 { 154 $this->Actions[$Name] = array('Name' => $Name, 'Module' => $Module, 155 'Action' => $Action, 'Confirm' => $Confirm); 156 } 150 157 } 151 158
Note:
See TracChangeset
for help on using the changeset viewer.