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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user