Improving the Dialog API
Reversing the buttons order
Merged with master. Fixed conflict issues.
Added support for closing files on middle click
Fix a undefined exception
Removed unnecessary $.extend
Updates to address the review comments
JSHint indentation fixes
Fixes after review
Fixes after review
Changed to use .click instead of .on("click")
Merge with master
Merge pull request #3086 from TomMalbran/tom/dialog-api-improvements

[ARCH] Improving the Dialog API
Merge pull request #3901 from WebsiteDeveloper/Issue-3889

Added support for closing files on middle click