mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
refactor(view) fancybox -> fancybox.open: compatibility with fancybox v3
This commit is contained in:
parent
d0a017f6bf
commit
cc29c2a318
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ function show(data, options) {
|
|||
|
||||
if (data) {
|
||||
const element = $(El).append(data);
|
||||
$.fancybox(element, initConfig(Config, options));
|
||||
$.fancybox.open(element, initConfig(Config, options));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ function show(data, options) {
|
|||
/* add margin only for view text documents */
|
||||
El.css('margin', '2%');
|
||||
|
||||
$.fancybox(El.append(element), Config);
|
||||
$.fancybox.open(El.append(element), Config);
|
||||
});
|
||||
|
||||
case 'image':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue