Loading...
 
Skip to main content

Leave (Editor)Page Confirmation doesn't work in TW7

Status
Open
Subject
Leave (Editor)Page Confirmation doesn't work in TW7
Version
7.x
Category
  • Usability
  • Regression
Feature
Lost edit protection
Edit interface (UI)
Resolution status
New
Rating
(0)
Description

1. The "Leave Page"-Confirmation Box does not show up in TW7.

2. Another problem is that the onchange event is not fired when I leave the page with any browser button, e.g. back, F5, etc.

Solution

1.
\lib\smarty_tiki\block.textarea.php line ~346:
\$(\$('#$as_id').attr('form')).find(...
should be:
\$(\$('#$as_id').prop('form')).find(...

The function attr() in jQuery v1.6+ differs from earlier versions, see:
http://api.jquery.com/prop/

2. Just an idea: with JS temporary save the original content of the main edit form on page enter and compare it on page unload

Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Created
Tuesday 23 August, 2011 22:18:14 UTC
by Gustav Graf
LastModif
Tuesday 23 August, 2011 22:18:14 UTC


Show PHP error messages