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/ContentGroupElement.php

    r593 r601  
    142142                                $html .= "<div class='admin_section_tools'>\n"; 
    143143                                $name = "content_group_element_".$this->id."_allowed_node_".$node->GetId()."_remove"; 
    144                                 $html .= "<input type='submit' name='$name' value='"._("Remove")."' onclick='submit();'>"; 
     144                                $html .= "<input type='submit' name='$name' value='"._("Remove")."'>"; 
    145145                                $html .= "</div>\n"; 
    146146                                $html .= "</li>\n"; 
     
    155155                $html .= Node :: getSelectNodeUI($name, $sql_additional_where); 
    156156                $name = "content_group_element_{$this->id}_new_allowed_node_submit"; 
    157                 $html .= "<input type='submit' name='$name' value='"._("Add new allowed node")."' onclick='submit();'>"; 
     157                $html .= "<input type='submit' name='$name' value='"._("Add new allowed node")."'>"; 
    158158                $html .= "</li'>\n"; 
    159159 
     
    168168            $html .= "<b>"._("Add a new displayed content OR select an existing one")."</b><br>"; 
    169169                        $html .= self :: getNewContentUI("content_group_element_{$this->id}_new_displayed_content")."<br>"; 
    170             $html .= self :: getSelectContentUI("content_group_element_{$this->id}_new_displayed_existing_element"); 
     170            $html .= self :: getSelectContentUI("content_group_element_{$this->id}_new_displayed_existing_element", "AND content_id != '$this->id'"); 
    171171            $html .= "<input type='submit' name='content_group_element_{$this->id}_new_displayed_existing_element_add' value='"._("Add")."'>"; 
    172172                } 
     
    177177                        $html .= "<div class='admin_section_tools'>\n"; 
    178178                        $name = "content_group_element_{$this->id}_erase_displayed_content"; 
    179                         $html .= "<input type='submit' name='$name' value='"._("Delete")."' onclick='submit();'>"; 
     179                        $html .= "<input type='submit' name='$name' value='"._("Delete")."'>"; 
    180180                        $html .= "</div>\n"; 
    181181                }