From 6a1cf9ff3e82a2221b15167156f36d26f151d6aa Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 3 Nov 2013 10:31:17 +0000 Subject: [PATCH] --- Site5/Controls/v5/Base/FileUpload.ascx | 26 +++++++++---------- .../Pages/v5/Financial/FileExpenseClaim.aspx | 2 +- Site5/Style/style-v5.css | 4 +-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Site5/Controls/v5/Base/FileUpload.ascx b/Site5/Controls/v5/Base/FileUpload.ascx index a51f2de3..67325572 100644 --- a/Site5/Controls/v5/Base/FileUpload.ascx +++ b/Site5/Controls/v5/Base/FileUpload.ascx @@ -12,49 +12,49 @@ $(document).ready(function() { - $('#ButtonUploadHidden').fileupload({ + $('#<%=this.ClientID %>_ButtonUploadHidden').fileupload({ url: '/Automation/UploadFileHandler.ashx?Guid=<%= GuidString %>', dataType: 'json', done: function(e, data) { $.each(data.result, function(index, file) { if (file.error == null || file.error.length < 1) { - $('#DivUploadCount').append(imageUploadSuccess); + $('#<%=this.ClientID %>_DivUploadCount').append(imageUploadSuccess); } else { - $('#DivUploadCount').append(imageUploadFail); // Assume ERR_NOT_IMAGE + $('#<%=this.ClientID %>_DivUploadCount').append(imageUploadFail); // Assume ERR_NOT_IMAGE alertify.error('File "' + file.name + '" could not be uploaded. Is it really an image?'); } }); - $('#DivProgressUpload').progressbar({ value: 100 }); - $('#DivProgressUpload').fadeOut('400', function() { $('#DivUploadCount').fadeIn(); }); + $('#<%=this.ClientID %>_DivProgressUpload').progressbar({ value: 100 }); + $('#<%=this.ClientID %>_DivProgressUpload').fadeOut('400', function () { $('#<%=this.ClientID %>_DivUploadCount').fadeIn(); }); }, progressall: function(e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); - $("#DivProgressUpload .progressbar-value").animate( + $("#<%=this.ClientID %>_DivProgressUpload .progressbar-value").animate( { width: progress + "%" }, { queue: false }); }, add: function(e, data) { - $('#DivUploadCount').css('display', 'none'); - $('#DivProgressUpload').progressbar({ value: 0 }); // reset in case of previous uploads on this page - $('#DivProgressUpload').fadeIn(); + $('#<%=this.ClientID %>_DivUploadCount').css('display', 'none'); + $('#<%=this.ClientID %>_DivProgressUpload').progressbar({ value: 0 }); // reset in case of previous uploads on this page + $('#<%=this.ClientID %>_DivProgressUpload').fadeIn(); data.submit(); } }); - $('#ButtonUploadVisible').bind("click", function() { - $('#ButtonUploadHidden').click(); + $('#<%=this.ClientID %>_ButtonUploadVisible').bind("click", function () { + $('#<%=this.ClientID %>_ButtonUploadHidden').click(); }); - $('#DivProgressUpload').progressbar({ value: 0, max: 100 }); + $('#<%=this.ClientID %>_DivProgressUpload').progressbar({ value: 0, max: 100 }); }); -
 
+
 
diff --git a/Site5/Pages/v5/Financial/FileExpenseClaim.aspx b/Site5/Pages/v5/Financial/FileExpenseClaim.aspx index 4193a945..b14a18e0 100644 --- a/Site5/Pages/v5/Financial/FileExpenseClaim.aspx +++ b/Site5/Pages/v5/Financial/FileExpenseClaim.aspx @@ -127,7 +127,7 @@  
 
 
- +