var countDown = null;
function startStopCounter () {
- if (countDown == null) {
+ if (countDown === null) {
// Start counter
document.getElementById('start').innerHTML = '{--MEMBER_SURFBAR_ACTION_PAUSE_SUBMIT--}';
countDown = window.setInterval('startCounter()', 1000);
}
function confirm () {
- if (parent.surfbar_url != null) {
+ if (parent.surfbar_url !== null) {
// Is in right frameset
parent.surfbar_url.location.href = '{%url=surfbar.php?id=$content[url_id]&check=$content[check]&salt=$content[salt]%}';
} else {
}
function reloadSurfbar () {
- if (parent.surfbar_stats != null) {
+ if (parent.surfbar_stats !== null) {
// Is in right frameset
parent.surfbar_stats.location.reload();
} else {
}
function initCounter () {
- if (parent.surfbar_url != null) {
+ if (parent.surfbar_url !== null) {
// Is in right frameset
parent.surfbar_url.location.href = '{%pipe,getSurfbarUrl=$content[url_id]%}';
} else {