File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed
administrator/components/com_guidedtours/src/View Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -136,21 +136,21 @@ protected function addToolbar()
136136 $ toolbarButtons ,
137137 'btn-success '
138138 );
139- }
140139
141- ToolbarHelper::cancel (
142- 'step.cancel ' ,
143- 'JTOOLBAR_CLOSE '
144- );
140+ ToolbarHelper::cancel (
141+ 'step.cancel ' ,
142+ 'JTOOLBAR_CLOSE '
143+ );
144+ }
145+ }
145146
146- ToolbarHelper::divider ();
147- $ inlinehelp = (string ) $ this ->form ->getXml ()->config ->inlinehelp ['button ' ] == 'show ' ?: false ;
148- $ targetClass = (string ) $ this ->form ->getXml ()->config ->inlinehelp ['targetclass ' ] ?: 'hide-aware-inline-help ' ;
147+ ToolbarHelper::divider ();
148+ $ inlinehelp = (string ) $ this ->form ->getXml ()->config ->inlinehelp ['button ' ] == 'show ' ?: false ;
149+ $ targetClass = (string ) $ this ->form ->getXml ()->config ->inlinehelp ['targetclass ' ] ?: 'hide-aware-inline-help ' ;
149150
150- if ($ inlinehelp ) {
151- ToolbarHelper::inlinehelp ($ targetClass );
152- }
153- ToolbarHelper::help ('Guided_Tours:_New_or_Edit_Step ' );
151+ if ($ inlinehelp ) {
152+ ToolbarHelper::inlinehelp ($ targetClass );
154153 }
154+ ToolbarHelper::help ('Guided_Tours:_New_or_Edit_Step ' );
155155 }
156156}
Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ protected function addToolbar()
115115 $ toolbarButtons ,
116116 'btn-success '
117117 );
118+
119+ ToolbarHelper::cancel (
120+ 'tour.cancel '
121+ );
118122 } else {
119123 // Since it's an existing record, check the edit permission, or fall back to edit own if the owner.
120124 $ itemEditable = $ canDo ->get ('core.edit ' ) || ($ canDo ->get ('core.edit.own ' ) && $ this ->item ->created_by == $ userId );
@@ -133,14 +137,14 @@ protected function addToolbar()
133137 $ toolbarButtons ,
134138 'btn-success '
135139 );
140+
141+ ToolbarHelper::cancel (
142+ 'tour.cancel ' ,
143+ 'JTOOLBAR_CLOSE '
144+ );
136145 }
137146 }
138147
139- ToolbarHelper::cancel (
140- 'tour.cancel ' ,
141- 'JTOOLBAR_CLOSE '
142- );
143-
144148 ToolbarHelper::divider ();
145149
146150 $ inlinehelp = (string ) $ this ->form ->getXml ()->config ->inlinehelp ['button ' ] == 'show ' ?: false ;
You can’t perform that action at this time.
0 commit comments