Template menu bar does not work, does not appear.

GK User
Wed Aug 16, 2017 11:00 am
Template menu bar does not work, does not appear, you do not see it.
I wanted to make changes to the template but I did not see the template menu.
Can you tell me how to do it? Do you have any files to replace?
I can not update the template, or I am deleting too many changes I did on the site.
User avatar
Fresh Boarder

teitbite
Tue Aug 22, 2017 12:25 pm
Hi,

Try to change the following line from /admin/scripts/js file:

Code: Select all
var type = items[i].split('=')[0].test(/^\d+$/) ? 'ItemID' : 'Option';



into:

Code: Select all
var type = !isNaN(items[i].split('=')[0]) ? 'ItemID' : 'Option';


or update template to the latest version.
User avatar
Moderator

GK User
Wed Aug 30, 2017 11:08 am
Hi support.
I have exact the same issue. I'm using the latest version of Steak House for Joomla and already see your suggested code in script.js. Can you please help me out?
Thanks in advance.
Paul
User avatar
Fresh Boarder

teitbite
Wed Aug 30, 2017 3:22 pm
Hi

Try clearing browser/joomla/server cache. Also check if this mentioned line appears twice in admin/scripts.js
User avatar
Moderator

GK User
Wed Sep 06, 2017 1:15 pm
I am having the same issue. Has this been resolved?
Thanks
User avatar
Junior Boarder

GK User
Fri Sep 08, 2017 8:26 am
aerdfarb wrote:I am having the same issue. Has this been resolved?
Thanks


Is anyone monitoring this thread?
User avatar
Junior Boarder

teitbite
Sun Sep 10, 2017 9:17 am
Hi

Yes, I'm monitoring this and I've already replied with a fix to this issue couple posts above. Will copy it below as well:

Change the following line from /admin/scripts/js file:

Code: Select all
var type = items[i].split('=')[0].test(/^\d+$/) ? 'ItemID' : 'Option';



into:

Code: Select all
var type = !isNaN(items[i].split('=')[0]) ? 'ItemID' : 'Option';


Please remember to clear browser/joomla/server cache to be sure than the changed file is used.

Also all the templates has this fix added already, so an update of a template will have the same result.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.