Открыть боковую панель
nt_test133
nt_project_uxpg8lvcuq8w
Коммиты
12903762
Коммит
12903762
создал
Дек 31, 2015
по автору
Robert Speicher
Просмотр файлов
Simplify broadcast message JS
Also resets the default example message when the user input is blank.
владелец
6ae39c2c
Изменения
1
Скрыть пробелы
Построчно
Рядом
app/assets/javascripts/admin.js.coffee
Просмотр файла @
12903762
...
...
@@ -13,15 +13,16 @@ class @Admin
$
(
'.js-toggle-colors-container'
).
toggle
()
$
(
'input#broadcast_message_color'
).
on
'input'
,
->
previewColor
=
$
(
'input#broadcast_message_color'
).
val
()
previewColor
=
$
(
@
).
val
()
$
(
'div.broadcast-message-preview'
).
css
(
'background-color'
,
previewColor
)
$
(
'input#broadcast_message_font'
).
on
'input'
,
->
previewColor
=
$
(
'input#broadcast_message_font'
).
val
()
previewColor
=
$
(
@
).
val
()
$
(
'div.broadcast-message-preview'
).
css
(
'color'
,
previewColor
)
$
(
'textarea#broadcast_message_message'
).
on
'input'
,
->
previewMessage
=
$
(
'textarea#broadcast_message_message'
).
val
()
previewMessage
=
$
(
@
).
val
()
previewMessage
=
"Your message here"
if
previewMessage
.
trim
()
==
''
$
(
'div.broadcast-message-preview span'
).
text
(
previewMessage
)
$
(
'.log-tabs a'
).
click
(
e
)
->
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать