FSN#47587 mld_note edit zorgt nu ook voor loskoppelen edit-mode bij handmatige frame refresh ('frame opnieuw laden')

svn path=/Website/trunk/; revision=36214
This commit is contained in:
2017-12-05 11:40:40 +00:00
parent ef5c48ffd3
commit 72b17f9efb

View File

@@ -156,6 +156,7 @@ var timestamp_notes = new Date();
var note_key = <%=note_key%>;
$(function () {
$('textarea').autogrow();
// Let op: scrollen is complexer dan je denkt. Ons huidige document heeft
// helemaal geen scrollbars, die zijn van de parent-IFrame!
@@ -163,7 +164,15 @@ var timestamp_notes = new Date();
window.setTimeout(function() { $('#note').focus(); }, 1);
window.setTimeout('parent.scrollBy(0,$(\'#note\').height() + $(\'#note_submit\').height())', 1);
<% } %>
window.noteediting = false;
$(window).on("beforeunload", function(){
if (window.noteediting)
{
FcltMgr.stopEdit(window);
}
});
$("#note").keyup(function ()
{
if (note_key == -1 && $("#note").val() == "" && window.noteediting)