##// END OF EJS Templates
svn-support: Add js on click handler to trigger Apache config genreation....
Martin Bornhold -
r1014:86a8d5c9 default
parent child Browse files
Show More
@@ -50,5 +50,17 b''
50 if ($('.locked_input').children().hasClass('error-message')) {
50 if ($('.locked_input').children().hasClass('error-message')) {
51 unlockpath();
51 unlockpath();
52 }
52 }
53 })
53
54 /* On click handler for the `Generate Apache Config` button. It sends a
55 POST request to trigger the (re)generation of the mod_dav_svn config. */
56 $('#vcs_svn_generate_cfg').on('click', function(event) {
57 event.preventDefault();
58 var url = "${h.route_path('admin_settings_vcs_svn_generate_cfg')}";
59 var jqxhr = $.post(url, {'csrf_token': CSRF_TOKEN});
60 jqxhr.done(function(data) {
61 $.Topic('/notifications').publish(data);
62 });
63 });
64
65 });
54 </script>
66 </script>
General Comments 0
You need to be logged in to leave comments. Login now