Skip to content

Commit

Permalink
update jquery fileuploader
Browse files Browse the repository at this point in the history
  • Loading branch information
John Laniba committed Aug 30, 2011
1 parent 18c4f0f commit 8cc40df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/jquery.fileUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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();

Expand Down

0 comments on commit 8cc40df

Please sign in to comment.