Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't update [input type=file] if a class of "file-input-override" ex…

…ists.
  • Loading branch information...
commit 4c66f0bc24ee9f1618298533c01157058b72034a 1 parent 6f1d50d
@jlubean jlubean authored
Showing with 12 additions and 9 deletions.
  1. +12 −9 build/scripts/ixf-utilities.js
View
21 build/scripts/ixf-utilities.js
@@ -436,16 +436,19 @@ ixf.setupGeneral = function(container){ // run all the small one liners and simp
elem.click();
return false;
});
- elem
- .wrap(wrapper)
- .addClass("ixf-file")
- .bind("change.file",function(){
- fakefile.val($(this).val());
+ //If'n we don't want to use IxF files
+ if (!$(this).hasClass('file-input-override')) {
+ elem
+ .wrap(wrapper)
+ .addClass("ixf-file")
+ .bind("change.file",function(){
+ fakefile.val($(this).val());
+ });
+ elem.after(fakebrowse).after(fakefile);
+ fakefile.bind("select",function(){
+ elem.trigger("select");
});
- elem.after(fakebrowse).after(fakefile);
- fakefile.bind("select",function(){
- elem.trigger("select");
- });
+ }
});
// INITIALIZE PERCENTAGE BARS
$(".ixf-percentage",container).each(function(){
Please sign in to comment.
Something went wrong with that request. Please try again.