Changeset 1234

Show
Ignore:
Timestamp:
10/18/07 07:02:53 (1 year ago)
Author:
misja
Message:

Silly mistake, alert message should have been a confirm

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib/communities_moderator_of.php

    r1233 r1234  
    1818            $friends_menu = run("community:infobox:menu",array($info)); 
    1919            if (run("permissions:check",array("userdetails:change", $info->ident))) { 
    20                 $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php?community_id=".$info->ident."&amp;action=community:delete\" onClick=\"alert('".__gettext('Are you sure you want to delete this community?')."');\">Delete community</a>"; 
     20                $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php?community_id=".$info->ident."&amp;action=community:delete\" onClick=\"confirm('".__gettext('Are you sure you want to delete this community?')."');\">Delete community</a>"; 
    2121            } 
    2222            $friends_icon = user_icon_html($info->ident,COMMUNITY_ICON_SIZE);