-
-
Save patrickhafner/1055ab3e4346d3881959 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$('.dblclick').click(function(event) { | |
$(document).bind('ajaxSend', function(e, request, options) { | |
$('div#page-edit-container').hide(); | |
// won't work | |
$('form').livequery(function(){ | |
$(this).dirtyForms(); | |
}); | |
}); | |
$.ajax({ | |
url : baseUrl + 'admin/pages/edit/'+$(this).attr('id'), | |
'type' : 'GET', | |
success : function(data) { | |
$('div#page-edit-container').html(data).fadeIn(); | |
$('form').livequery(function(){ | |
$(this).dirtyForms(); | |
}); | |
tinyMCEinit(); | |
} | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ajax call looks fine to me. What happens when you log the forms to the console, is there anything returned?