Commits

davidthornhill  committed 68f3280

add try-catch to bypass tinymce ReferenceError

  • Participants
  • Parent commits b9a34f6

Comments (0)

Files changed (1)

File lfs/static/js/lfs.manage.js

 
     // Generic ajax save button
     $(".ajax-save-button").live("click", function() {
-        tinymce.triggerSave();  
+		try {
+	        tinymce.triggerSave();
+	    }
+	    catch(err) {
+			// ReferenceError due to undefined tinymce
+	    }
         show_ajax_loading();
         var action = $(this).attr("name")
         $(this).parents("form:first").ajaxSubmit({