remove last remnants of rotate instead of transform, updated rot* svgs to have arrow point in direction of actual rotation, AND, fixed bug where when we rotate an image that has already had an exif_transform on it, then we have to do that and then the requested rotation - fixes why sometimes we rotate say 180 when we intended a 90 rotate. Also, when we transform, recalc md5 as file has changed
This commit is contained in:
@@ -317,7 +317,7 @@ $.contextMenu({
|
||||
}
|
||||
if( e.currentTarget.getAttribute('type') == 'Image' )
|
||||
{
|
||||
item_list['rotate'] = {
|
||||
item_list['transform'] = {
|
||||
name: "Transform",
|
||||
items: {
|
||||
"r90": { "name" : "Rotate 90 degrees" },
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
s+='<input type="hidden" name="folders" value="{{OPT.folders}}">'
|
||||
s+='<input type="hidden" name="how_many" value="{{OPT.how_many}}">'
|
||||
s+='<input type="hidden" name="orig_url" value="{{OPT.orig_url}}">'
|
||||
s+='<input type="hidden" name="fullscreen" value="' + fullscreen + '">'
|
||||
s+='<input type="hidden" name="' + dir + '" value="1">'
|
||||
{% if search_term is defined %}
|
||||
s+='<input type="hidden" name="search_term" value="{{search_term}}">'
|
||||
@@ -271,10 +272,13 @@ $( document ).keydown(function(event) {
|
||||
}
|
||||
});
|
||||
|
||||
console.log('here in viewer: fs = {{OPT.fullscreen}}')
|
||||
var fullscreen=false;
|
||||
{% if OPT.fullscreen=='true' %}
|
||||
console.log('fs is set')
|
||||
fullscreen=true;
|
||||
ViewImageOrVideo()
|
||||
console.log('have called view image, etc.')
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endblock script_content %}
|
||||
|
||||
Reference in New Issue
Block a user