<span id="attachments_fields">
<span>
- <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file' -%>
+ <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
+ :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');" -%>
<label class="inline"><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil, :class => 'description' %></label>
<%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
</span>
description_date_range_interval: Изберете диапазон чрез задаване на начална и крайна дати
description_date_from: Въведете начална дата
description_date_to: Въведете крайна дата
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
error_unable_delete_issue_status: 'Unable to delete issue status'
error_unable_to_connect: "Unable to connect (%{value})"
+ error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
warning_attachments_not_saved: "%{count} file(s) could not be saved."
mail_subject_lost_password: "Your %{value} password"
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
error_workflow_copy_source: 'Veuillez sélectionner un tracker et/ou un rôle source'
error_workflow_copy_target: 'Veuillez sélectionner les trackers et rôles cibles'
error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu être mis à jour.
+ error_attachment_too_big: Ce fichier ne peut pas être attaché car il excède la taille maximale autorisée (%{max_size})
warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu être sauvegardés."
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
description_all_columns: All Columns
button_export: Export
label_export_options: "%{export_format} export options"
+ error_attachment_too_big: This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})
}
}
+function checkFileSize(el, maxSize, message) {
+ var files = el.files;
+ if (files) {
+ for (var i=0; i<files.length; i++) {
+ if (files[i].size > maxSize) {
+ alert(message);
+ el.value = "";
+ }
+ }
+ }
+}
+
function showTab(name) {
var f = $$('div#content .tab-content');
for(var i=0; i<f.length; i++){