Increment the menu ID so the first menu works. props junsuijin. fixes #12339
git-svn-id: https://develop.svn.wordpress.org/trunk@13365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a9b221bb6e
commit
537dc90ea6
@ -180,7 +180,7 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
|
||||
inputdescription = '';
|
||||
}
|
||||
|
||||
var count=document.getElementById('custom-nav').getElementsByTagName('li').length;
|
||||
var count=document.getElementById('custom-nav').getElementsByTagName('li').length + 1;
|
||||
|
||||
var randomnumber = count;
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user