Loading...
 
Skip to main content

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

Status
Closed
Subject
Leave (Editor)Page Confirmation doesn't work in TW7
Version
7.x
Category
  • Regression
  • Usability
Feature
Edit interface (UI)
Lost edit protection
Resolution status
Invalid
Submitted by
Ushindi Gedeon
Lastmod by
Ushindi Gedeon
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

Workaround
Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3980
Created
Tuesday 23 August, 2011 22:18:14 UTC
by Gustav Graf
LastModif
Thursday 02 July, 2026 10:02:33 UTC


Show PHP error messages