Fix 'File was changed' modal

I haven't seen any issue filed for this, but if you are editing a template in the backend, change the file on disk and then attempt to save the template in the backend, a modal pops up asking if you want to reload the template from disk or overwrite it.

Unfortunately, neither of those options worked. This fix ensures the correct target is used in the JS click handlers so they actually fire.