File "user-dashboard.min.js"

Path: /ThinkIB/chem/js/user/user-dashboardminjs
File size: 797 bytes
MIME-type: text/plain
Charset: utf-8

 
Open Back
function toggleNotifyTeacher(sendNotification){var data={ticket:userTicket,send:sendNotification?1:0};$.post("/pages/user/user-dashboards.php?action=notify-teacher",data,(function(response){if(1==response.success)$("#toggle-notify-teacher").prop("checked",sendNotification),$("#notification-msg").html(['<div class="alert alert-success" style="margin-bottom: 10px; margin-top: 10px;">','<i class="fa fa-check-circle-o"></i> <strong>Changes successfully saved</strong>',"</div>"].join("")).show("fast").delay(4e3).hide("slow");else{var msg=response.msg?response.msg:"Unknown problem. Contact support";alert(msg)}}),"json")}$(document).ready((function(){$("#toggle-notify-teacher").change((function(e){e.preventDefault(),toggleNotifyTeacher(this.checked),$(this).prop("checked",!this.checked)}))}));