| Summary: | Check-ins full screen mode | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Onno van der Straaten <onno.van.der.straaten> |
| Component: | EPF | Assignee: | Onno van der Straaten <onno.van.der.straaten> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Onno van der Straaten
Save causes "NetworkError: 404 Not Found - http://192.168.1.10:3000/publish.all_epf_practices.base/guidances/supportingmaterials/resources/practices.jpg" Checkin causes formObj is null formObj.action = '/pages/checkin'; undo checkout causes formObj formObj.action = '/pages/undocheckout'; This is the piece of code that is not working. In full screen TinyMCE changes the DOM and then the form cannot be found by this code. So formObj becomes nil and save/checking fails with a Javascript error.
_checkin : function() {
var inst = tinyMCE.selectedInstance;
var ed = this.editor, formObj, os, i, elementId;
formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form');
if (confirm('Save and check-in the current document?')) {
formObj.action = '/pages/checkin';
inst.execCommand('epfwikiSave');
}
return true;
},
|