File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
library/Vspheredb/Web/Table Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 44
55use gipfl \IcingaWeb2 \Link ;
66use gipfl \IcingaWeb2 \Table \Extension \ZfSortablePriority ;
7+ use ipl \Html \BaseHtmlElement ;
8+ use ipl \Html \Html ;
79
810class MonitoredObjectMappingTable extends BaseTable
911{
@@ -68,9 +70,23 @@ protected function initialize()
6870 ]);
6971 }
7072
73+ // cloned from ZfSortablePriority, added data-base-target
74+ protected function xaddSortPriorityButtons (BaseHtmlElement $ tr , $ row )
75+ {
76+ $ tr ->add (
77+ Html::tag (
78+ 'td ' ,
79+ ['data-base-target ' => '_self ' ],
80+ $ this ->createUpDownButtons ($ row ->{$ this ->getKeyColumn ()})
81+ )
82+ );
83+
84+ return $ tr ;
85+ }
86+
7187 public function renderRow ($ row )
7288 {
73- return $ this ->addSortPriorityButtons (
89+ return $ this ->xaddSortPriorityButtons (
7490 parent ::renderRow ($ row ),
7591 $ row
7692 );
You can’t perform that action at this time.
0 commit comments