Commits

Luke Plant  committed f7e2615

Allow 'save and continue editing' for sermons to work when not doing a file upload

  • Participants
  • Parent commits fd08739

Comments (0)

Files changed (1)

File sermons/templates/admin/sermons/sermon/change_form.html

 
        $('input[name="_continue"]').click(function(ev) {
            var fname = $('#id_sermon').val();
+           if (fname == '') {
+               // No file selected - could be editing existing sermon.
+               return;
+           }
            // Get filename component, assuming '/' or '\' might be
            // path separators.
            fname = fname.split('\\').pop().split('/').pop();