Skip to content

Commit

Permalink
changed event to OnManagerWelcomePrerender
Browse files Browse the repository at this point in the history
changed from OnManagerMainFrameHeaderHTMLBlock to OnManagerWelcomePrerender - to
avoid load styles and js on all manager pages (and errors)
  • Loading branch information
Nicola1971 committed Dec 14, 2017
1 parent c2e6f1c commit 391aa2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/assets/plugins/DashboardDocList.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @version 2.0.1
* @author Nicola Lambathakis http://www.tattoocms.it/ https://github.com/Nicola1971/
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @internal @events OnManagerWelcomeHome,OnManagerMainFrameHeaderHTMLBlock
* @internal @events OnManagerWelcomeHome,OnManagerWelcomePrerender
* @internal @properties &wdgVisibility=Show widget for:;menu;All,AdminOnly,AdminExcluded,ThisRoleOnly,ThisUserOnly;All &ThisRole=Show only to this role id:;string;;;enter the role id &ThisUser=Show only to this username:;string;;;enter the username &wdgTitle= Widget Title:;string;Documents List &wdgicon=widget icon:;string;fa-pencil &wdgposition=widget position:;list;1,2,3,4,5,6,7,8,9,10;1 &wdgsizex=widget width:;list;12,6,4,3;12 &ParentFolder=Parent folder for List documents:;string;0 &ListItems=Max items in List:;string;50 &dittolevel=Depht:;string;3 &hideFolders=Hide Folders:;list;yes,no;no &showUnpublished=Show Deleted and Unpublished:;list;yes,no;yes;;Show Deleted and Unpublished resources &showAddButtons=Show Create Resource Buttons:;list;yes,no;no;;show header add buttons &showStatusFilter=Show Status Filter:;list;yes,no;yes;;require Show Deleted and Unpublished - YES &DisplayTitle=Display Title in title column:;list;pagetitle,longtitle,menutitle;pagetitle;;choose which title display in title column &showParent=Show Parent Column:;list;yes,no;yes &showUser=Show User Column:;list;createdby,publishedby,editedby,no;createdby &showDate=Show Date Column:;list;createdon,publishedon,editedon,no;editedon &dateFormat=Date Column Format:;list;DD MM YYYY,MM DD YYYY,YYYY MM DD;DD MM YYYY &TvColumn=Tv Columns:;string;[+longtitle+],[+menuindex+] &TvSortType=Tv Column Sort type:;string;text,number &ImageTv=Show Image TV:;string;image;;enter tv name &ShowImageIn=Show image Tv in:;list;overview,column;overview &tablefields=Overview Tv Fields:;string;[+longtitle+],[+description+],[+introtext+],[+documentTags+] &tableheading=Overview TV headings:;string;Long Title,Description,Introtext,Tags &editInModal=Edit docs in modal:;list;yes,no;no;;edit and create resources in evo modal window &showMoveButton=Show Move Button:;list;yes,no;yes;;hides the button to everyone, even if the user has permissions &showAddHere=Show Create Resource here Button:;list;yes,no;yes;;hides the button to everyone, even if the user has permissions &showPublishButton=Show Publish Button:;list;yes,no;yes;;hides the button to everyone, even if the user has permissions &showDeleteButton=Show Delete Button:;list;yes,no;yes;;hides the button to everyone, even if the user has permissions &HeadBG=Widget Title Background color:;string; &HeadColor=Widget title color:;string
* @internal @installset base, sample
* @internal @modx_category Dashboard
Expand Down Expand Up @@ -52,8 +52,8 @@ $button_pl_config = '<a data-toggle="tooltip" href="javascript:;" title="' . $_l
$modx->setPlaceholder('button_pl_config', $button_pl_config);
$e = &$modx->Event;
switch($e->name){
/*load js and styles on OnManagerMainFrameHeaderHTMLBlock*/
case 'OnManagerMainFrameHeaderHTMLBlock':
/*load js and styles on OnManagerWelcomePrerender*/
case 'OnManagerWelcomePrerender':
$manager_theme = $modx->config['manager_theme'];
$jsOutput = '
<script>
Expand Down

0 comments on commit 391aa2c

Please sign in to comment.