live -> on

This commit is contained in:
Jörn Friedrich Dreyer 2013-08-22 16:48:48 +02:00 committed by Tobias Hintze
parent d8aa4db390
commit e03cfb068c

View File

@ -175,10 +175,11 @@ $(document).ready(function() {
officeMain.startSession($(this).attr('data-file'));
}
});
$('#odf_close').live('click', officeMain.onClose);
$('#odf_invite').live('click', officeMain.onInvite);
$('#invite-send').live('click', officeMain.sendInvite);
$('#invitee-list li').live('click', function(){
$('#content').on('click', '#odf_close', officeMain.onClose);
$('#content').on('click', '#odf_invite', officeMain.onInvite);
$('#content').on('click', '#invite-send', officeMain.sendInvite);
$('#content').on('click', '#invitee-list li', function(){
$(this).remove();
});