~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmupload.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        return true ;
48
48
}
49
49
 
50
 
function OnUploadCompleted( errorNumber, fileName )
 
50
function OnUploadCompleted( errorNumber, data )
51
51
{
52
52
        // Reset the Upload Worker Frame.
53
 
        window.parent.frames['frmUploadWorker'].location = 'about:blank' ;
 
53
        window.parent.frames['frmUploadWorker'].location = '../../../fckblank.html' ;
54
54
        
55
55
        // Reset the upload form (On IE we must do a little trick to avout problems).
56
56
        if ( document.all )
67
67
                case 0 :
68
68
                        window.parent.frames['frmResourcesList'].Refresh() ;
69
69
                        break ;
 
70
                case 1 :        // Custom error.
 
71
                        alert( data ) ;
 
72
                        break ;
70
73
                case 201 :
71
74
                        window.parent.frames['frmResourcesList'].Refresh() ;
72
 
                        alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
 
75
                        alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + data + '"' ) ;
73
76
                        break ;
74
77
                case 202 :
75
78
                        alert( 'Invalid file' ) ;