Permalink
Browse files

fix multiple form instance

  • Loading branch information...
johnlanz committed Aug 30, 2011
1 parent ac7e8b6 commit a8e7b27f528b142df802b601aa6d934450e2b6d2
Showing with 6 additions and 6 deletions.
  1. +6 −6 js/jquery.fileUploader.js
View
@@ -88,18 +88,21 @@
$(e).wrap('<div class="px-input-button" />');
px.form.children('.px-input-button').prepend('<span>'+ config.selectFileLabel +'</span>');
+ //move upload and clear button into id px_button
+ px.form.find(config.buttonUpload + ',' + config.buttonClear).appendTo(pxButton);
+
//Transform file input into ui button
- $(".px-input-button").button({
+ px.form.find('.px-input-button').button({
icons: {
primary: "ui-icon-circle-plus"
}
});
- $(config.buttonUpload).button({
+ $(config.buttonUpload, pxButton).button({
icons: {
primary: "ui-icon-arrowthickstop-1-n"
}
});
- $(config.buttonClear).button({
+ $(config.buttonClear, pxButton).button({
icons: {
primary: "ui-icon-circle-close"
}
@@ -108,9 +111,6 @@
//clear all form data
px.clearFormData(px.form);
- //move upload and clear button into id px_button
- px.form.find(config.buttonUpload + ',' + config.buttonClear).appendTo(pxButton);
-
px.form.hide();
this.printForm();

0 comments on commit a8e7b27

Please sign in to comment.