Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Account for canceling prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Jan 30, 2015
1 parent e812847 commit 2c51bd2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions admin/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,11 @@ function toggle_panel() {
// XXX: This really should be a backbone view, but we need to turn showtoolbox()
// into a view for that first
function globalNotification(){
var msg = prompt('Enter notification message here:').trim();
send([DEF.NOTIFICATION, msg]);
var msg = prompt('Enter notification message here:');
// Canceled
if (!msg)
return;
send([DEF.NOTIFICATION, msg.trim()]);
}

// Togglle mnemonic display
Expand Down

0 comments on commit 2c51bd2

Please sign in to comment.