This commit is contained in:
Paul Schneider 2017-10-22 19:16:14 +02:00
commit 16f326c44f
2 changed files with 29 additions and 26 deletions

View file

@ -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>

View file

@ -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);