* moved duplicate utility/dom-functions from global.js to basic.js

- consequentially prepended $WH to those functions (since i do have issues with regEx, some errors may occur)
* simplified including required JS and CSS files per page
* replaced old Menu-class with (almost) current version. Since it relies heavily on jQuery it is also loaded.
This commit is contained in:
Sarjuuk
2013-08-02 15:57:27 +02:00
parent b47be3c14a
commit e834f1aee3
70 changed files with 6122 additions and 5917 deletions

View File

@@ -63,12 +63,12 @@ if (typeof $WowheadPower == "undefined") {
achievementcomplete: "Achievement earned by $1 on $2/$3/$4"
},
LOOKUPS = {
1 : [npcs, "npc", "NPC"],
2 : [objects, "object", "Object"],
3 : [items, "item", "Item"],
5 : [quests, "quest", "Quest"],
6 : [spells, "spell", "Spell"],
10 : [achievements, "achievement", "Achievement"],
1 : [npcs, "npc", "NPC"],
2 : [objects, "object", "Object"],
3 : [items, "item", "Item"],
5 : [quests, "quest", "Quest"],
6 : [spells, "spell", "Spell"],
10 : [achievements, "achievement", "Achievement"],
100 : [profiles, "profile", "Profile"]
},
LOCALES = {
@@ -76,8 +76,7 @@ if (typeof $WowheadPower == "undefined") {
2 : "frfr",
3 : "dede",
6 : "eses",
8 : "ruru",
25 : "ptr"
8 : "ruru"
},
REDIRECTS = {
wotlk: "www",
@@ -455,7 +454,7 @@ if (typeof $WowheadPower == "undefined") {
// custom start
if ($WH.gc('compare_level') && window.location.href.match(/\?compare/i)) {
html = $WH.g_setTooltipItemLevel(html, gc('compare_level'));
html = $WH.g_setTooltipItemLevel(html, $WH.gc('compare_level'));
}
// custom end