From 7d7b76b2e9f522bae64847d29b5542e64aebf9b8 Mon Sep 17 00:00:00 2001 From: Kamil Date: Mon, 10 Nov 2014 20:18:38 -0500 Subject: [PATCH] adding a fix to handle missing directories in the file browser in webkit browsers --- couchpotato/static/scripts/page/settings.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/static/scripts/page/settings.js b/couchpotato/static/scripts/page/settings.js index b5aae3d..dadfd35 100644 --- a/couchpotato/static/scripts/page/settings.js +++ b/couchpotato/static/scripts/page/settings.js @@ -885,7 +885,10 @@ Option.Directory = new Class({ new Element('li.empty', { 'text': 'Selected folder is empty' }).inject(self.dir_list) - + + //fix for webkit type browsers to refresh the dom for the file browser + //http://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes + self.dir_list.setStyle("webkitTransform", "scale(1)") self.caretAtEnd(); },