Changeset 1233

Show
Ignore:
Timestamp:
10/17/07 17:47:29 (1 year ago)
Author:
misja
Message:

Show an alert before deleting a community.

Files:

Legend:

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

    r1161 r1233  
    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\">Delete community</a>"; 
     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>"; 
    2121            } 
    2222            $friends_icon = user_icon_html($info->ident,COMMUNITY_ICON_SIZE);