diff -r d2af8a210f5d -r 8e4fe6f3337d thd/web/js/uc.input.js --- a/thd/web/js/uc.input.js Wed Jun 01 14:07:43 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -uc = uc || {}; -uc.input = uc.input || {}; -uc.input.file = uc.input.file || {}; - -uc.input.file.build = function(selector) { - var jq_field = jQuery(selector); - var jq_input = jQuery('input[type=file]', jq_field); - var jq_radio = jQuery('li.keep input, li.delete input', jq_field); - if (jq_radio.length > 0) jq_input.attr('disabled', 'disabled'); - jQuery('li.replace input', jq_field).focus(function() { - jq_input.removeAttr('disabled'); - }) - jq_radio.focus(function() { - jq_input.attr('disabled', 'disabled'); - }); -} - -jQuery(document).ready(function() { - uc.input.file.build('form .field-type-file'); -}); \ No newline at end of file