Checkpoint commit

This commit is contained in:
Rick Falkvinge
2014-09-24 17:06:19 +02:00
parent f1a95a7fa4
commit 6a0eab0cf8
+3 -3
View File
@@ -90,9 +90,9 @@
$('#divModalBox').animate({ "height": ($('#DivModalFields').outerHeight() + $('#HeaderModal').outerHeight()) + 40 + "px" }, 50);
}, 50); // set timeout to after checkboxes initialized, if this is the first show of modal
if (!checkboxesInitialized) {
// This is a weird construct, but comes from the switchbuttons needing to be visible when initialized
// TODO: Only do this if we're in a P&L account
if (!checkboxesInitialized && (accountType == 'I' || accountType == 'C')) {
// This is a weird construct, but comes from the switchbuttons needing to be visible when initialized.
// Hence, it can't be done in document.Ready but need to be done on first show.
setTimeout(function() {
$('.EditCheck')
.switchbutton({