[Rt-commit] rt branch, 4.4/logo-color-picker-cursor-url-fix, updated. rt-4.4.3-79-gc263f8c9b
? sunnavy
sunnavy at bestpractical.com
Wed Nov 28 14:05:36 EST 2018
The branch, 4.4/logo-color-picker-cursor-url-fix has been updated
via c263f8c9bc581b147a1a3f388074bbe8bdefd79c (commit)
from 31493715ba5dfe038c5672c7648837e46dad448d (commit)
Summary of changes:
share/html/Admin/Tools/Theme.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit c263f8c9bc581b147a1a3f388074bbe8bdefd79c
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Nov 29 01:37:17 2018 +0800
Fix logo color picker setup for Chrome
The logo color picker setup is bound to the onload event of the logo img
element, but the event won't be fired if the image source is cached on
Chrome. Binding it to window onload instead could fix this cache issue.
diff --git a/share/html/Admin/Tools/Theme.html b/share/html/Admin/Tools/Theme.html
index 82cb5bac0..83bea80fd 100644
--- a/share/html/Admin/Tools/Theme.html
+++ b/share/html/Admin/Tools/Theme.html
@@ -209,8 +209,8 @@ jQuery(function($) {
});
// Setup the canvas color picker
- $("#logo-theme-editor img").load(function() {
- var logo = $(this);
+ $(window).load(function() {
+ var logo = $("#logo-theme-editor img");
var canvas = $("#logo-color-picker");
var el_canvas = canvas.get(0);
-----------------------------------------------------------------------
More information about the rt-commit
mailing list