toggleMark, togglePub: abort when there is no image to work on

This commit is contained in:
Andrew Dolgov 2009-01-26 06:20:56 +01:00
parent 81b9f69ffd
commit 56ff756447

View file

@ -535,6 +535,9 @@ function toggleMark(id, client_only, no_effects) {
} }
var mark_img = document.getElementById("FMPIC-" + id); var mark_img = document.getElementById("FMPIC-" + id);
if (!mark_img) return;
var vfeedu = document.getElementById("FEEDU--1"); var vfeedu = document.getElementById("FEEDU--1");
var crow = document.getElementById("RROW-" + id); var crow = document.getElementById("RROW-" + id);
@ -586,6 +589,9 @@ function togglePub(id, client_only, no_effects) {
} }
var mark_img = document.getElementById("FPPIC-" + id); var mark_img = document.getElementById("FPPIC-" + id);
if (!mark_img) return;
var vfeedu = document.getElementById("FEEDU--2"); var vfeedu = document.getElementById("FEEDU--2");
var crow = document.getElementById("RROW-" + id); var crow = document.getElementById("RROW-" + id);