summaryrefslogtreecommitdiff
path: root/plugins/kolab_files
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-12-17 08:42:44 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-12-17 08:42:44 (GMT)
commit25d67a6ba75d719091dfbee68c1ef9c291d16101 (patch)
treec6ecd248ed2ef53d9e8a570516953c421fa971f3 /plugins/kolab_files
parent9e485d96bfdd491df9c9e0544b610bfe24501ab4 (diff)
downloadroundcubemail-plugins-kolab-25d67a6ba75d719091dfbee68c1ef9c291d16101.tar.gz
Assets_path related fixes (#3182)
Diffstat (limited to 'plugins/kolab_files')
-rw-r--r--plugins/kolab_files/kolab_files.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index b168b73..fc866b1 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -142,7 +142,7 @@ function kolab_files_init()
sort_col: 'name',
sort_reverse: false,
search_threads: rcmail.env.search_threads,
- resources_dir: 'program/resources',
+ resources_dir: rcmail.assets_path('program/resources'),
supported_mimetypes: rcmail.env.file_mimetypes
});
@@ -1938,7 +1938,8 @@ function kolab_files_ui()
// otherwise the form will be posted to a new window
if (document.all) {
var html = '<iframe id="'+frame_name+'" name="'+frame_name+'"'
- + ' src="program/resources/blank.gif" style="width:0;height:0;visibility:hidden;"></iframe>';
+ + ' src="' + rcmail.assets_path('program/resources/blank.gif') + '"'
+ + ' style="width:0;height:0;visibility:hidden;"></iframe>';
document.body.insertAdjacentHTML('BeforeEnd', html);
}
// for standards-compliant browsers