|
|
@ -69,7 +69,7 @@ |
|
|
|
var iHeight = $("<input type='hidden'/>"); |
|
|
|
var iHeight = $("<input type='hidden'/>"); |
|
|
|
var iWidth = $("<input type='hidden'/>"); |
|
|
|
var iWidth = $("<input type='hidden'/>"); |
|
|
|
var iTitle = $("<input type='hidden'/>"); |
|
|
|
var iTitle = $("<input type='hidden'/>"); |
|
|
|
|
|
|
|
var iThumbnailUrl = $("<input type='hidden'/>"); |
|
|
|
// We use titleNoFormatting so that no HTML tags are left in the |
|
|
|
// We use titleNoFormatting so that no HTML tags are left in the |
|
|
|
// title |
|
|
|
// title |
|
|
|
//title.innerHTML = result.title; |
|
|
|
//title.innerHTML = result.title; |
|
|
@ -96,12 +96,14 @@ |
|
|
|
iHeight.attr("value", result.height); |
|
|
|
iHeight.attr("value", result.height); |
|
|
|
iWidth.attr("value", result.width); |
|
|
|
iWidth.attr("value", result.width); |
|
|
|
iTitle.attr("value",result.title); |
|
|
|
iTitle.attr("value",result.title); |
|
|
|
|
|
|
|
iThumbnailUrl.attr("value",newImg.src); |
|
|
|
//imgContainer.append($(title)); |
|
|
|
//imgContainer.append($(title)); |
|
|
|
imgContainer.append(iUrl); |
|
|
|
imgContainer.append(iUrl); |
|
|
|
imgContainer.append(iContent); |
|
|
|
imgContainer.append(iContent); |
|
|
|
imgContainer.append(iHeight); |
|
|
|
imgContainer.append(iHeight); |
|
|
|
imgContainer.append(iWidth); |
|
|
|
imgContainer.append(iWidth); |
|
|
|
imgContainer.append(iTitle); |
|
|
|
imgContainer.append(iTitle); |
|
|
|
|
|
|
|
imgContainer.append(iThumbnailUrl); |
|
|
|
|
|
|
|
|
|
|
|
// Put our title + image in the content |
|
|
|
// Put our title + image in the content |
|
|
|
imgContainer.appendTo(contentDiv); |
|
|
|
imgContainer.appendTo(contentDiv); |
|
|
@ -252,6 +254,8 @@ |
|
|
|
parent.find("input:hidden").eq(3).val() + |
|
|
|
parent.find("input:hidden").eq(3).val() + |
|
|
|
"</value></data><data><key>Title</key><value>" + |
|
|
|
"</value></data><data><key>Title</key><value>" + |
|
|
|
parent.find("input:hidden").eq(4).val() + |
|
|
|
parent.find("input:hidden").eq(4).val() + |
|
|
|
|
|
|
|
"</value></data><data><key>thumbnailUrl</key><value>" + |
|
|
|
|
|
|
|
parent.find("input:hidden").eq(5).val() + |
|
|
|
"</value></data></metadata>"; |
|
|
|
"</value></data></metadata>"; |
|
|
|
return meta; |
|
|
|
return meta; |
|
|
|
} |
|
|
|
} |
|
|
|