MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(StatCalc update)
(Character affection table, expose current bonus)
Line 473: Line 473:
var affectionTableCounter = 0;
var affectionTableCounter = 0;


$( document ).ready(function() {
$( document ).ready(function() {
initAffectionTable();
initAffectionTable();
Line 520: Line 521:
html_out += '<b>' + stat_name + '</b>' + ' +' + stat_value + ', ';
html_out += '<b>' + stat_name + '</b>' + ' +' + stat_value + ', ';
});
});

affection_data[affectionTable.attr('id')].current = effective_bonus;


if (affectionTable.find(".affection-level input").val() !== level) affectionTable.find(".affection-level input").val(level);
if (affectionTable.find(".affection-level input").val() !== level) affectionTable.find(".affection-level input").val(level);