Show
Ignore:
Timestamp:
04/29/05 14:21:46 (7 years ago)
Author:
fproulx
Message:

2005-04-29 Fran�ois Proulx <francois.proulx@…>

  • Removed all inline unuseful javascript code on submit buttons onclick='submit()'
  • This conflicted with the actual click on the submit button in Safari
  • Fixed check in Network for isOwner, only check superAdmin
  • Fixed bug so you can't add an existing content group to itself ( deadlock )
  • Started coding Pattern language narrative display
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Network.php

    r600 r601  
    207207                        $html .= "<div class='admin_section_tools'>\n"; 
    208208                        $name = "content_group_".$this->id."_element_".$content->GetId()."_erase"; 
    209                         $html .= "<input type='submit' name='$name' value='"._("Remove")."' onclick='submit();'>"; 
     209                        $html .= "<input type='submit' name='$name' value='"._("Remove")."'>"; 
    210210                        $html .= "</div>\n"; 
    211211                        $html .= "</li>\n"; 
     
    215215                $html .= Content :: getSelectContentUI($name, "AND content_id NOT IN (SELECT content_id FROM network_has_content WHERE network_id='$this->id')"); 
    216216                $name = "network_{$this->id}_new_content_submit"; 
    217                 $html .= "<input type='submit' name='$name' value='"._("Add")."' onclick='submit();'>"; 
     217                $html .= "<input type='submit' name='$name' value='"._("Add")."'>"; 
    218218                $html .= "</li>\n"; 
    219219                $html .= "</ul>\n"; 
     
    227227        { 
    228228        $user = User::getCurrentUser(); 
    229         if (!$this->isOwner($user) && !$user->isSuperAdmin()) 
     229        if (!$user->isSuperAdmin()) 
    230230        { 
    231231            throw new Exception(_('Access denied!'));