I updated joomla to the latest version and the layout menu was gone.
Solutions?
var type = items[i].split('=')[0].test(/^\d+$/) ? 'ItemID' : 'Option';
var type = !isNaN(items[i].split('=')[0]) ? 'ItemID' : 'Option';