Changeset 2789

Show
Ignore:
Timestamp:
11/16/07 05:41:42 (10 months ago)
Author:
cbalan
Message:

TeamRosterPlugin: - Fixed upload picture feature to work on IE also.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • teamrosterplugin/0.11/tracteamroster/htdocs/js/teamroster.js

    r2720 r2789  
    7979        $(".tr_editable.file") 
    8080                .click(function(){ 
    81                         if(this.innerHTML=='[blank]')this.innerHTML=''; 
    82                         var newTextareaElement=document.createElement('INPUT'); 
    83                         newTextareaElement.type="FILE"; 
    84                         newTextareaElement.name=this.getAttribute('name'); 
    85                         this.parentNode.appendChild(newTextareaElement); 
    86                         newTextareaElement.form.enctype="multipart/form-data"; 
     81                        var newFileElement=document.createElement('INPUT'); 
     82                        newFileElement.name=this.getAttribute('name'); 
     83                        newFileElement.type="FILE"; 
     84                        this.parentNode.appendChild(newFileElement); 
     85                        newFileElement.form.enctype="multipart/form-data"; 
    8786                        this.style.display='none'; 
    8887                        teamroster_notifyContainer($(this).parents('.tr_userProfile:first'), this); 
  • teamrosterplugin/0.11/tracteamroster/templates/admin_teamroster_team.html

    r2720 r2789  
    9393                                        <tr> 
    9494                                                <td colspan="5" > 
    95                                                         <form method="POST" action="#tr_userProfile_$userProfile.id"
     95                                                        <form method="POST" action="#tr_userProfile_$userProfile.id" enctype="multipart/form-data"
    9696                                                        <div class="tr_userProfile" id="tr_userProfile_$userProfile.id" style="display:${userProfile.id == teamRoster.lastUpdatedProfile.id and 'block' or 'none'}"> 
    9797                                                                <input type="hidden" name="tr_userProfile_id" value="$userProfile.id"/>