From 8cc40dfa17a6ab7984a9de8571e1365989775cf1 Mon Sep 17 00:00:00 2001 From: John Laniba Date: Tue, 30 Aug 2011 08:58:31 +0800 Subject: [PATCH] update jquery fileuploader --- js/jquery.fileUploader.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/jquery.fileUploader.js b/js/jquery.fileUploader.js index 3da9340..c6666b3 100644 --- a/js/jquery.fileUploader.js +++ b/js/jquery.fileUploader.js @@ -88,18 +88,21 @@ $(e).wrap('
'); px.form.children('.px-input-button').prepend(''+ config.selectFileLabel +''); + //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();