In case the ajax take a while to load the dialog and user double clicking the button, two identical dialog will popup on the screen. I want to prevent it from happening. 

```
$("#ShowUpCallTag").on('click', function (e) {
        $.ajax({
            url: '/Ship/CallTags/Dialog/' + $(e.target).data('calltagid'),
            type: 'get',
            datatype: 'json'
        }).done(function (data) {
            var dialog = main.ship.calltags.dialog.buildDialog(data);
            dialog.open();
        });
    });

```