Skip to content

Commit 4d0f58b

Browse files
committed
Fix #1878: Correct rotated images behavior in zoom modal dialog
1 parent 7aa293b commit 4d0f58b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change Log: `bootstrap-fileinput`
55

66
**Date**: _under development_
77

8+
- (enh #1878): Correct rotated images behavior in zoom modal dialog.
89
- (enh #1876): Correct variable initialization for folder drag & drop.
910
- (enh #1875): Correct locale language fallback if unspecified.
1011
- (enh #1872): Update Estonian Translations.

js/fileinput.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,6 +3296,9 @@
32963296
if (e.namespace !== "bs.modal") {
32973297
return;
32983298
}
3299+
if (event == "hide") {
3300+
$modal.data('angle', 0);
3301+
}
32993302
var $btnFull = $modal.find(".btn-fullscreen"),
33003303
$btnBord = $modal.find(".btn-borderless");
33013304
if ($modal.data("fileinputPluginId") === self.$element.attr("id")) {

js/fileinput.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)