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