MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 17: Line 17:
var $el = $(el);
var $el = $(el);
var id = $el.data('tt-id');
var id = $el.data('tt-id');
var level = 1;
var parent = $el.data('tt-parent');
var parent = $el.data('tt-parent');
if(parent === '') {
if(parent === '') {
parent = undefined;
parent = undefined;
level = 0;
}
}


var item = {
var item = {
id: id,
id: id,
level: level,
level: 0,
parent: parent,
parent: parent,
children: [],
children: [],
Confirmedusers, editor, Administrators
886

edits