Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
[Fixed #46] Image NOT Selected on New File Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
w8tcha committed May 30, 2019
1 parent 3bd0859 commit e8b6aa6
Show file tree
Hide file tree
Showing 7 changed files with 744 additions and 649 deletions.
13 changes: 4 additions & 9 deletions DNN 9/Browser/Browser.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
</ul>
</FooterTemplate>
</asp:Repeater>
<asp:HiddenField runat="server" ID="SelectedFile" EnableViewState="True" Value=""/>
<asp:HiddenField runat="server" ID="SelectedFile" EnableViewState="True" ViewStateMode="Enabled"/>
</div>
<wnet:Pager id="PagerFileLinks" runat="server" OnPageChanged="PagerFileLinks_PageChanged"></wnet:Pager>
</td>
Expand Down Expand Up @@ -389,17 +389,12 @@
url: "FileUploader.ashx",
acceptFileTypes: new RegExp('(\.|\/)(' + '<%= this.AcceptFileTypes %>' + ')', 'i'),
maxFileSize: maxFileSize,
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
if (progress == 100) {
__doPostBack('cmdUploadNow', '');
}
},
completed: function (e, data) {
completed: function(e, data) {
if (data.result[0].name != null) {
$('#' + '<%= this.SelectedFile.ClientID %>').val(data.result[0].name);
}
__doPostBack('cmdUploadNow', '');
},
dropZone: $('#dropzone')
}).bind('fileuploadsubmit',
Expand Down
779 changes: 435 additions & 344 deletions DNN 9/Browser/Browser.aspx.cs

Large diffs are not rendered by default.

Loading

0 comments on commit e8b6aa6

Please sign in to comment.