1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

[image] use thumbnail for magnificPopups, file_view page & shared_file_view page

This commit is contained in:
llj
2017-04-18 17:28:29 +08:00
parent 4522201366
commit 2a8e40c3c0
13 changed files with 92 additions and 22 deletions

View File

@@ -144,10 +144,14 @@ define([
case 'group_discussions': return siteRoot + 'api2/groups/' + options.group_id + '/discussions/';
case 'group_discussion': return siteRoot + 'api2/groups/' + options.group_id + '/discussions/' + options.discussion_id + '/';
// Misc
// thumbnail
case 'thumbnail_create': return siteRoot + 'thumbnail/' + options.repo_id + '/create/';
case 'get_popup_notices': return siteRoot + 'ajax/get_popup_notices/';
case 'thumbnail_get': return siteRoot + 'thumbnail/' + options.repo_id + '/' + options.size + options.path;
// Misc
case 'view_raw_file': return siteRoot + 'repo/' + options.repo_id + '/raw' + options.path;
case 'get_popup_notices': return siteRoot + 'ajax/get_popup_notices/';
case 'notifications': return siteRoot + 'api/v2.1/notifications/';
case 'notification': return siteRoot + 'api/v2.1/notification/';
case 'user_enabled_modules': return siteRoot + 'api/v2.1/user-enabled-modules/';