applicious_utils 0.1.70 → 0.1.71
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/applicious_utils/Plupload/changelog.txt +32 -0
- data/app/assets/javascripts/applicious_utils/Plupload/examples/custom.html +10 -16
- data/app/assets/javascripts/applicious_utils/Plupload/examples/jquery/jquery_ui_widget.html +16 -17
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/cs.js +14 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/da.js +12 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/de.js +25 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/es.js +25 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/fi.js +33 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/fr.js +25 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/it.js +21 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/ja.js +37 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/lv.js +33 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/nl.js +21 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/pt-br.js +35 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/ru.js +21 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/i18n/sv.js +12 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/jquery.plupload.queue/jquery.plupload.queue.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/jquery.ui.plupload/css/jquery.ui.plupload.css +8 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/jquery.ui.plupload/jquery.ui.plupload.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.browserplus.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.flash.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.flash.swf +0 -0
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.full.js +2 -2
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.gears.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.html4.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.html5.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.js +2 -2
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.silverlight.js +1 -1
- data/app/assets/javascripts/applicious_utils/Plupload/js/plupload.silverlight.xap +0 -0
- data/applicious_utils-0.1.70.gem +0 -0
- data/lib/applicious_utils/version.rb +1 -1
- metadata +17 -3
@@ -1,3 +1,35 @@
|
|
1
|
+
Version 1.5.1.1 (2011-09-27)
|
2
|
+
HTML5: Fix mechanical typo, that successfully broke drag and drop, wherever could.
|
3
|
+
Version 1.5.1 (2011-09-26)
|
4
|
+
HTML4: Add support for server responses in HTML format.
|
5
|
+
HTML5: Disable multiple file selection in Safari 5.x for Windows (see #363).
|
6
|
+
HTML5: Gecko 2/5/6 should upload chunks as binary strings when in chunking mode and client side resize is requested.
|
7
|
+
Flash: Enforce URLStream mode when custom headers are passed.
|
8
|
+
Flash: Fix embedding problems in IE9 (and all other IEs).
|
9
|
+
Flash/Gears/BrowserPlus/SilverLight: Expose multi_selection feature, to be used in required_features (mainly to overcome Safari for Windows problem).
|
10
|
+
SilverLight: Properly handle custom and null headers.
|
11
|
+
UploadComplete moved to fire after the last StateChanged event.
|
12
|
+
Additional language packs: Finnish.
|
13
|
+
Version 1.5b (2011-09-11)
|
14
|
+
UI Widget: Fix sortable logic.
|
15
|
+
UI Widget: Fix bug, when message was displayed simultaneously across all Plupload UI instances on the page.
|
16
|
+
UI Widget: notify() method is now public - users can throw their own messages into the widget header.
|
17
|
+
HTML4/HTML5: Revise input[type=file] placement logic to support cursor styling on Geko 2+.
|
18
|
+
HTML5: Revise Drag'n'Drop detection logic.
|
19
|
+
HTML5: Make Exif and GPS information available to user, introduce two new events: ExifData and GpsData.
|
20
|
+
HTML5: Add support for File.prototype.slice() method (mozSlice/webkitSlice) in order to be able to upload files in chunks without preloading.
|
21
|
+
HTML5: Remove any JPEG headers before restoring them, 'cause user agent (like Chrome), might be inserting it's own.
|
22
|
+
Flash: Remove a limit on the depth of image header check, since it still fails in some cases and performance gain is negligible.
|
23
|
+
Flash: Fix regression, when runtime hanged when not images where passed in as images.
|
24
|
+
SilverLight: Fix bug, when JSON serializer was failing on null.
|
25
|
+
SilverLight: Remove cast to integer for chunk boundary, which resulted in a wrong size for last chunks on huge files.
|
26
|
+
SilverLight: Increase read buffer, add disposal of ImageStream and FileStream, optimize for performance.
|
27
|
+
Updated build.xml to include language packs in release package under js/ folder.
|
28
|
+
Gears/BrowserPlus: Add support for * file filter.
|
29
|
+
BeforeUpload now can cancel upload if required.
|
30
|
+
Additional MIME types: text/csv, image/photoshop, video/x-ms-wmv, video/avi, video/webm support
|
31
|
+
Additional language packs: Japanese
|
32
|
+
Cleaned examples.
|
1
33
|
Version 1.4.3.2 (2011-04-13)
|
2
34
|
Fixed bug in HTML5 runtime, when was reduced by a factor of 100 after every upload.
|
3
35
|
Version 1.4.3.1 (2011-04-12)
|
@@ -29,20 +29,17 @@
|
|
29
29
|
</head>
|
30
30
|
<body>
|
31
31
|
|
32
|
-
<
|
33
|
-
<h1>Custom example</h1>
|
32
|
+
<h1>Custom example</h1>
|
34
33
|
|
35
|
-
|
34
|
+
<p>Shows you how to use the core plupload API.</p>
|
35
|
+
|
36
|
+
<div id="container">
|
37
|
+
<div id="filelist">No runtime found.</div>
|
38
|
+
<br />
|
39
|
+
<a id="pickfiles" href="javascript:;">[Select files]</a>
|
40
|
+
<a id="uploadfiles" href="javascript:;">[Upload files]</a>
|
41
|
+
</div>
|
36
42
|
|
37
|
-
<div>
|
38
|
-
<div id="filelist">No runtime found.</div>
|
39
|
-
<br />
|
40
|
-
<a id="pickfiles" href="javascript:;">[Select files]</a>
|
41
|
-
<a id="uploadfiles" href="javascript:;">[Upload files]</a>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<input type="submit" />
|
45
|
-
</form>
|
46
43
|
|
47
44
|
<script type="text/javascript">
|
48
45
|
// Custom example logic
|
@@ -54,6 +51,7 @@ function $(id) {
|
|
54
51
|
var uploader = new plupload.Uploader({
|
55
52
|
runtimes : 'gears,html5,flash,silverlight,browserplus',
|
56
53
|
browse_button : 'pickfiles',
|
54
|
+
container: 'container',
|
57
55
|
max_file_size : '10mb',
|
58
56
|
url : 'upload.php',
|
59
57
|
resize : {width : 320, height : 240, quality : 90},
|
@@ -75,10 +73,6 @@ uploader.bind('FilesAdded', function(up, files) {
|
|
75
73
|
}
|
76
74
|
});
|
77
75
|
|
78
|
-
uploader.bind('UploadFile', function(up, file) {
|
79
|
-
$('submit-form').innerHTML += '<input type="hidden" name="file-' + file.id + '" value="' + file.name + '" />';
|
80
|
-
});
|
81
|
-
|
82
76
|
uploader.bind('UploadProgress', function(up, file) {
|
83
77
|
$(file.id).getElementsByTagName('b')[0].innerHTML = '<span>' + file.percent + "%</span>";
|
84
78
|
});
|
@@ -77,25 +77,24 @@ $(function() {
|
|
77
77
|
|
78
78
|
// Client side form validation
|
79
79
|
$('form').submit(function(e) {
|
80
|
-
|
80
|
+
var uploader = $('#uploader').plupload('getUploader');
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
82
|
+
// Files in queue upload them first
|
83
|
+
if (uploader.files.length > 0) {
|
84
|
+
// When all files are uploaded submit form
|
85
|
+
uploader.bind('StateChanged', function() {
|
86
|
+
if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
|
87
|
+
$('form')[0].submit();
|
88
|
+
}
|
89
|
+
});
|
90
|
+
|
91
|
+
uploader.start();
|
92
|
+
} else
|
93
|
+
alert('You must at least upload one file.');
|
91
94
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
e.preventDefault();
|
97
|
-
}
|
98
|
-
});
|
95
|
+
return false;
|
96
|
+
});
|
97
|
+
|
99
98
|
|
100
99
|
});
|
101
100
|
</script>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// .po file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Vyberte soubory',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Přidejte soubory do fronty a pak spusťte nahrávání.',
|
5
|
+
'Filename' : 'Název souboru',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Velikost',
|
8
|
+
'Add Files' : 'Přidat soubory',
|
9
|
+
'Stop current upload' : 'Zastavit nahrávání',
|
10
|
+
'Start uploading queue' : 'Spustit frontu nahrávání',
|
11
|
+
'Drag files here.' : 'Sem přetáhněte soubory.',
|
12
|
+
'Start Upload': 'Spustit nahrávání',
|
13
|
+
'Uploaded %d/%d files': 'Nahráno %d/%d souborů'
|
14
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// .po file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Vælg filer',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Tilføj filer til køen, og tryk på start.',
|
5
|
+
'Filename' : 'Filnavn',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Størrelse',
|
8
|
+
'Add files' : 'Tilføj filer',
|
9
|
+
'Stop current upload' : 'Stop upload',
|
10
|
+
'Start uploading queue' : 'Start upload',
|
11
|
+
'Drag files here.' : 'Træk filer her.'
|
12
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// German
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Wählen Sie die Dateien:',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Dateien hinzufügen und danach auf \'Starten des Uploads\' klicken und die Datei hochzuladen.',
|
5
|
+
'Filename' : 'Dateiname',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Größe',
|
8
|
+
'Add files' : 'Hinzufügen von Dateien',
|
9
|
+
'Stop current upload' : 'Stop aktuellen Upload',
|
10
|
+
'Start uploading queue' : 'Starte Upload',
|
11
|
+
'Uploaded %d/%d files': '%d/%d Dateien sind Hochgeladen',
|
12
|
+
'N/A' : 'Nicht verfügbar',
|
13
|
+
'Drag files here.' : 'Ziehen Sie die Dateien hier hin',
|
14
|
+
'File extension error.': 'Dateiendungs Fehler.',
|
15
|
+
'File size error.': 'Dateigrößen Fehler.',
|
16
|
+
'Init error.': 'Initialisierungs Fehler.',
|
17
|
+
'HTTP Error.': 'HTTP Fehler.',
|
18
|
+
'Security error.': 'Sicherheits Fehler.',
|
19
|
+
'Generic error.': 'Generic Fehler.',
|
20
|
+
'IO error.': 'Ein/Ausgabe Fehler.',
|
21
|
+
'Stop Upload': 'Stoppen des Uploads.',
|
22
|
+
'Add Files': 'Dateien hinzufügen',
|
23
|
+
'Start Upload': 'Starten des Uploads.',
|
24
|
+
'%d files queued': '%d Dateien in der Warteschlange.'
|
25
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Spanish
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Elija archivos:',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Agregue archivos a la cola de subida y haga click en el boton de iniciar.',
|
5
|
+
'Filename' : 'Nombre de archivo',
|
6
|
+
'Status' : 'Estado',
|
7
|
+
'Size' : 'Tamaño',
|
8
|
+
'Add files' : 'Agregue archivos',
|
9
|
+
'Stop current upload' : 'Detener subida actual',
|
10
|
+
'Start uploading queue' : 'Iniciar subida de cola',
|
11
|
+
'Uploaded %d/%d files': 'Subidos %d/%d archivos',
|
12
|
+
'N/A' : 'No disponible',
|
13
|
+
'Drag files here.' : 'Arrastre archivos aquí',
|
14
|
+
'File extension error.': 'Error de extensión de archivo.',
|
15
|
+
'File size error.': 'Error de tamaño de archivo.',
|
16
|
+
'Init error.': 'Error de inicialización.',
|
17
|
+
'HTTP Error.': 'Error de HTTP.',
|
18
|
+
'Security error.': 'Error de seguridad.',
|
19
|
+
'Generic error.': 'Error genérico.',
|
20
|
+
'IO error.': 'Error de entrada/salida.',
|
21
|
+
'Stop Upload': 'Detener Subida.',
|
22
|
+
'Add Files': 'Agregar Archivos',
|
23
|
+
'Start Upload': 'Comenzar Subida.',
|
24
|
+
'%d files queued': '%d archivos en cola.'
|
25
|
+
});
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// .fi file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Valitse tiedostoja',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Lisää tiedostoja latausjonoon ja klikkaa aloita-nappia.',
|
5
|
+
'Filename' : 'Tiedostonimi',
|
6
|
+
'Status' : 'Tila',
|
7
|
+
'Size' : 'Koko',
|
8
|
+
'Add files' : 'Lisää tiedostoja',
|
9
|
+
'Stop current upload' : 'Pysäytä nykyinen lataus',
|
10
|
+
'Start uploading queue' : 'Aloita jonon lataus',
|
11
|
+
'Drag files here.' : 'Raahaa tiedostot tänne.',
|
12
|
+
'Start upload' : 'Aloita lataus',
|
13
|
+
'Uploaded %d/%d files': 'Ladattu %d/%d tiedostoa',
|
14
|
+
'Stop upload': 'Pysäytä lataus',
|
15
|
+
'Start upload': 'Aloita lataus',
|
16
|
+
'%d files queued': '%d tiedostoa jonossa',
|
17
|
+
'File: %s': 'Tiedosto: %s',
|
18
|
+
'Close': 'Sulje',
|
19
|
+
'Using runtime: ': 'Käytetään ajonaikaista: ',
|
20
|
+
'File: %f, size: %s, max file size: %m': 'Tiedosto: %f, koko: %s, maksimi tiedostokoko: %m',
|
21
|
+
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Latauselementti sallii ladata vain %d tiedosto(a) kerrallaan. Ylimääräiset tiedostot ohitettiin.',
|
22
|
+
'Upload URL might be wrong or doesn\'t exist': 'Lataus URL saattaa olla väärin tai ei ole olemassa',
|
23
|
+
'Error: File too large: ': 'Virhe: Tiedosto liian suuri: ',
|
24
|
+
'Error: Invalid file extension: ': 'Virhe: Kelpaamaton tiedostopääte: ',
|
25
|
+
'File extension error.': 'Tiedostopäätevirhe.',
|
26
|
+
'File size error.': 'Tiedostokokovirhe.',
|
27
|
+
'File count error.': 'Tiedostolaskentavirhe.',
|
28
|
+
'Init error.': 'Init virhe.',
|
29
|
+
'HTTP Error.': 'HTTP virhe.',
|
30
|
+
'Security error.': 'Tietoturvavirhe.',
|
31
|
+
'Generic error.': 'Yleinen virhe.',
|
32
|
+
'IO error.': 'I/O virhe.'
|
33
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// .po file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Sélectionnez les fichiers',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Ajoutez des fichiers à la file et appuyez sur le bouton démarrer.',
|
5
|
+
'Filename' : 'Nom de fichier',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Taille',
|
8
|
+
'Add files' : 'Ajouter Fichiers',
|
9
|
+
'Stop current upload' : 'Arrêter l\'envoi en cours',
|
10
|
+
'Start uploading queue' : 'Démarrer l\'envoi',
|
11
|
+
'Uploaded %d/%d files': '%d/%d fichiers envoyés',
|
12
|
+
'N/A' : 'Non applicable',
|
13
|
+
'Drag files here.' : 'Déposer les fichiers ici.',
|
14
|
+
'File extension error.': 'Erreur extension fichier',
|
15
|
+
'File size error.': 'Erreur taille fichier.',
|
16
|
+
'Init error.': 'Erreur d\'initialisation.',
|
17
|
+
'HTTP Error.': 'Erreur HTTP.',
|
18
|
+
'Security error.': 'Erreur de sécurité.',
|
19
|
+
'Generic error.': 'Erreur générique.',
|
20
|
+
'IO error.': 'Erreur E/S.',
|
21
|
+
'Stop Upload': 'Arrêter les envois.',
|
22
|
+
'Add Files': 'Ajouter des fichiers',
|
23
|
+
'Start Upload': 'Démarrer les envois.',
|
24
|
+
'%d files queued': '%d fichiers en attente.'
|
25
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// .po file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Seleziona i files',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Aggiungi i file alla coda di caricamento e clicca il pulsante di avvio.',
|
5
|
+
'Filename' : 'Nome file',
|
6
|
+
'Status' : 'Stato',
|
7
|
+
'Size' : 'Dimensione',
|
8
|
+
'Add files' : 'Aggiungi file',
|
9
|
+
'Stop current upload' : 'Interrompi il caricamento',
|
10
|
+
'Start uploading queue' : 'Avvia il caricamento',
|
11
|
+
'Uploaded %d/%d files': 'Caricati %d/%d file',
|
12
|
+
'N/A' : 'N/D',
|
13
|
+
'Drag files here.' : 'Trascina i file qui.',
|
14
|
+
'File extension error.': 'Errore estensione file.',
|
15
|
+
'File size error.': 'Errore dimensione file.',
|
16
|
+
'Init error.': 'Errore inizializzazione.',
|
17
|
+
'HTTP Error.': 'Errore HTTP.',
|
18
|
+
'Security error.': 'Errore sicurezza.',
|
19
|
+
'Generic error.': 'Errore generico.',
|
20
|
+
'IO error.': 'Errore IO.'
|
21
|
+
});
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Japanese
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'ファイル選択',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'ファイルをアップロードキューに追加してスタートボタンをクリックしてください',
|
5
|
+
'Filename' : 'ファイル名',
|
6
|
+
'Status' : 'ステータス',
|
7
|
+
'Size' : 'サイズ',
|
8
|
+
'Add Files' : 'ファイルを追加',
|
9
|
+
'Stop Upload' : 'アップロード停止',
|
10
|
+
'Start Upload' : 'アップロード',
|
11
|
+
'Add files' : 'ファイルを追加',
|
12
|
+
'Add files.' : 'ファイルを追加',
|
13
|
+
'Stop current upload' : '現在のアップロードを停止',
|
14
|
+
'Start uploading queue' : 'アップロード',
|
15
|
+
'Stop upload' : 'アップロード停止',
|
16
|
+
'Start upload' : 'アップロード',
|
17
|
+
'Uploaded %d/%d files': 'アップロード中 %d/%d ファイル',
|
18
|
+
'N/A' : 'N/A',
|
19
|
+
'Drag files here.' : 'ここにファイルをドラッグ',
|
20
|
+
'File extension error.': 'ファイル拡張子エラー',
|
21
|
+
'File size error.': 'ファイルサイズエラー',
|
22
|
+
'File count error.': 'ファイル数エラー',
|
23
|
+
'Init error.': 'イニシャライズエラー',
|
24
|
+
'HTTP Error.': 'HTTP エラー',
|
25
|
+
'Security error.': 'セキュリティエラー',
|
26
|
+
'Generic error.': 'エラー',
|
27
|
+
'IO error.': 'IO エラー',
|
28
|
+
'File: %s': 'ファイル: %s',
|
29
|
+
'Close': '閉じる',
|
30
|
+
'%d files queued': '%d ファイルが追加されました',
|
31
|
+
'Using runtime: ': 'モード: ',
|
32
|
+
'File: %f, size: %s, max file size: %m': 'ファイル: %f, サイズ: %s, 最大ファイルサイズ: %m',
|
33
|
+
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'アップロード可能なファイル数は %d です。余分なファイルは削除されました',
|
34
|
+
'Upload URL might be wrong or doesn\'t exist': 'アップロード先の URL が存在しません',
|
35
|
+
'Error: File too large: ': 'エラー: サイズが大きすぎます: ',
|
36
|
+
'Error: Invalid file extension: ': 'エラー: 拡張子が許可されていません: '
|
37
|
+
});
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// .lv file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Izvēlieties failus',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Pieveinojiet failus rindai un klikšķiniet uz "Sākt augšupielādi" pogas.',
|
5
|
+
'Filename' : 'Faila nosaukums',
|
6
|
+
'Status' : 'Statuss',
|
7
|
+
'Size' : 'Izmērs',
|
8
|
+
'Add files' : 'Pievienot failus',
|
9
|
+
'Stop current upload' : 'Apturēt pašreizējo augšupielādi',
|
10
|
+
'Start uploading queue' : 'Sākt augšupielādi',
|
11
|
+
'Drag files here.' : 'Ievelciet failus šeit',
|
12
|
+
'Start upload' : 'Sākt augšupielādi',
|
13
|
+
'Uploaded %d/%d files': 'Augšupielādēti %d/%d faili',
|
14
|
+
'Stop upload': 'Pārtraukt augšupielādi',
|
15
|
+
'Start upload': 'Sākt augšupielādi',
|
16
|
+
'%d files queued': '%d faili pievienoti rindai',
|
17
|
+
'File: %s': 'Fails: %s',
|
18
|
+
'Close': 'Aizvērt',
|
19
|
+
'Using runtime: ': 'Lieto saskarni: ',
|
20
|
+
'File: %f, size: %s, max file size: %m': 'Fails: %f, izmērs: %s, maksimālais faila izmērs: %m',
|
21
|
+
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Iespējams ielādēt tikai %d failus vienā reizē. Atlikušie faili netika pievienoti',
|
22
|
+
'Upload URL might be wrong or doesn\'t exist': 'Augšupielādes URL varētu būt nepareizs vai neeksistē',
|
23
|
+
'Error: File too large: ': 'Kļūda: Fails pārāk liels: ',
|
24
|
+
'Error: Invalid file extension: ': 'Kļūda: Nekorekts faila paplašinājums:',
|
25
|
+
'File extension error.': 'Faila paplašinājuma kļūda.',
|
26
|
+
'File size error.': 'Faila izmēra kļūda.',
|
27
|
+
'File count error.': 'Failu skaita kļūda',
|
28
|
+
'Init error.': 'Inicializācijas kļūda.',
|
29
|
+
'HTTP Error.': 'HTTP kļūda.',
|
30
|
+
'Security error.': 'Drošības kļūda.',
|
31
|
+
'Generic error.': 'Vispārēja rakstura kļūda.',
|
32
|
+
'IO error.': 'Ievades/Izvades kļūda.'
|
33
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Dutch
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Selecteer bestand(en):',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Voeg bestanden toe aan de wachtrij en druk op \'Start\'.',
|
5
|
+
'Filename' : 'Bestandsnaam',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Grootte',
|
8
|
+
'Add files' : 'Voeg bestanden toe',
|
9
|
+
'Stop current upload' : 'Stop upload',
|
10
|
+
'Start uploading queue' : 'Start upload',
|
11
|
+
'Uploaded %d/%d files': '%d/%d bestanden ge-upload',
|
12
|
+
'N/A' : 'Niet beschikbaar',
|
13
|
+
'Drag files here.' : 'Sleep bestanden hierheen.',
|
14
|
+
'File extension error.': 'Ongeldig bestandstype.',
|
15
|
+
'File size error.': 'Bestandsgrootte Error.',
|
16
|
+
'Init error.': 'Initialisatie error.',
|
17
|
+
'HTTP Error.': 'HTTP Error.',
|
18
|
+
'Security error.': 'Beveiliging error.',
|
19
|
+
'Generic error.': 'Onbekende error.',
|
20
|
+
'IO error.': 'IO error.'
|
21
|
+
});
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// Brazilian Portuguese
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Escolha os arquivos',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Adicione os arquivos abaixo e clique no botão "Iniciar o envio".',
|
5
|
+
'Filename' : 'Nome do arquivo',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Tamanho',
|
8
|
+
'Add Files' : 'Adicionar arquivo(s)',
|
9
|
+
'Stop Upload' : 'Parar o envio',
|
10
|
+
'Start Upload' : 'Iniciar o envio',
|
11
|
+
'Add files' : 'Adicionar arquivo(s)',
|
12
|
+
'Add files.' : 'Adicionar arquivo(s)',
|
13
|
+
'Stop upload' : 'Parar o envio',
|
14
|
+
'Start upload' : 'Iniciar o envio',
|
15
|
+
'Uploaded %d/%d files': 'Enviado(s) %d/%d arquivo(s)',
|
16
|
+
'N/A' : 'N/D',
|
17
|
+
'Drag files here.' : 'Arraste os arquivos pra cá',
|
18
|
+
'File extension error.': 'Tipo de arquivo não permitido.',
|
19
|
+
'File size error.': 'Tamanho de arquivo não permitido.',
|
20
|
+
'File count error.': 'Erro na contagem dos arquivos',
|
21
|
+
'Init error.': 'Erro inicializando.',
|
22
|
+
'HTTP Error.': 'Erro HTTP.',
|
23
|
+
'Security error.': 'Erro de segurança.',
|
24
|
+
'Generic error.': 'Erro genérico.',
|
25
|
+
'IO error.': 'Erro de E/S.',
|
26
|
+
'File: %s': 'Arquivo: %s',
|
27
|
+
'Close': 'Fechar',
|
28
|
+
'%d files queued': '%d arquivo(s)',
|
29
|
+
'Using runtime: ': 'Usando: ',
|
30
|
+
'File: %f, size: %s, max file size: %m': 'Arquivo: %f, tamanho: %s, máximo: %m',
|
31
|
+
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Só são aceitos %d arquivos por vez. O que passou disso foi descartado.',
|
32
|
+
'Upload URL might be wrong or doesn\'t exist': 'URL de envio está errada ou não existe',
|
33
|
+
'Error: File too large: ': 'Erro: Arquivo muito grande: ',
|
34
|
+
'Error: Invalid file extension: ': 'Erro: Tipo de arquivo não permitido: '
|
35
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Russian
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Выберите файлы',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Добавьте файлы в очередь и нажмите кнопку "Загрузить файлы".',
|
5
|
+
'Filename' : 'Имя файла',
|
6
|
+
'Status' : 'Статус',
|
7
|
+
'Size' : 'Размер',
|
8
|
+
'Add files' : 'Добавить файлы',
|
9
|
+
'Stop current upload' : 'Остановить загрузку',
|
10
|
+
'Start uploading queue' : 'Загрузить файлы',
|
11
|
+
'Uploaded %d/%d files': 'Загружено %d из %d файлов',
|
12
|
+
'N/A' : 'N/D',
|
13
|
+
'Drag files here.' : 'Перетащите файлы сюда.',
|
14
|
+
'File extension error.': 'Неправильное расширение файла.',
|
15
|
+
'File size error.': 'Неправильный размер файла.',
|
16
|
+
'Init error.': 'Ошибка инициализации.',
|
17
|
+
'HTTP Error.': 'Ошибка HTTP.',
|
18
|
+
'Security error.': 'Ошибка безопасности.',
|
19
|
+
'Generic error.': 'Общая ошибка.',
|
20
|
+
'IO error.': 'Ошибка ввода-вывода.'
|
21
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// .po file like language pack
|
2
|
+
plupload.addI18n({
|
3
|
+
'Select files' : 'Välj filer',
|
4
|
+
'Add files to the upload queue and click the start button.' : 'Lägg till filer till kön och tryck på start.',
|
5
|
+
'Filename' : 'Filnamn',
|
6
|
+
'Status' : 'Status',
|
7
|
+
'Size' : 'Storlek',
|
8
|
+
'Add files' : 'Lägg till filer',
|
9
|
+
'Stop current upload' : 'Stoppa uppladdningen',
|
10
|
+
'Start uploading queue' : 'Starta uppladdningen',
|
11
|
+
'Drag files here.' : 'Dra filer hit'
|
12
|
+
});
|
@@ -1 +1 @@
|
|
1
|
-
(function(c){var d={};function a(e){return plupload.translate(e)||e}function b(f,e){e.contents().each(function(g,h){h=c(h);if(!h.is(".plupload")){h.remove()}});e.prepend('<div class="plupload_wrapper plupload_scroll"><div id="'+f+'_container" class="plupload_container"><div class="plupload"><div class="plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">'+a("Select files")+'</div><div class="plupload_header_text">'+a("Add files to the upload queue and click the start button.")+'</div></div></div><div class="plupload_content"><div class="plupload_filelist_header"><div class="plupload_file_name">'+a("Filename")+'</div><div class="plupload_file_action"> </div><div class="plupload_file_status"><span>'+a("Status")+'</span></div><div class="plupload_file_size">'+a("Size")+'</div><div class="plupload_clearer"> </div></div><ul id="'+f+'_filelist" class="plupload_filelist"></ul><div class="plupload_filelist_footer"><div class="plupload_file_name"><div class="plupload_buttons"><a href="#" class="plupload_button plupload_add">'+a("Add files")+'</a><a href="#" class="plupload_button plupload_start">'+a("Start upload")+'</a></div><span class="plupload_upload_status"></span></div><div class="plupload_file_action"></div><div class="plupload_file_status"><span class="plupload_total_status">0%</span></div><div class="plupload_file_size"><span class="plupload_total_file_size">0 b</span></div><div class="plupload_progress"><div class="plupload_progress_container"><div class="plupload_progress_bar"></div></div></div><div class="plupload_clearer"> </div></div></div></div></div><input type="hidden" id="'+f+'_count" name="'+f+'_count" value="0" /></div>')}c.fn.pluploadQueue=function(e){if(e){this.each(function(){var j,i,k;i=c(this);k=i.attr("id");if(!k){k=plupload.guid();i.attr("id",k)}j=new plupload.Uploader(c.extend({dragdrop:true,container:k},e));d[k]=j;function h(l){var n;if(l.status==plupload.DONE){n="plupload_done"}if(l.status==plupload.FAILED){n="plupload_failed"}if(l.status==plupload.QUEUED){n="plupload_delete"}if(l.status==plupload.UPLOADING){n="plupload_uploading"}var m=c("#"+l.id).attr("class",n).find("a").css("display","block");if(l.hint){m.attr("title",l.hint)}}function f(){c("span.plupload_total_status",i).html(j.total.percent+"%");c("div.plupload_progress_bar",i).css("width",j.total.percent+"%");c("span.plupload_upload_status",i).text(a("Uploaded %d/%d files").replace(/%d\/%d/,j.total.uploaded+"/"+j.files.length))}function g(){var m=c("ul.plupload_filelist",i).html(""),n=0,l;c.each(j.files,function(p,o){l="";if(o.status==plupload.DONE){if(o.target_name){l+='<input type="hidden" name="'+k+"_"+n+'_tmpname" value="'+plupload.xmlEncode(o.target_name)+'" />'}l+='<input type="hidden" name="'+k+"_"+n+'_name" value="'+plupload.xmlEncode(o.name)+'" />';l+='<input type="hidden" name="'+k+"_"+n+'_status" value="'+(o.status==plupload.DONE?"done":"failed")+'" />';n++;c("#"+k+"_count").val(n)}m.append('<li id="'+o.id+'"><div class="plupload_file_name"><span>'+o.name+'</span></div><div class="plupload_file_action"><a href="#"></a></div><div class="plupload_file_status">'+o.percent+'%</div><div class="plupload_file_size">'+plupload.formatSize(o.size)+'</div><div class="plupload_clearer"> </div>'+l+"</li>");h(o);c("#"+o.id+".plupload_delete a").click(function(q){c("#"+o.id).remove();j.removeFile(o);q.preventDefault()})});c("span.plupload_total_file_size",i).html(plupload.formatSize(j.total.size));if(j.total.queued===0){c("span.plupload_add_text",i).text(a("Add files."))}else{c("span.plupload_add_text",i).text(j.total.queued+" files queued.")}c("a.plupload_start",i).toggleClass("plupload_disabled",j.files.length==(j.total.uploaded+j.total.failed));m[0].scrollTop=m[0].scrollHeight;f();if(!j.files.length&&j.features.dragdrop&&j.settings.dragdrop){c("#"+k+"_filelist").append('<li class="plupload_droptext">'+a("Drag files here.")+"</li>")}}j.bind("UploadFile",function(l,m){c("#"+m.id).addClass("plupload_current_file")});j.bind("Init",function(l,m){b(k,i);if(!e.unique_names&&e.rename){c("#"+k+"_filelist div.plupload_file_name span",i).live("click",function(s){var q=c(s.target),o,r,n,p="";o=l.getFile(q.parents("li")[0].id);n=o.name;r=/^(.+)(\.[^.]+)$/.exec(n);if(r){n=r[1];p=r[2]}q.hide().after('<input type="text" />');q.next().val(n).focus().blur(function(){q.show().next().remove()}).keydown(function(u){var t=c(this);if(u.keyCode==13){u.preventDefault();o.name=t.val()+p;q.text(o.name);t.blur()}})})}c("a.plupload_add",i).attr("id",k+"_browse");l.settings.browse_button=k+"_browse";if(l.features.dragdrop&&l.settings.dragdrop){l.settings.drop_element=k+"_filelist";c("#"+k+"_filelist").append('<li class="plupload_droptext">'+a("Drag files here.")+"</li>")}c("#"+k+"_container").attr("title","Using runtime: "+m.runtime);c("a.plupload_start",i).click(function(n){if(!c(this).hasClass("plupload_disabled")){j.start()}n.preventDefault()});c("a.plupload_stop",i).click(function(n){n.preventDefault();j.stop()});c("a.plupload_start",i).addClass("plupload_disabled")});j.init();j.bind("Error",function(l,o){var m=o.file,n;if(m){n=o.message;if(o.details){n+=" ("+o.details+")"}if(o.code==plupload.FILE_SIZE_ERROR){alert(a("Error: File
|
1
|
+
(function(c){var d={};function a(e){return plupload.translate(e)||e}function b(f,e){e.contents().each(function(g,h){h=c(h);if(!h.is(".plupload")){h.remove()}});e.prepend('<div class="plupload_wrapper plupload_scroll"><div id="'+f+'_container" class="plupload_container"><div class="plupload"><div class="plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">'+a("Select files")+'</div><div class="plupload_header_text">'+a("Add files to the upload queue and click the start button.")+'</div></div></div><div class="plupload_content"><div class="plupload_filelist_header"><div class="plupload_file_name">'+a("Filename")+'</div><div class="plupload_file_action"> </div><div class="plupload_file_status"><span>'+a("Status")+'</span></div><div class="plupload_file_size">'+a("Size")+'</div><div class="plupload_clearer"> </div></div><ul id="'+f+'_filelist" class="plupload_filelist"></ul><div class="plupload_filelist_footer"><div class="plupload_file_name"><div class="plupload_buttons"><a href="#" class="plupload_button plupload_add">'+a("Add files")+'</a><a href="#" class="plupload_button plupload_start">'+a("Start upload")+'</a></div><span class="plupload_upload_status"></span></div><div class="plupload_file_action"></div><div class="plupload_file_status"><span class="plupload_total_status">0%</span></div><div class="plupload_file_size"><span class="plupload_total_file_size">0 b</span></div><div class="plupload_progress"><div class="plupload_progress_container"><div class="plupload_progress_bar"></div></div></div><div class="plupload_clearer"> </div></div></div></div></div><input type="hidden" id="'+f+'_count" name="'+f+'_count" value="0" /></div>')}c.fn.pluploadQueue=function(e){if(e){this.each(function(){var j,i,k;i=c(this);k=i.attr("id");if(!k){k=plupload.guid();i.attr("id",k)}j=new plupload.Uploader(c.extend({dragdrop:true,container:k},e));d[k]=j;function h(l){var n;if(l.status==plupload.DONE){n="plupload_done"}if(l.status==plupload.FAILED){n="plupload_failed"}if(l.status==plupload.QUEUED){n="plupload_delete"}if(l.status==plupload.UPLOADING){n="plupload_uploading"}var m=c("#"+l.id).attr("class",n).find("a").css("display","block");if(l.hint){m.attr("title",l.hint)}}function f(){c("span.plupload_total_status",i).html(j.total.percent+"%");c("div.plupload_progress_bar",i).css("width",j.total.percent+"%");c("span.plupload_upload_status",i).text(a("Uploaded %d/%d files").replace(/%d\/%d/,j.total.uploaded+"/"+j.files.length))}function g(){var m=c("ul.plupload_filelist",i).html(""),n=0,l;c.each(j.files,function(p,o){l="";if(o.status==plupload.DONE){if(o.target_name){l+='<input type="hidden" name="'+k+"_"+n+'_tmpname" value="'+plupload.xmlEncode(o.target_name)+'" />'}l+='<input type="hidden" name="'+k+"_"+n+'_name" value="'+plupload.xmlEncode(o.name)+'" />';l+='<input type="hidden" name="'+k+"_"+n+'_status" value="'+(o.status==plupload.DONE?"done":"failed")+'" />';n++;c("#"+k+"_count").val(n)}m.append('<li id="'+o.id+'"><div class="plupload_file_name"><span>'+o.name+'</span></div><div class="plupload_file_action"><a href="#"></a></div><div class="plupload_file_status">'+o.percent+'%</div><div class="plupload_file_size">'+plupload.formatSize(o.size)+'</div><div class="plupload_clearer"> </div>'+l+"</li>");h(o);c("#"+o.id+".plupload_delete a").click(function(q){c("#"+o.id).remove();j.removeFile(o);q.preventDefault()})});c("span.plupload_total_file_size",i).html(plupload.formatSize(j.total.size));if(j.total.queued===0){c("span.plupload_add_text",i).text(a("Add files."))}else{c("span.plupload_add_text",i).text(j.total.queued+" files queued.")}c("a.plupload_start",i).toggleClass("plupload_disabled",j.files.length==(j.total.uploaded+j.total.failed));m[0].scrollTop=m[0].scrollHeight;f();if(!j.files.length&&j.features.dragdrop&&j.settings.dragdrop){c("#"+k+"_filelist").append('<li class="plupload_droptext">'+a("Drag files here.")+"</li>")}}j.bind("UploadFile",function(l,m){c("#"+m.id).addClass("plupload_current_file")});j.bind("Init",function(l,m){b(k,i);if(!e.unique_names&&e.rename){c("#"+k+"_filelist div.plupload_file_name span",i).live("click",function(s){var q=c(s.target),o,r,n,p="";o=l.getFile(q.parents("li")[0].id);n=o.name;r=/^(.+)(\.[^.]+)$/.exec(n);if(r){n=r[1];p=r[2]}q.hide().after('<input type="text" />');q.next().val(n).focus().blur(function(){q.show().next().remove()}).keydown(function(u){var t=c(this);if(u.keyCode==13){u.preventDefault();o.name=t.val()+p;q.text(o.name);t.blur()}})})}c("a.plupload_add",i).attr("id",k+"_browse");l.settings.browse_button=k+"_browse";if(l.features.dragdrop&&l.settings.dragdrop){l.settings.drop_element=k+"_filelist";c("#"+k+"_filelist").append('<li class="plupload_droptext">'+a("Drag files here.")+"</li>")}c("#"+k+"_container").attr("title","Using runtime: "+m.runtime);c("a.plupload_start",i).click(function(n){if(!c(this).hasClass("plupload_disabled")){j.start()}n.preventDefault()});c("a.plupload_stop",i).click(function(n){n.preventDefault();j.stop()});c("a.plupload_start",i).addClass("plupload_disabled")});j.init();j.bind("Error",function(l,o){var m=o.file,n;if(m){n=o.message;if(o.details){n+=" ("+o.details+")"}if(o.code==plupload.FILE_SIZE_ERROR){alert(a("Error: File too large: ")+m.name)}if(o.code==plupload.FILE_EXTENSION_ERROR){alert(a("Error: Invalid file extension: ")+m.name)}m.hint=n;c("#"+m.id).attr("class","plupload_failed").find("a").css("display","block").attr("title",n)}});j.bind("StateChanged",function(){if(j.state===plupload.STARTED){c("li.plupload_delete a,div.plupload_buttons",i).hide();c("span.plupload_upload_status,div.plupload_progress,a.plupload_stop",i).css("display","block");c("span.plupload_upload_status",i).text("Uploaded "+j.total.uploaded+"/"+j.files.length+" files");if(e.multiple_queues){c("span.plupload_total_status,span.plupload_total_file_size",i).show()}}else{g();c("a.plupload_stop,div.plupload_progress",i).hide();c("a.plupload_delete",i).css("display","block")}});j.bind("QueueChanged",g);j.bind("FileUploaded",function(l,m){h(m)});j.bind("UploadProgress",function(l,m){c("#"+m.id+" div.plupload_file_status",i).html(m.percent+"%");h(m);f();if(e.multiple_queues&&j.total.uploaded+j.total.failed==j.files.length){c(".plupload_buttons,.plupload_upload_status",i).css("display","inline");c(".plupload_start",i).addClass("plupload_disabled");c("span.plupload_total_status,span.plupload_total_file_size",i).hide()}});if(e.setup){e.setup(j)}});return this}else{return d[c(this[0]).attr("id")]}}})(jQuery);
|
@@ -40,6 +40,9 @@ div.plupload div.plupload_header {border-width: 0 0 1px 0; position: relative;}
|
|
40
40
|
margin: 0;
|
41
41
|
padding: 0;
|
42
42
|
width: 100%;
|
43
|
+
-moz-user-select:none;
|
44
|
+
-webkit-user-select:none;
|
45
|
+
user-select:none;
|
43
46
|
}
|
44
47
|
|
45
48
|
.plupload_cell {padding: 8px 6px;}
|
@@ -49,6 +52,11 @@ div.plupload div.plupload_header {border-width: 0 0 1px 0; position: relative;}
|
|
49
52
|
border-right: none;
|
50
53
|
}
|
51
54
|
|
55
|
+
.plupload .ui-sortable-helper,
|
56
|
+
.plupload .ui-sortable .plupload_file {
|
57
|
+
cursor:move;
|
58
|
+
}
|
59
|
+
|
52
60
|
.plupload_scroll {
|
53
61
|
max-height: 180px;
|
54
62
|
min-height: 168px;
|
data/app/assets/javascripts/applicious_utils/Plupload/js/jquery.ui.plupload/jquery.ui.plupload.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(f,a,c,g,e){var h={};function b(i){return c.translate(i)||i}function d(i){i.html('<div class="plupload_wrapper"><div class="ui-widget-content plupload_container"><div class="plupload"><div class="ui-state-default ui-widget-header plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">'+b("Select files")+'</div><div class="plupload_header_text">'+b("Add files to the upload queue and click the start button.")+'</div></div></div><div class="plupload_content"><table class="plupload_filelist"><tr class="ui-widget-header plupload_filelist_header"><td class="plupload_cell plupload_file_name">'+b("Filename")+'</td><td class="plupload_cell plupload_file_status">'+b("Status")+'</td><td class="plupload_cell plupload_file_size">'+b("Size")+'</td><td class="plupload_cell plupload_file_action"> </td></tr></table><div class="plupload_scroll"><table class="plupload_filelist_content"></table></div><table class="plupload_filelist"><tr class="ui-widget-header ui-widget-content plupload_filelist_footer"><td class="plupload_cell plupload_file_name"><div class="plupload_buttons"><!-- Visible --><a class="plupload_button plupload_add">'+b("Add Files")+'</a> <a class="plupload_button plupload_start">'+b("Start Upload")+'</a> <a class="plupload_button plupload_stop plupload_hidden">'+b("Stop Upload")+'</a> </div><div class="plupload_started plupload_hidden"><!-- Hidden --><div class="plupload_progress plupload_right"><div class="plupload_progress_container"></div></div><div class="plupload_cell plupload_upload_status"></div><div class="plupload_clearer"> </div></div></td><td class="plupload_file_status"><span class="plupload_total_status">0%</span></td><td class="plupload_file_size"><span class="plupload_total_file_size">0 kb</span></td><td class="plupload_file_action"></td></tr></table></div></div></div><input class="plupload_count" value="0" type="hidden"></div>')}g.widget("ui.plupload",{contents_bak:"",runtime:null,options:{browse_button_hover:"ui-state-hover",browse_button_active:"ui-state-active",dragdrop:true,multiple_queues:true,buttons:{browse:true,start:true,stop:true},autostart:false,sortable:false,rename:false,max_file_count:0},FILE_COUNT_ERROR:-9001,_create:function(){var i=this,k,j;k=this.element.attr("id");if(!k){k=c.guid();this.element.attr("id",k)}this.id=k;this.contents_bak=this.element.html();d(this.element);this.container=g(".plupload_container",this.element).attr("id",k+"_container");this.filelist=g(".plupload_filelist_content",this.container).attr("id",k+"_filelist");this.browse_button=g(".plupload_add",this.container).attr("id",k+"_browse");this.start_button=g(".plupload_start",this.container).attr("id",k+"_start");this.stop_button=g(".plupload_stop",this.container).attr("id",k+"_stop");if(g.ui.button){this.browse_button.button({icons:{primary:"ui-icon-circle-plus"}});this.start_button.button({icons:{primary:"ui-icon-circle-arrow-e"},disabled:true});this.stop_button.button({icons:{primary:"ui-icon-circle-close"}})}if(!this.options.buttons.browse){this.browse_button.button("disable").hide();g("#"+k+i.runtime+"_container").hide()}if(!this.options.buttons.start){this.start_button.button("disable").hide()}if(!this.options.buttons.stop){this.stop_button.button("disable").hide()}this.progressbar=g(".plupload_progress_container",this.container);if(g.ui.progressbar){this.progressbar.progressbar()}this.counter=g(".plupload_count",this.element).attr({id:k+"_count",name:k+"_count"});j=this.uploader=h[k]=new c.Uploader(g.extend({container:k,browse_button:k+"_browse"},this.options));j.bind("Init",function(l,m){if(!i.options.unique_names&&i.options.rename){i._enableRenaming()}if(j.features.dragdrop&&i.options.dragdrop){i._enableDragAndDrop()}i.container.attr("title",b("Using runtime: ")+(i.runtime=m.runtime));i.start_button.click(function(n){if(!g(this).button("option","disabled")){i.start()}n.preventDefault()});i.stop_button.click(function(n){j.stop();n.preventDefault()})});if(i.options.max_file_count){j.bind("FilesAdded",function(l,n){var m=n.length,o=[];if(m>i.options.max_file_count){o=n.splice(i.options.max_file_count);l.trigger("Error",{code:i.FILE_COUNT_ERROR,message:b("File count error."),file:o})}})}j.init();j.bind("FilesAdded",function(l,m){i._trigger("selected",null,{up:l,files:m});if(i.options.autostart){i.start()}});j.bind("FilesRemoved",function(l,m){i._trigger("removed",null,{up:l,files:m})});j.bind("QueueChanged",function(){i._updateFileList()});j.bind("StateChanged",function(){i._handleState()});j.bind("UploadFile",function(l,m){i._handleFileStatus(m)});j.bind("FileUploaded",function(l,m){i._handleFileStatus(m);i._trigger("uploaded",null,{up:l,file:m})});j.bind("UploadProgress",function(l,m){g("#"+m.id+" .plupload_file_status",i.element).html(m.percent+"%");i._handleFileStatus(m);i._updateTotalProgress();i._trigger("progress",null,{up:l,file:m})});j.bind("UploadComplete",function(l,m){i._trigger("complete",null,{up:l,files:m})});j.bind("Error",function(l,p){var n=p.file,o,m;if(n){o="<strong>"+p.message+"</strong>";m=p.details;if(m){o+=" <br /><i>"+p.details+"</i>"}else{switch(p.code){case c.FILE_EXTENSION_ERROR:m=b("File: %s").replace("%s",n.name);break;case c.FILE_SIZE_ERROR:m=b("File: %f, size: %s, max file size: %m").replace(/%([fsm])/g,function(r,q){switch(q){case"f":return n.name;case"s":return n.size;case"m":return c.parseSize(i.options.max_file_size)}});break;case i.FILE_COUNT_ERROR:m=b("Upload element accepts only %d file(s) at a time. Extra files were stripped.").replace("%d",i.options.max_file_count);break;case c.IMAGE_FORMAT_ERROR:m=c.translate("Image format either wrong or not supported.");break;case c.IMAGE_MEMORY_ERROR:m=c.translate("Runtime ran out of available memory.");break;case c.IMAGE_DIMENSIONS_ERROR:m=c.translate("Resoultion out of boundaries! <b>%s</b> runtime supports images only up to %wx%hpx.").replace(/%([swh])/g,function(r,q){switch(q){case"s":return l.runtime;case"w":return l.features.maxWidth;case"h":return l.features.maxHeight}});break;case c.HTTP_ERROR:m=b("Upload URL might be wrong or doesn't exist");break}o+=" <br /><i>"+m+"</i>"}i._notify("error",o);i._trigger("error",null,{up:l,file:n,error:o})}})},_setOption:function(j,k){var i=this;if(j=="buttons"&&typeof(k)=="object"){k=g.extend(i.options.buttons,k);if(!k.browse){i.browse_button.button("disable").hide();g("#"+i.id+i.runtime+"_container").hide()}else{i.browse_button.button("enable").show();g("#"+i.id+i.runtime+"_container").show()}if(!k.start){i.start_button.button("disable").hide()}else{i.start_button.button("enable").show()}if(!k.stop){i.stop_button.button("disable").hide()}else{i.start_button.button("enable").show()}}i.uploader.settings[j]=k},start:function(){this.uploader.start();this._trigger("start",null)},stop:function(){this.uploader.stop();this._trigger("stop",null)},getFile:function(j){var i;if(typeof j==="number"){i=this.uploader.files[j]}else{i=this.uploader.getFile(j)}return i},removeFile:function(j){var i=this.getFile(j);if(i){this.uploader.removeFile(i)}},clearQueue:function(){this.uploader.splice()},getUploader:function(){return this.uploader},refresh:function(){this.uploader.refresh()},_handleState:function(){var i=this,j=this.uploader;if(j.state===c.STARTED){g(i.start_button).button("disable");g([]).add(i.stop_button).add(".plupload_started").removeClass("plupload_hidden");g(".plupload_upload_status",i.element).text(b("Uploaded %d/%d files").replace("%d/%d",j.total.uploaded+"/"+j.files.length));g(".plupload_header_content",i.element).addClass("plupload_header_content_bw")}else{g([]).add(i.stop_button).add(".plupload_started").addClass("plupload_hidden");if(i.options.multiple_queues){g(i.start_button).button("enable");g(".plupload_header_content",i.element).removeClass("plupload_header_content_bw")}i._updateFileList()}},_handleFileStatus:function(l){var n,j;switch(l.status){case c.DONE:n="plupload_done";j="ui-icon ui-icon-circle-check";break;case c.FAILED:n="ui-state-error plupload_failed";j="ui-icon ui-icon-alert";break;case c.QUEUED:n="plupload_delete";j="ui-icon ui-icon-circle-minus";break;case c.UPLOADING:n="ui-state-highlight plupload_uploading";j="ui-icon ui-icon-circle-arrow-w";var i=g(".plupload_scroll",this.container),m=i.scrollTop(),o=i.height(),k=g("#"+l.id).position().top+g("#"+l.id).height();if(o<k){i.scrollTop(m+k-o)}break}n+=" ui-state-default plupload_file";g("#"+l.id).attr("class",n).find(".ui-icon").attr("class",j)},_updateTotalProgress:function(){var i=this.uploader;this.progressbar.progressbar("value",i.total.percent);g(".plupload_total_status",this.element).html(i.total.percent+"%");g(".plupload_upload_status",this.element).text(b("Uploaded %d/%d files").replace("%d/%d",i.total.uploaded+"/"+i.files.length))},_updateFileList:function(){var j=this,n=this.uploader,l=this.filelist,k=0,o,m=this.id+"_",i;if(g.ui.sortable&&this.options.sortable){g("tbody",l).sortable("destroy")}l.empty();g.each(n.files,function(q,p){i="";o=m+k;if(p.status===c.DONE){if(p.target_name){i+='<input type="hidden" name="'+o+'_tmpname" value="'+c.xmlEncode(p.target_name)+'" />'}i+='<input type="hidden" name="'+o+'_name" value="'+c.xmlEncode(p.name)+'" />';i+='<input type="hidden" name="'+o+'_status" value="'+(p.status===c.DONE?"done":"failed")+'" />';k++;j.counter.val(k)}l.append('<tr class="ui-state-default plupload_file" id="'+p.id+'"><td class="plupload_cell plupload_file_name"><span>'+p.name+'</span></td><td class="plupload_cell plupload_file_status">'+p.percent+'%</td><td class="plupload_cell plupload_file_size">'+c.formatSize(p.size)+'</td><td class="plupload_cell plupload_file_action"><div class="ui-icon"></div>'+i+"</td></tr>");j._handleFileStatus(p);g("#"+p.id+".plupload_delete .ui-icon, #"+p.id+".plupload_done .ui-icon").click(function(r){g("#"+p.id).remove();n.removeFile(p);r.preventDefault()});j._trigger("updatelist",null,l)});g(".plupload_total_file_size",j.element).html(c.formatSize(n.total.size));if(n.total.queued===0){g(".ui-button-text",j.browse_button).text(b("Add Files"))}else{g(".ui-button-text",j.browse_button).text(b("%d files queued").replace("%d",n.total.queued))}if(n.files.length===(n.total.uploaded+n.total.failed)){j.start_button.button("disable")}else{j.start_button.button("enable")}l[0].scrollTop=l[0].scrollHeight;j._updateTotalProgress();if(!n.files.length&&n.features.dragdrop&&n.settings.dragdrop){g("#"+o+"_filelist").append('<tr><td class="plupload_droptext">'+b("Drag files here.")+"</td></tr>")}else{if(j.options.sortable&&g.ui.sortable){j._enableSortingList()}}},_enableRenaming:function(){var i=this;g(".plupload_file_name span",this.filelist).live("click",function(o){var m=g(o.target),k,n,j,l="";k=i.uploader.getFile(m.parents("tr")[0].id);j=k.name;n=/^(.+)(\.[^.]+)$/.exec(j);if(n){j=n[1];l=n[2]}m.hide().after('<input class="plupload_file_rename" type="text" />');m.next().val(j).focus().blur(function(){m.show().next().remove()}).keydown(function(q){var p=g(this);if(g.inArray(q.keyCode,[13,27])!==-1){q.preventDefault();if(q.keyCode===13){k.name=p.val()+l;m.text(k.name)}p.blur()}})})},_enableDragAndDrop:function(){this.filelist.append('<tr><td class="plupload_droptext">'+b("Drag files here.")+"</td></tr>");this.filelist.parent().attr("id",this.id+"_dropbox");this.uploader.settings.drop_element=this.options.drop_element=this.id+"_dropbox"},_enableSortingList:function(){var j,i=this;if(g("tbody tr",this.filelist).length<2){return}g("tbody",this.filelist).sortable({containment:"parent",items:".plupload_delete",helper:function(l,k){return k.clone(true).find("td:not(.plupload_file_name)").remove().end().css("width","100%")},start:function(l,k){j=g("tr",this).index(k.item)},stop:function(q,p){var l,o,k,n=[],m=g("tr",this).index(p.item);for(l=0,o=i.uploader.files.length;l<o;l++){if(l===m){k=j}else{if(l===j){k=m}else{k=l}}n[n.length]=i.uploader.files[k]}n.unshift(n.length);n.unshift(0);Array.prototype.splice.apply(i.uploader.files,n)}})},_notify:function(j,k){var i=g('<div class="plupload_message"><span class="plupload_message_close ui-icon ui-icon-circle-close" title="'+b("Close")+'"></span><p><span class="ui-icon"></span>'+k+"</p></div>");i.addClass("ui-state-"+(j==="error"?"error":"highlight")).find("p .ui-icon").addClass("ui-icon-"+(j==="error"?"alert":"info")).end().find(".plupload_message_close").click(function(){i.remove()}).end().appendTo(".plupload_header_content",this.container)},destroy:function(){g(".plupload_button",this.element).unbind();if(g.ui.button){g(".plupload_add, .plupload_start, .plupload_stop",this.container).button("destroy")}if(g.ui.progressbar){this.progressbar.progressbar("destroy")}if(g.ui.sortable&&this.options.sortable){g("tbody",this.filelist).sortable("destroy")}this.uploader.destroy();this.element.empty().html(this.contents_bak);this.contents_bak="";g.Widget.prototype.destroy.apply(this)}})}(window,document,plupload,jQuery));
|
1
|
+
(function(f,a,c,g,e){var h={};function b(i){return c.translate(i)||i}function d(i){i.html('<div class="plupload_wrapper"><div class="ui-widget-content plupload_container"><div class="plupload"><div class="ui-state-default ui-widget-header plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">'+b("Select files")+'</div><div class="plupload_header_text">'+b("Add files to the upload queue and click the start button.")+'</div></div></div><div class="plupload_content"><table class="plupload_filelist"><tr class="ui-widget-header plupload_filelist_header"><td class="plupload_cell plupload_file_name">'+b("Filename")+'</td><td class="plupload_cell plupload_file_status">'+b("Status")+'</td><td class="plupload_cell plupload_file_size">'+b("Size")+'</td><td class="plupload_cell plupload_file_action"> </td></tr></table><div class="plupload_scroll"><table class="plupload_filelist_content"></table></div><table class="plupload_filelist"><tr class="ui-widget-header ui-widget-content plupload_filelist_footer"><td class="plupload_cell plupload_file_name"><div class="plupload_buttons"><!-- Visible --><a class="plupload_button plupload_add">'+b("Add Files")+'</a> <a class="plupload_button plupload_start">'+b("Start Upload")+'</a> <a class="plupload_button plupload_stop plupload_hidden">'+b("Stop Upload")+'</a> </div><div class="plupload_started plupload_hidden"><!-- Hidden --><div class="plupload_progress plupload_right"><div class="plupload_progress_container"></div></div><div class="plupload_cell plupload_upload_status"></div><div class="plupload_clearer"> </div></div></td><td class="plupload_file_status"><span class="plupload_total_status">0%</span></td><td class="plupload_file_size"><span class="plupload_total_file_size">0 kb</span></td><td class="plupload_file_action"></td></tr></table></div></div></div><input class="plupload_count" value="0" type="hidden"></div>')}g.widget("ui.plupload",{contents_bak:"",runtime:null,options:{browse_button_hover:"ui-state-hover",browse_button_active:"ui-state-active",dragdrop:true,multiple_queues:true,buttons:{browse:true,start:true,stop:true},autostart:false,sortable:false,rename:false,max_file_count:0},FILE_COUNT_ERROR:-9001,_create:function(){var i=this,k,j;k=this.element.attr("id");if(!k){k=c.guid();this.element.attr("id",k)}this.id=k;this.contents_bak=this.element.html();d(this.element);this.container=g(".plupload_container",this.element).attr("id",k+"_container");this.filelist=g(".plupload_filelist_content",this.container).attr({id:k+"_filelist",unselectable:"on"});this.browse_button=g(".plupload_add",this.container).attr("id",k+"_browse");this.start_button=g(".plupload_start",this.container).attr("id",k+"_start");this.stop_button=g(".plupload_stop",this.container).attr("id",k+"_stop");if(g.ui.button){this.browse_button.button({icons:{primary:"ui-icon-circle-plus"}});this.start_button.button({icons:{primary:"ui-icon-circle-arrow-e"},disabled:true});this.stop_button.button({icons:{primary:"ui-icon-circle-close"}})}if(!this.options.buttons.browse){this.browse_button.button("disable").hide();g("#"+k+i.runtime+"_container").hide()}if(!this.options.buttons.start){this.start_button.button("disable").hide()}if(!this.options.buttons.stop){this.stop_button.button("disable").hide()}this.progressbar=g(".plupload_progress_container",this.container);if(g.ui.progressbar){this.progressbar.progressbar()}this.counter=g(".plupload_count",this.element).attr({id:k+"_count",name:k+"_count"});j=this.uploader=h[k]=new c.Uploader(g.extend({container:k,browse_button:k+"_browse"},this.options));j.bind("Init",function(l,m){if(!i.options.unique_names&&i.options.rename){i._enableRenaming()}if(j.features.dragdrop&&i.options.dragdrop){i._enableDragAndDrop()}i.container.attr("title",b("Using runtime: ")+(i.runtime=m.runtime));i.start_button.click(function(n){if(!g(this).button("option","disabled")){i.start()}n.preventDefault()});i.stop_button.click(function(n){j.stop();n.preventDefault()})});if(i.options.max_file_count){j.bind("FilesAdded",function(l,n){var o=[],m=n.length;var p=l.files.length+m-i.options.max_file_count;if(p>0){o=n.splice(m-p,p);l.trigger("Error",{code:i.FILE_COUNT_ERROR,message:b("File count error."),file:o})}})}j.init();j.bind("FilesAdded",function(l,m){i._trigger("selected",null,{up:l,files:m});if(i.options.autostart){i.start()}});j.bind("FilesRemoved",function(l,m){i._trigger("removed",null,{up:l,files:m})});j.bind("QueueChanged",function(){i._updateFileList()});j.bind("StateChanged",function(){i._handleState()});j.bind("UploadFile",function(l,m){i._handleFileStatus(m)});j.bind("FileUploaded",function(l,m){i._handleFileStatus(m);i._trigger("uploaded",null,{up:l,file:m})});j.bind("UploadProgress",function(l,m){g("#"+m.id+" .plupload_file_status",i.element).html(m.percent+"%");i._handleFileStatus(m);i._updateTotalProgress();i._trigger("progress",null,{up:l,file:m})});j.bind("UploadComplete",function(l,m){i._trigger("complete",null,{up:l,files:m})});j.bind("Error",function(l,p){var n=p.file,o,m;if(n){o="<strong>"+p.message+"</strong>";m=p.details;if(m){o+=" <br /><i>"+p.details+"</i>"}else{switch(p.code){case c.FILE_EXTENSION_ERROR:m=b("File: %s").replace("%s",n.name);break;case c.FILE_SIZE_ERROR:m=b("File: %f, size: %s, max file size: %m").replace(/%([fsm])/g,function(r,q){switch(q){case"f":return n.name;case"s":return n.size;case"m":return c.parseSize(i.options.max_file_size)}});break;case i.FILE_COUNT_ERROR:m=b("Upload element accepts only %d file(s) at a time. Extra files were stripped.").replace("%d",i.options.max_file_count);break;case c.IMAGE_FORMAT_ERROR:m=c.translate("Image format either wrong or not supported.");break;case c.IMAGE_MEMORY_ERROR:m=c.translate("Runtime ran out of available memory.");break;case c.IMAGE_DIMENSIONS_ERROR:m=c.translate("Resoultion out of boundaries! <b>%s</b> runtime supports images only up to %wx%hpx.").replace(/%([swh])/g,function(r,q){switch(q){case"s":return l.runtime;case"w":return l.features.maxWidth;case"h":return l.features.maxHeight}});break;case c.HTTP_ERROR:m=b("Upload URL might be wrong or doesn't exist");break}o+=" <br /><i>"+m+"</i>"}i.notify("error",o);i._trigger("error",null,{up:l,file:n,error:o})}})},_setOption:function(j,k){var i=this;if(j=="buttons"&&typeof(k)=="object"){k=g.extend(i.options.buttons,k);if(!k.browse){i.browse_button.button("disable").hide();g("#"+i.id+i.runtime+"_container").hide()}else{i.browse_button.button("enable").show();g("#"+i.id+i.runtime+"_container").show()}if(!k.start){i.start_button.button("disable").hide()}else{i.start_button.button("enable").show()}if(!k.stop){i.stop_button.button("disable").hide()}else{i.start_button.button("enable").show()}}i.uploader.settings[j]=k},start:function(){this.uploader.start();this._trigger("start",null)},stop:function(){this.uploader.stop();this._trigger("stop",null)},getFile:function(j){var i;if(typeof j==="number"){i=this.uploader.files[j]}else{i=this.uploader.getFile(j)}return i},removeFile:function(j){var i=this.getFile(j);if(i){this.uploader.removeFile(i)}},clearQueue:function(){this.uploader.splice()},getUploader:function(){return this.uploader},refresh:function(){this.uploader.refresh()},_handleState:function(){var i=this,j=this.uploader;if(j.state===c.STARTED){g(i.start_button).button("disable");g([]).add(i.stop_button).add(".plupload_started").removeClass("plupload_hidden");g(".plupload_upload_status",i.element).text(b("Uploaded %d/%d files").replace("%d/%d",j.total.uploaded+"/"+j.files.length));g(".plupload_header_content",i.element).addClass("plupload_header_content_bw")}else{g([]).add(i.stop_button).add(".plupload_started").addClass("plupload_hidden");if(i.options.multiple_queues){g(i.start_button).button("enable");g(".plupload_header_content",i.element).removeClass("plupload_header_content_bw")}i._updateFileList()}},_handleFileStatus:function(l){var n,j;switch(l.status){case c.DONE:n="plupload_done";j="ui-icon ui-icon-circle-check";break;case c.FAILED:n="ui-state-error plupload_failed";j="ui-icon ui-icon-alert";break;case c.QUEUED:n="plupload_delete";j="ui-icon ui-icon-circle-minus";break;case c.UPLOADING:n="ui-state-highlight plupload_uploading";j="ui-icon ui-icon-circle-arrow-w";var i=g(".plupload_scroll",this.container),m=i.scrollTop(),o=i.height(),k=g("#"+l.id).position().top+g("#"+l.id).height();if(o<k){i.scrollTop(m+k-o)}break}n+=" ui-state-default plupload_file";g("#"+l.id).attr("class",n).find(".ui-icon").attr("class",j)},_updateTotalProgress:function(){var i=this.uploader;this.progressbar.progressbar("value",i.total.percent);g(".plupload_total_status",this.element).html(i.total.percent+"%");g(".plupload_upload_status",this.element).text(b("Uploaded %d/%d files").replace("%d/%d",i.total.uploaded+"/"+i.files.length))},_updateFileList:function(){var j=this,n=this.uploader,l=this.filelist,k=0,o,m=this.id+"_",i;if(g.ui.sortable&&this.options.sortable){g("tbody",l).sortable("destroy")}l.empty();g.each(n.files,function(q,p){i="";o=m+k;if(p.status===c.DONE){if(p.target_name){i+='<input type="hidden" name="'+o+'_tmpname" value="'+c.xmlEncode(p.target_name)+'" />'}i+='<input type="hidden" name="'+o+'_name" value="'+c.xmlEncode(p.name)+'" />';i+='<input type="hidden" name="'+o+'_status" value="'+(p.status===c.DONE?"done":"failed")+'" />';k++;j.counter.val(k)}l.append('<tr class="ui-state-default plupload_file" id="'+p.id+'"><td class="plupload_cell plupload_file_name"><span>'+p.name+'</span></td><td class="plupload_cell plupload_file_status">'+p.percent+'%</td><td class="plupload_cell plupload_file_size">'+c.formatSize(p.size)+'</td><td class="plupload_cell plupload_file_action"><div class="ui-icon"></div>'+i+"</td></tr>");j._handleFileStatus(p);g("#"+p.id+".plupload_delete .ui-icon, #"+p.id+".plupload_done .ui-icon").click(function(r){g("#"+p.id).remove();n.removeFile(p);r.preventDefault()});j._trigger("updatelist",null,l)});g(".plupload_total_file_size",j.element).html(c.formatSize(n.total.size));if(n.total.queued===0){g(".ui-button-text",j.browse_button).text(b("Add Files"))}else{g(".ui-button-text",j.browse_button).text(b("%d files queued").replace("%d",n.total.queued))}if(n.files.length===(n.total.uploaded+n.total.failed)){j.start_button.button("disable")}else{j.start_button.button("enable")}l[0].scrollTop=l[0].scrollHeight;j._updateTotalProgress();if(!n.files.length&&n.features.dragdrop&&n.settings.dragdrop){g("#"+o+"_filelist").append('<tr><td class="plupload_droptext">'+b("Drag files here.")+"</td></tr>")}else{if(j.options.sortable&&g.ui.sortable){j._enableSortingList()}}},_enableRenaming:function(){var i=this;g(".plupload_file_name span",this.filelist).live("click",function(o){var m=g(o.target),k,n,j,l="";k=i.uploader.getFile(m.parents("tr")[0].id);j=k.name;n=/^(.+)(\.[^.]+)$/.exec(j);if(n){j=n[1];l=n[2]}m.hide().after('<input class="plupload_file_rename" type="text" />');m.next().val(j).focus().blur(function(){m.show().next().remove()}).keydown(function(q){var p=g(this);if(g.inArray(q.keyCode,[13,27])!==-1){q.preventDefault();if(q.keyCode===13){k.name=p.val()+l;m.text(k.name)}p.blur()}})})},_enableDragAndDrop:function(){this.filelist.append('<tr><td class="plupload_droptext">'+b("Drag files here.")+"</td></tr>");this.filelist.parent().attr("id",this.id+"_dropbox");this.uploader.settings.drop_element=this.options.drop_element=this.id+"_dropbox"},_enableSortingList:function(){var j,i=this;if(g("tbody tr",this.filelist).length<2){return}g("tbody",this.filelist).sortable({containment:"parent",items:".plupload_delete",helper:function(l,k){return k.clone(true).find("td:not(.plupload_file_name)").remove().end().css("width","100%")},stop:function(p,o){var l,n,k,m=[];g.each(g(this).sortable("toArray"),function(q,r){m[m.length]=i.uploader.getFile(r)});m.unshift(m.length);m.unshift(0);Array.prototype.splice.apply(i.uploader.files,m)}})},notify:function(j,k){var i=g('<div class="plupload_message"><span class="plupload_message_close ui-icon ui-icon-circle-close" title="'+b("Close")+'"></span><p><span class="ui-icon"></span>'+k+"</p></div>");i.addClass("ui-state-"+(j==="error"?"error":"highlight")).find("p .ui-icon").addClass("ui-icon-"+(j==="error"?"alert":"info")).end().find(".plupload_message_close").click(function(){i.remove()}).end();g(".plupload_header_content",this.container).append(i)},destroy:function(){g(".plupload_button",this.element).unbind();if(g.ui.button){g(".plupload_add, .plupload_start, .plupload_stop",this.container).button("destroy")}if(g.ui.progressbar){this.progressbar.progressbar("destroy")}if(g.ui.sortable&&this.options.sortable){g("tbody",this.filelist).sortable("destroy")}this.uploader.destroy();this.element.empty().html(this.contents_bak);this.contents_bak="";g.Widget.prototype.destroy.apply(this)}})}(window,document,plupload,jQuery));
|