...
|
...
|
@@ -60,10 +60,13 @@ require("../util/jquery-ui.min"); |
|
|
return this;
|
|
|
},
|
|
|
close: function ($img) {
|
|
|
var width = $img.width() || $img[0].width,
|
|
|
height = $img.height() || $img[0].height;
|
|
|
// console.log("close: width=" + width + ",height=" + height);
|
|
|
|
|
|
$img.css({
|
|
|
top: ($img.parent().height() - $img.height()) / 2,
|
|
|
left: ($img.parent().width()-$img.width())/2
|
|
|
top: ($img.parent().height() - height) / 2,
|
|
|
left: ($img.parent().width() - width) / 2
|
|
|
}).prev().on("click",function () {
|
|
|
|
|
|
if ( $(this).parent().remove().hasClass("edui-image-upload-item") ) {
|
...
|
...
|
@@ -395,8 +398,8 @@ require("../util/jquery-ui.min"); |
|
|
$.each(data.data.list[0].pictureBoList, function(i, value) {
|
|
|
var url=value.fileName;
|
|
|
if (url) {
|
|
|
// url+="?imageView/0/w/120/h/90";
|
|
|
$("<img src='" + url + "' class='edui-image-pic' />").on("load", function () {
|
|
|
url+="?imageView2/0/w/120/q/75";
|
|
|
$("<img src='" + url + "' class='edui-image-pic' />").on("load", function () {
|
|
|
|
|
|
var $item = $("<div class='edui-image-item'><div class='edui-image-close'></div></div>").append(this);
|
|
|
|
...
|
...
|
|