1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-11 08:24:05 +02:00

Refactor getThumbHref return object.

This commit is contained in:
Lars Jung
2015-05-03 21:05:04 +02:00
parent 31fe4d1591
commit 69cc1bd281
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/event', 'core/server', 'core
height: 0 height: 0
}, function (json) { }, function (json) {
callback(json && json.absHref ? json.absHref : null); callback(json && json.href ? json.href : null);
}); });
} }

View File

@@ -21,7 +21,7 @@ modulejs.define('ext/thumbnails', ['_', 'core/event', 'core/server', 'core/setti
height: settings.size height: settings.size
}, function (json) { }, function (json) {
callback(json && json.absHref ? json.absHref : null); callback(json && json.href ? json.href : null);
}); });
} }

View File

@@ -88,7 +88,7 @@ class Api {
$thumb_href = $thumb->thumb($type, $src_href, $width, $height); $thumb_href = $thumb->thumb($type, $src_href, $width, $height);
Util::json_fail(Util::ERR_FAILED, "thumbnail creation failed", $thumb_href === null); 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));
} }