Added ModalDialog class to AccountPlan

This commit is contained in:
Rick Falkvinge
2015-03-17 15:11:11 +01:00
parent a1f1cf921d
commit c41faa8325
2 changed files with 51 additions and 52 deletions
+4 -2
View File
@@ -7,8 +7,10 @@
<%=this.ClientID%>_close();
});
$('#<%=this.ClientID %>_divModalCover').click(function () { // click outside dialog
<%=this.ClientID%>_close();
$('#<%=this.ClientID %>_divModalCover').click (function (e) { // click on cover
if (e.target === this) { // but not inside dialog: trigger only on this element
<%=this.ClientID%>_close();
}
});
});