esc cancels topic and synapse creation now
This commit is contained in:
parent
6129a27ecf
commit
26bf7571c7
1 changed files with 8 additions and 1 deletions
|
@ -140,7 +140,13 @@ const Create = {
|
|||
},
|
||||
newTopic: {
|
||||
init: function() {
|
||||
$('#topic_name').keyup(function() {
|
||||
$('#topic_name').keyup(function(e) {
|
||||
const ESC = 27
|
||||
|
||||
if (e.keyCode === ESC) {
|
||||
Create.newTopic.hide()
|
||||
} // if
|
||||
|
||||
Create.newTopic.name = $(this).val()
|
||||
})
|
||||
|
||||
|
@ -308,6 +314,7 @@ const Create = {
|
|||
e.keyCode === ESC) {
|
||||
Create.newSynapse.hide()
|
||||
} // if
|
||||
|
||||
Create.newSynapse.description = $(this).val()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue