IE11 Javascript fix

This commit is contained in:
Karel Pičman 2020-02-14 10:27:54 +01:00
parent 08d0898a6a
commit 52f8819221
2 changed files with 2 additions and 9 deletions

View File

@ -40,7 +40,6 @@
<%= link.external_url %>
<% end %>
</div>
<%= '</span>'.html_safe if @tree_view %>
</td>
<% end %>
<% if DmsfFolder.is_column_on?('extension') %>

View File

@ -247,10 +247,7 @@ function initPlUploader(uploader, formUrl, maxFileSize, maxFileCount, flashUrl)
list.attr('aria-pressed', 'false');
list.removeClass('ui-checkboxradio-radio-label ui-checkboxradio-checked ui-state-active ui-controlgroup-item ui-checkboxradio-label');
list.addClass('ui-button-icon-only ui-state-default ui-corner-left');
list.html(`
<span class="ui-button-text">List</span>
<span class="ui-button-icon-secondary ui-icon ui-icon-grip-dotted-horizontal"></span>
`)
list.html("<span class='ui-button-text'>List</span><span class='ui-button-icon-secondary ui-icon ui-icon-grip-dotted-horizontal'></span>");
list.click(function () {
dmsf_plupload_toggle(list, thumbs);
});
@ -262,10 +259,7 @@ function initPlUploader(uploader, formUrl, maxFileSize, maxFileCount, flashUrl)
thumbs.attr('aria-pressed', 'true');
thumbs.removeClass('ui-checkboxradio-radio-label ui-checkboxradio-checked ui-controlgroup-item ui-checkboxradio-label');
thumbs.addClass('ui-button-icon-only ui-corner-right');
thumbs.html(`
<span class="ui-button-text">Thumbnails</span>
<span class="ui-button-icon-secondary ui-icon ui-icon-image"></span>
`)
thumbs.html("<span class='ui-button-text'>Thumbnails</span><span class='ui-button-icon-secondary ui-icon ui-icon-image'></span>");
thumbs.click(function () {
dmsf_plupload_toggle(thumbs, list);
});