Edit JS Present even for non-edit user (plus other JS issues
Brought to you by:
canajun2eh,
yalnifj
If a GEDCOM is not set up to be editable via the web, or the user is not an edit user, the JS functions below should not be generated as part of the indi page
function delete_record
function deleteperson
function deleterepository
2) Also the following should not even render if the current theme is not cloudy.
// function is required by cloudy theme
function resize_content_div(i) {
3) does anyone know why the individial.php page has the following JS?
var catch_and_ignore;
function paste_id(value) {
catch_and_ignore = value;
}
Logged In: YES
user_id=300048
Originator: NO
1. Fixed
2. I think we should leave it in case we ever want to use it in other themes too. While on the indi page it is only used in cloudy, on other pages (predigree.php) we use a similar function in all themes.
3. JavaScript like that is used to coordinate the communication between the find id popups and the previous page. I don't know why it is on the INDI page though...
--John