summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-29 18:21:31 +0100
committerGitHub <noreply@github.com>2018-11-29 18:21:31 +0100
commit6aefd8389b4eb895319fe5de6f13198d8dc03a46 (patch)
tree4dc25106484d8250eb0af3810b67d7ea4c2ba416 /core/js
parent8abde7702aae10b1ed25409a38efd64f9dc45e81 (diff)
parentac7c7782ff0681e6f192e4f0b9858af753cb7234 (diff)
downloadnextcloud-server-6aefd8389b4eb895319fe5de6f13198d8dc03a46.tar.gz
nextcloud-server-6aefd8389b4eb895319fe5de6f13198d8dc03a46.zip
Merge pull request #12732 from nextcloud/polishing-fixes
Polishing fixes
Diffstat (limited to 'core/js')
-rw-r--r--core/js/oc-dialogs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 3169dab4b88..f1fa2b41c9d 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -242,7 +242,7 @@ var OCdialogs = {
// No grid for IE!
if (OC.Util.isIE()) {
self.$filePicker.find('#picker-view-toggle').remove();
- self.$filePicker.find('#filestable').removeClass('view-grid');
+ self.$filePicker.find('#picker-filestable').removeClass('view-grid');
}
$('body').append(self.$filePicker);
@@ -808,7 +808,7 @@ var OCdialogs = {
_getGridSettings: function() {
var self = this;
$.get(OC.generateUrl('/apps/files/api/v1/showgridview'), function(response) {
- self.$showGridView.checked = response.gridview;
+ self.$showGridView.get(0).checked = response.gridview;
self.$showGridView.next('#picker-view-toggle')
.removeClass('icon-toggle-filelist icon-toggle-pictures')
.addClass(response.gridview ? 'icon-toggle-filelist' : 'icon-toggle-pictures')