aboutsummaryrefslogtreecommitdiff
path: root/radicale_web/web/infcloud/interface.js
diff options
context:
space:
mode:
authorUnrud <unrud@openaliasbox.org>2017-04-12 21:35:14 +0200
committerUnrud <unrud@openaliasbox.org>2017-04-12 22:41:18 +0200
commit7a2bb5be65ccbf7bded3864f43ef441c821f98e8 (patch)
tree5b70d49e66a6f2b910b0f4387c5f0f4a2a850256 /radicale_web/web/infcloud/interface.js
parentAdd description and clearify install instructions (diff)
downloadradicaleinfcloud-7a2bb5be65ccbf7bded3864f43ef441c821f98e8.tar.gz
radicaleinfcloud-7a2bb5be65ccbf7bded3864f43ef441c821f98e8.tar.bz2
radicaleinfcloud-7a2bb5be65ccbf7bded3864f43ef441c821f98e8.zip
InfCloud: Update to 0.13.2rc1
Diffstat (limited to 'radicale_web/web/infcloud/interface.js')
-rw-r--r--radicale_web/web/infcloud/interface.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/radicale_web/web/infcloud/interface.js b/radicale_web/web/infcloud/interface.js
index db635e8..e5afb8d 100644
--- a/radicale_web/web/infcloud/interface.js
+++ b/radicale_web/web/infcloud/interface.js
@@ -2803,7 +2803,7 @@ function todoCheckClick(status, percent, calTodo)
var resultTodoObj = getRepeatTodoObject({
rid:calTodo.res_id,
uidTodo:calTodo.id,
- vcalendarHash: hex_sha256(calTodo.vcalendar),
+ vcalendarHash: String(CryptoJS.SHA256(calTodo.vcalendar)),
vcalendarUID: stringUIDcurrent,
recurrenceId: rec_id,
timezoneTODO: calTodo.timeZone,
@@ -5729,29 +5729,29 @@ function processEditorElements(inputEditorRef, processingType, inputIsReadonly,
function loadImage(image)
{
- var canvas = $('#photo');
- var canvasElement = canvas.get(0);
- var imageWidth = image.width;
- var imageHeight = image.height;
- var canvasWidth = canvas.width()*globalContactPhotoScaleFactor;
- var canvasHeight = canvas.height()*globalContactPhotoScaleFactor;
- var clipStartX = 0;
- var clipStartY = 0;
- var clipWidth = imageWidth;
- var clipHeight = imageHeight;
-
- canvasElement.width = canvasWidth;
- canvasElement.height = canvasHeight;
-
- if(imageWidth-canvasWidth < imageHeight-canvasHeight) {
- var clipLength = Math.ceil((imageHeight-imageWidth/canvasWidth*canvasHeight)/2);
- clipStartY = clipLength;
- clipHeight = imageHeight-clipLength*2;
+ var canvas=$('#photo');
+ var canvasElement=canvas.get(0);
+ var imageWidth=image.width;
+ var imageHeight=image.height;
+ var canvasWidth=(globalContactPhotoScaleFactor===null ? image.width : canvas.width()*globalContactPhotoScaleFactor);
+ var canvasHeight=(globalContactPhotoScaleFactor===null ? image.height : canvas.height()*globalContactPhotoScaleFactor);
+ var clipStartX=0;
+ var clipStartY=0;
+ var clipWidth=imageWidth;
+ var clipHeight=imageHeight;
+
+ canvasElement.width=canvasWidth;
+ canvasElement.height=canvasHeight;
+
+ if(imageWidth-canvasWidth<imageHeight-canvasHeight) {
+ var clipLength=Math.ceil((imageHeight-imageWidth/canvasWidth*canvasHeight)/2);
+ clipStartY=clipLength;
+ clipHeight=imageHeight-clipLength*2;
}
else {
- var clipLength = Math.ceil((imageWidth-imageHeight/canvasHeight*canvasWidth)/2);
- clipStartX = clipLength;
- clipWidth = imageWidth-clipLength*2;
+ var clipLength=Math.ceil((imageWidth-imageHeight/canvasHeight*canvasWidth)/2);
+ clipStartX=clipLength;
+ clipWidth=imageWidth-clipLength*2;
}
canvasElement.getContext('2d').drawImage(image, clipStartX, clipStartY, clipWidth, clipHeight, 0, 0, canvasWidth, canvasHeight);
@@ -5778,7 +5778,7 @@ function CardDAVeditor_cleanup(inputLoadEmpty, inputIsCompany)
$('<svg data-type="select_icon"></svg>').css('display', 'none').insertAfter(globalRefVcardEditor.find('select[data-type$="_type"]'));
if($.browser.msie && parseInt($.browser.version, 10)==10) /* IE 10 (because there are no more conditional comments) */
- globalRefVcardEditor.find('[data-type="\\%note"]').find('textarea[data-type="value"]').text('').attr('placeholder',$('[data-type="\\%note"]').find('textarea[data-type="value"]').attr('placeholder'));
+ globalRefVcardEditor.find('[data-type="\\%note"]').find('textarea[data-type="value"]').val('').attr('placeholder',$('[data-type="\\%note"]').find('textarea[data-type="value"]').attr('placeholder'));
}
/*************************** END OF BAD HACKS SECTION ***************************/
bgstack15