main
Paul Schneider 8 years ago
parent f316ce472d
commit 07d3895e6d
2 changed files with 29 additions and 26 deletions

@ -68,6 +68,14 @@ h6 {
<style> <style>
nav { background: url(@Startup.SiteSetup.Banner) 0% 50% no-repeat; } nav { background: url(@Startup.SiteSetup.Banner) 0% 50% no-repeat; }
</style> </style>
<script>
$(document).ready(function() {
if (typeof allowCircleToBlog !== "undefined") {
$('input.Blogcirle[type=checkbox]').on('change', allowCircleToBlog);
}
});
</script>
@RenderSection("header", required: false) @RenderSection("header", required: false)
</head> </head>
<body> <body>

@ -1,4 +1,3 @@
+(function($) {
var allowCircleToBlog = function(e) { var allowCircleToBlog = function(e) {
var allow = $(this).prop('checked'); var allow = $(this).prop('checked');
var circleid = $(this).data('circle-id'); var circleid = $(this).data('circle-id');
@ -20,8 +19,4 @@
} }
}); });
e.preventDefault(); e.preventDefault();
}; }
$(document).ready(function() {
$('input.Blogcirle[type=checkbox]').on('change', allowCircleToBlog);
});
})(jQuery);
Loading…