Update common.js
This commit is contained in:
parent
b2aac7c4a8
commit
d54f9a2385
1 changed files with 10 additions and 0 deletions
|
@ -71,11 +71,21 @@ ForkBB.common = (function (doc, win) {
|
|||
}
|
||||
}
|
||||
|
||||
function initForm()
|
||||
{
|
||||
var inps = doc.querySelectorAll("input[type='hidden'][name='nekot']");
|
||||
|
||||
for (var i = 0; i < inps.length; i++) {
|
||||
inps[i].value += (inps[i].parentNode.querySelector("input[type='hidden'][name='token']").value.replace(/\D/g, '').replace(/(......).*/, '$1'));
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
init : function () {
|
||||
initGoBack();
|
||||
initAnchorHL();
|
||||
initShowPAss();
|
||||
initForm();
|
||||
},
|
||||
};
|
||||
}(document, window));
|
||||
|
|
Loading…
Add table
Reference in a new issue