mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-11 16:34:01 +02:00
Refactor getThumbHref return object.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user