מדיה ויקי:Gadget-CustomSideBarLinks.js: הבדלים בין גרסאות בדף
כמקובל |
יותר מדויק |
||
| שורה 13: | שורה 13: | ||
}); | }); | ||
var h3CustomTitle = $('<h3> | var h3CustomTitle = $('<h3>').append(aLink1); | ||
var divCustomBody = $('<div>', { id: "p-customBody1"} ).toggle(!! window.customLinksOpen); | var divCustomBody = $('<div>', { id: "p-customBody1"} ).toggle(!! window.customLinksOpen); | ||
divCustomBody.html(linkstext); | divCustomBody.html(linkstext); | ||
| שורה 29: | שורה 29: | ||
$div = $('<nav>', { id: linksPortalName } ) | $div = $('<nav>', { id: linksPortalName } ) | ||
.addClass('mw-portlet vector-menu vector-menu-portal portal') | .addClass('mw-portlet vector-menu vector-menu-portal portal') | ||
.append($('<h3>').text('הקישורים שלי')) | .append($('<h3>').addClass('vector-menu-heading').text('הקישורים שלי')) | ||
.append($('<div>', {'class': 'vector-menu-content'}).html(linkstext)); | .append($('<div>', {'class': 'vector-menu-content'}).html(linkstext)); | ||
} else { | } else { | ||
$div = $('<nav>', { id: linksPortalName } ) | $div = $('<nav>', { id: linksPortalName } ) | ||
.addClass('portal') | .addClass('portal') | ||
.append($('<h3>').text('הקישורים שלי')) | .append($('<h3>').addClass('vector-menu-heading').text('הקישורים שלי')) | ||
.append($('<div>', {'class': 'body'}).html(linkstext)); | .append($('<div>', {'class': 'body'}).html(linkstext)); | ||
} | } | ||