mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Refactor getThumbHref return object.
This commit is contained in:
parent
31fe4d1591
commit
69cc1bd281
3 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/event', 'core/server', 'core
|
|||
height: 0
|
||||
}, function (json) {
|
||||
|
||||
callback(json && json.absHref ? json.absHref : null);
|
||||
callback(json && json.href ? json.href : null);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ modulejs.define('ext/thumbnails', ['_', 'core/event', 'core/server', 'core/setti
|
|||
height: settings.size
|
||||
}, function (json) {
|
||||
|
||||
callback(json && json.absHref ? json.absHref : null);
|
||||
callback(json && json.href ? json.href : null);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ class Api {
|
|||
$thumb_href = $thumb->thumb($type, $src_href, $width, $height);
|
||||
Util::json_fail(Util::ERR_FAILED, "thumbnail creation failed", $thumb_href === null);
|
||||
|
||||
Util::json_exit(array("absHref" => $thumb_href));
|
||||
Util::json_exit(array("href" => $thumb_href));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue