File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ if (document.getElementById('userthemeSelection')) {
117
117
//Live Preview
118
118
119
119
if ( document . getElementById ( 'loginpanel_color' ) ) {
120
+
121
+ if ( document . getElementById ( 'form-login_note' ) . value === '' ) { document . getElementById ( 'preview-form-note' ) . style . display = "none" ; } else { document . getElementById ( 'preview-form-note' ) . style . display = "block" ; }
122
+
120
123
document . getElementById ( 'loginpanel_color' ) . oninput = function ( ) {
121
124
document . getElementById ( 'preview-form-login' ) . style . backgroundColor = document . getElementById ( 'loginpanel_color' ) . value ;
122
125
document . getElementById ( 'preview-form-note' ) . style . backgroundColor = document . getElementById ( 'loginpanel_color' ) . value ;
@@ -128,6 +131,7 @@ if (document.getElementById('loginpanel_color')) {
128
131
129
132
document . getElementById ( 'form-login_note' ) . oninput = function ( ) {
130
133
document . getElementById ( 'preview-form-note' ) . innerHTML = document . getElementById ( 'form-login_note' ) . value ;
134
+ if ( document . getElementById ( 'form-login_note' ) . value === '' ) { document . getElementById ( 'preview-form-note' ) . style . display = "none" ; } else { document . getElementById ( 'preview-form-note' ) . style . display = "block" ; }
131
135
}
132
136
133
137
document . getElementById ( 'login_shadow_color' ) . oninput = function ( ) {
You can’t perform that action at this time.
0 commit comments