Skip to content

Commit b94efc9

Browse files
authored
Revise geting item url
1 parent 3ae9cc6 commit b94efc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ function getUrlParam(paramName) {
448448
return ( match && match.length > 1 ) ? match[1] : null;
449449
}
450450

451-
function use(item) {
451+
function use(items) {
452452
function useTinymce3(url) {
453453
var win = tinyMCEPopup.getWindowArg("window");
454454
win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = url;
@@ -495,7 +495,7 @@ function use(item) {
495495
window.opener.SetUrl(p,w,h);
496496
}
497497

498-
var url = item.url;
498+
var url = items[0].url;
499499
var field_name = getUrlParam('field_name');
500500
var is_ckeditor = getUrlParam('CKEditor');
501501
var is_fcke = typeof data != 'undefined' && data['Properties']['Width'] != '';

0 commit comments

Comments
 (0)