File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ function updateProperties(element) {
41
41
properties . append ( '<h2>' + element . html ( ) . replace ( / \s * < i .* < \/ i > / gi, '' ) + '</h2 > ' )
42
42
properties . append ( '<p id="description">' + element . attr ( 'data-description' ) + '</p>' )
43
43
44
- properties . append ( '<label for="input-fg">FG Color</label><input id="input-fg"></input> ' )
45
- properties . append ( '<label for="input-bg">BG Color</label><input id="input-bg"></input> ' )
44
+ properties . append ( '<label for="input-fg">FG Color</label><input id="input-fg">' )
45
+ properties . append ( '<label for="input-bg">BG Color</label><input id="input-bg">' )
46
46
47
47
$ ( '#input-fg' ) . click ( function ( ) {
48
48
dialog_color . dialog ( 'option' , 'title' , 'Foreground Color' )
@@ -60,7 +60,6 @@ function updateProperties(element) {
60
60
$ ( this ) . val ( '0, 0, 0' )
61
61
}
62
62
$ ( this ) . css ( 'border-left-color' , 'rgb(' + $ ( this ) . val ( ) + ')' )
63
- $ ( this ) . attr ( 'data-fg-color' , $ ( this ) . val ( ) )
64
63
} )
65
64
66
65
$ ( '#input-bg' ) . change ( function ( ) {
@@ -69,7 +68,6 @@ function updateProperties(element) {
69
68
$ ( this ) . val ( '0, 0, 0' )
70
69
}
71
70
$ ( this ) . css ( 'border-left-color' , 'rgb(' + $ ( this ) . val ( ) + ')' )
72
- $ ( this ) . attr ( 'data-bg-color' , $ ( this ) . val ( ) )
73
71
} )
74
72
75
73
if ( element . attr ( 'data-fg-color' ) ) {
You can’t perform that action at this time.
0 commit comments