MDL-43885 Javascript: Make the [X] button work like 'No'

The [X] button on the dialogue is another form of the 'No' button and
should behave as such.