מדיה ויקי:Gadget-CustomSideBarLinks.js: הבדלים בין גרסאות בדף

מ תקלדה
מ תקלדה
שורה 21: שורה 21:
                 return false;
                 return false;
         });
         });
         var h3customTitle = $('<h3>').append(aLink1);
         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);
         var navCustomMain = $('<div>').append(h3customTitle).append(divCustomBody);
         var navCustomMain = $('<div>').append(h3CustomTitle).append(divCustomBody);
         var pCom = $('#p-community');
         var pCom = $('#p-community');
         navcustomMain.addClass(pCom.attr('class'));
         navCustomMain.addClass(pCom.attr('class'));
         divcustomBody.addClass(pCom.find('div').attr('class'));
         divCustomBody.addClass(pCom.find('div').attr('class'));
         navcustomMain.insertBefore(pCom);
         navCustomMain.insertBefore(pCom);
}
}