diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php index 37c0bfc6744..5afdab071a1 100644 --- a/htdocs/core/js/lib_head.js.php +++ b/htdocs/core/js/lib_head.js.php @@ -1048,9 +1048,11 @@ function document_preview(file, type, title) optionsbuttons = {} if (mode == 'image' && showOriginalSizeButton) - { + { + var curRot = 0; optionsbuttons = { "transnoentitiesnoconv("OriginalSize")); ?>": function() { console.log("Click on original size"); jQuery(".ui-dialog-content.ui-widget-content > object").css({ "max-height": "none" }); }, + "transnoentitiesnoconv("RotateImage")); ?>": function() { curRot += 90; jQuery(".ui-dialog-content.ui-widget-content > object").css("transform","rotate(" + curRot + "deg)"); }, "transnoentitiesnoconv("CloseWindow")); ?>": function() { $( this ).dialog( "close" ); } }; } diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 70e9e6e46c3..380f654f462 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -556,6 +556,7 @@ Unknown=Unknown General=General Size=Size OriginalSize=Original size +RotateImage=Rotate 90° Received=Received Paid=Paid Topic=Subject diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang index ae82ee55924..cda7dbf6789 100644 --- a/htdocs/langs/fr_FR/main.lang +++ b/htdocs/langs/fr_FR/main.lang @@ -555,6 +555,7 @@ Unknown=Inconnu General=Général Size=Taille OriginalSize=Taille d'origine +RotateImage=Rotation 90° Received=Reçu Paid=Payé Topic=Sujet