Cireson Partners, Customers and Community members share your customizations and examples here to help benefit the community as a whole to earn Kudos and badges.
DISCLAIMER
All files and projects located here are provided and come "as-is" and without any warranty or support. Use at your own risk. Your use of Community Uploads is subject to our Terms of Use.
Cireson does not and will not support or maintain these enhancements, extensions, and scripts.
For Team Cireson uploads click here.
Customizing the New Drawer Menu
As inspiration to others ☺️
We have made some customizations to the new drawer menu. We wanted it to be easier to create an Incident or Service Request from the new drawer menu. We only have one incident and one service request template that we use when an analyst creates a new one.
The default layout have 2 levels in the menu - we have eliminated level 2 so it takes a click less to create a new request.
We have further more made it possible to start a new request simply by pressing the keyboard "Alt+i" or "Alt+r"
//#########################################################// /* ------------------------------------------------------- */ /* ----------- Custom NEW Drawer Menu Items ------------ */ /* ------------------------------------------------------- */ // Tested with portal 9.x // Tested with New Microsoft Edge // Author: Mikkel Madsen // v0.1 Initial release $(document).ready(function () { //**** Incident Menu Item Styling ****// //Get Incident menu object from 1. level var irObj = $('li[data-desc="Create an incident"]'); //Sets new description on object irObj.attr('data-desc', 'Create a new incident'); //Sets event behavior on click to open new incident form irObj.attr('data-click-template', 'incidentCreate'); //Sets icon to show new incident icon irObj.children('i').attr('class', 'drawer-icon ci ci-new-incident'); //Sets text to New Incident irObj.children('span').text('New Incident'); //Removes 2. level menu irObj.children('div').detach(); //Sets accesskey so a new incident can be started by presseing "Alt+i" irObj.attr('accesskey', 'i'); //**** Service Request Menu Item Styling ****// //Get Service Request menu object from 1. level var srObj = $('li[data-desc="Create a service request"]'); //Sets new description on object srObj.attr('data-desc', 'Create a new service request'); //Sets event behavior on click to open new service request form srObj.attr('data-click-template', 'srCreate'); //Sets icon to show new incident icon srObj.children('i').attr('class', 'ci-new-service-request'); //Sets text to New Service Request srObj.children('span').text('New Service Request'); //Removes 2. level menu srObj.children('div').detach(); //Sets accesskey so a new Service Request can be started by presseing "Alt+r" srObj.attr('accesskey', 'r'); }); /* ------------------------------------------------------- */ /* --------- End Custom NEW Drawer Menu Items --------- */ /* ------------------------------------------------------- */