bill
This commit is contained in:
parent
08606c106b
commit
a120dae977
144 changed files with 10574 additions and 1527 deletions
|
|
@ -13,23 +13,23 @@
|
|||
data: JSON.stringify(auth),
|
||||
contentType: "application/json;charset=utf-8",
|
||||
success: function(data) {
|
||||
console.log('auth ' + allow ? 'POSTed' : 'DELETEd' + ' Successfully');
|
||||
console.log('auth ' + allow ? 'POSTED' : 'DELETED' + data);
|
||||
},
|
||||
error: function() {
|
||||
console.log('auth not ' + allow ? 'POSTed' : 'DELETEd');
|
||||
console.log('Error @' + allow ? 'POSTed' : 'DELETEd');
|
||||
}
|
||||
});
|
||||
e.preventDefault();
|
||||
};
|
||||
$(document).ready(function() {
|
||||
$('input.Blogcirle[type=checkbox]').on('change', allowCircleToBlog);
|
||||
});
|
||||
|
||||
var notifClick = function(nid) {
|
||||
function notifClick(nid) {
|
||||
if (nid > 0) {
|
||||
$.get('/api/dimiss/click/' + nid).done(function() {})
|
||||
.fail(function() {})
|
||||
.always(function() {});
|
||||
}
|
||||
};
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$('input.Blogcirle[type=checkbox]').on('change', allowCircleToBlog);
|
||||
});
|
||||
})(jQuery);
|
||||
2
Yavsc/wwwroot/js/site.min.js
vendored
2
Yavsc/wwwroot/js/site.min.js
vendored
|
|
@ -1 +1 @@
|
|||
+function(e){var o=function(o){var t=e(this).prop("checked"),c=e(this).data("circle-id"),n=e(this).data("target-id"),a={CircleId:c,BlogPostId:n},i="/api/blogacl";t||(i+="/"+c),console.log(a),e.ajax({url:i,type:t?"POST":"DELETE",data:JSON.stringify(a),contentType:"application/json;charset=utf-8",success:function(e){console.log("POSTed")},error:function(){console.log("POSTed")}}),o.preventDefault()};e(document).ready(function(){e("input.Blogcirle[type=checkbox]").on("change",o)})}(jQuery);
|
||||
function notifClick(n){n>0&&$.get("/api/dimiss/click/"+n).done(function(){}).fail(function(){}).always(function(){})}+function(n){var o=function(o){var t=n(this).prop("checked"),c=n(this).data("circle-id"),i=n(this).data("target-id"),e={CircleId:c,BlogPostId:i},a="/api/blogacl";t||(a+="/"+c),console.log(e),n.ajax({url:a,type:t?"POST":"DELETE",data:JSON.stringify(e),contentType:"application/json;charset=utf-8",success:function(n){console.log("POSTed")},error:function(){console.log("POSTed")}}),o.preventDefault()};n(document).ready(function(){n("input.Blogcirle[type=checkbox]").on("change",o)})}(jQuery);
|
||||
Loading…
Add table
Add a link
Reference in a new issue