MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Affection tables integrated with StatCalc)
No edit summary
Line 150: Line 150:
affectionChange($(this), affection_start);
affectionChange($(this), affection_start);
if (typeof affection !== 'undefined') {
if (typeof affection !== 'undefined') {
affectionGet($(this).siblings(".character-stattable"));
affectionGet($(".character-stattable"));
statTableRecalc($(this).siblings(".character-stattable"));
statTableRecalc($(".character-stattable"));
}
}
});
});
Line 184: Line 184:
//update StatCalc if present
//update StatCalc if present
if (typeof affection !== 'undefined') {
if (typeof affection !== 'undefined') {
affectionGet(affectionTable.siblings(".character-stattable"));
affectionGet($(".character-stattable"));
statTableRecalc(affectionTable.siblings(".character-stattable"));
statTableRecalc($(".character-stattable"));
}
}
}
}