| @@ 47-53 (lines=7) @@ | ||
| 44 | * @param string $linkText |
|
| 45 | * @return string |
|
| 46 | */ |
|
| 47 | public static function popup_link($ClassName, $FieldName, $recordID, $linkText = 'click here to edit') |
|
| 48 | { |
|
| 49 | if ($link = self::popup_link_only($ClassName, $FieldName, $recordID)) { |
|
| 50 | return ' |
|
| 51 | <a href="'.$link.'" class="modalPopUp modal-popup" data-width="800" data-height="600" data-rel="window.open(\''.$link.'\', \'sortlistFor'.$ClassName.$FieldName.$recordID.'\',\'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 440,top = 200\'); return false;">'.$linkText.'</a>'; |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| 55 | public function init() |
|
| 56 | { |
|
| @@ 29-36 (lines=8) @@ | ||
| 26 | DataObjectSorterRequirements::popup_link_requirements(); |
|
| 27 | return Injector::inst()->get('DataObjectOneRecordUpdateController')->Link('show/'.$className."/".$recordID); |
|
| 28 | } |
|
| 29 | public static function popup_link($className, $recordID, $linkText = 'click here to edit') |
|
| 30 | { |
|
| 31 | $link = DataObjectOneRecordUpdateController::popup_link_only($className, $recordID); |
|
| 32 | if ($link) { |
|
| 33 | return ' |
|
| 34 | <a href="'.$link.'" class="modalPopUp modal-popup" data-width="800" data-height="600" data-rel="window.open(\''.$link.'\', \'sortlistFor'.$className.$recordID.'\',\'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 440,top = 200\'); return false;">'.$linkText.'</a>'; |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||
| 38 | public function init() |
|
| 39 | { |
|