MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
(StatCalc update)
No edit summary
Line 297:
function equipmentChange (statTable, toggleSlot){
toggleSlot = (typeof toggleSlot !== 'undefined') ? toggleSlot : false //default false, ES5 does not support function defaults
//console.log('changing equipment in table '+statTable.attr('id'));
 
//console.log(toggleSlot);
if (toggleSlot) {
var item_slot = statTable.find(".equipment-"+toggleSlot);
Line 314:
weapon[statTable.attr('id')].rarity = (rarity > 5) ? rarity-5 : 0;
statTable.find(".stattable-rarity-selector").children().each(function(index){
($(this).attr('data-rarity') <= rarity) ? $(this).addClass('active').removeClass('inactive') : $(this).addClass('inactive').removeClass('active');
});
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu