Menu

#1783 Edit JS Present even for non-edit user (plus other JS issues

v4.0.2
open
nobody
None
3
2008-11-17
2007-11-06
KosherJava
No

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;
}

Discussion

  • John Finlay

    John Finlay - 2007-11-06

    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

     
  • Greg Roach

    Greg Roach - 2008-11-17
    • milestone: --> v4.0.2
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.