protected override void OnInit( EventArgs e )
{
base.OnInit( e );
string script = @"
// checkin-group animation
//$('section.checkin-group').click(function () {
// $(this).siblings('div').slideToggle();
// $expanded = $(this).children('input.group-expanded');
// $expanded.val($expanded.val() == 'True' ? 'False' : 'True');
//});
// fix so that the Remove button will fire its event, but not the parent event
$('.checkin-group a.btn-danger').click(function (event) {
event.stopImmediatePropagation();
if ( isDirty() ) {{
return false;
}}
});
// fix so that the Edit Group button will fire its event, but not the parent event
$('.checkin-group a.checkin-group-edit-group').click(function (event) {
event.stopImmediatePropagation();
if ( isDirty() ) {{
return false;
}}
});
// fix so that the Ad Check-in Group button will fire its event, but not the parent event
$('.checkin-group a.checkin-group-add-group').click(function (event) {
event.stopImmediatePropagation();
if ( isDirty() ) {{
return false;
}}
});";
ScriptManager.RegisterStartupScript( this.Page, this.Page.GetType(), "CheckinGroupRow", script, true );
}