Skip to content

Commit 3068c12

Browse files
committed
removed unnecessary code
1 parent d9a843e commit 3068c12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ function updateProperties(element) {
4141
properties.append('<h2>' + element.html().replace(/\s*<i.*<\/i>/gi, '') + '</h2 > ')
4242
properties.append('<p id="description">' + element.attr('data-description') + '</p>')
4343

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">')
4646

4747
$('#input-fg').click(function () {
4848
dialog_color.dialog('option', 'title', 'Foreground Color')
@@ -60,7 +60,6 @@ function updateProperties(element) {
6060
$(this).val('0, 0, 0')
6161
}
6262
$(this).css('border-left-color', 'rgb(' + $(this).val() + ')')
63-
$(this).attr('data-fg-color', $(this).val())
6463
})
6564

6665
$('#input-bg').change(function () {
@@ -69,7 +68,6 @@ function updateProperties(element) {
6968
$(this).val('0, 0, 0')
7069
}
7170
$(this).css('border-left-color', 'rgb(' + $(this).val() + ')')
72-
$(this).attr('data-bg-color', $(this).val())
7371
})
7472

7573
if (element.attr('data-fg-color')) {

0 commit comments

Comments
 (0)