open_specified_dialog() code simplification

This PR remove a redundant call to .dialog('open') by appending the call to closeOnClickOutside() to the first call:

```ruby
  $("#" + name + "_dialog").dialog('open').closeOnClickOutside();
  $("#" + name + "_dialog").scrollTop(0);   
```