﻿function talertInfo(mesaj) {
    toastr.options.timeOut = "5000";
    toastr.options.closeButton = true;
    toastr.options.progressBar = true;
    toastr.options.newestOnTop = true;
    toastr.options.positionClass = 'toast-top-right';
    toastr['info'](mesaj, 'Bilgilendirme');
}
function talertSuccess(mesaj) {
    toastr.options.timeOut = "5000";
    toastr.options.closeButton = true;
    toastr.options.progressBar = true;
    toastr.options.newestOnTop = true;
    toastr.options.positionClass = 'toast-top-right';
    toastr['success'](mesaj, 'Başarılı');
}
function talertWarning(mesaj) {
    toastr.options.timeOut = "5000";
    toastr.options.closeButton = true;
    toastr.options.progressBar = true;
    toastr.options.newestOnTop = true;
    toastr.options.positionClass = 'toast-top-right';
    toastr['warning'](mesaj, 'Uyarı!');
}
function talertDanger(mesaj) {
    toastr.options.timeOut = "5000";
    toastr.options.closeButton = true;
    toastr.options.progressBar = true;
    toastr.options.newestOnTop = true;
    toastr.options.positionClass = 'toast-top-right';
    toastr['error'](mesaj, 'Hata!');
}

//Position: toast-bottom-right,toast-top-right,toast-bottom-left,toast-top-left,toast-top-full-width,toast-bottom-full-width,toast-top-center,toast-bottom-center
function toastAlert(type, position, timeout, title, message) {
    toastr.options.timeOut = timeout;
    toastr.options.extendedTimeOut = timeout;
    toastr.options.closeButton = true;
    toastr.options.progressBar = true;
    toastr.options.newestOnTop = true;
    toastr.options.positionClass = position;
    toastr[type](message, title);
}

function salertInfo(mesaj) {
    Swal.fire({
        title: "Bilgilendirme",
        html: mesaj,
        icon: "info",
        customClass: {
            confirmButton: "btn btn-primary"
        },
        confirmButtonText: "Tamam",
        buttonsStyling: !1
    })
}
function salertSuccess(mesaj) {
    Swal.fire({
        title: "Başarılı",
        html: mesaj,
        icon: "success",
        customClass: {
            confirmButton: "btn btn-primary"
        },
        confirmButtonText: "Tamam",
        buttonsStyling: !1
    })
}
function salertWarning(mesaj) {
    Swal.fire({
        title: "Uyarı!",
        html: mesaj,
        icon: "warning",
        customClass: {
            confirmButton: "btn btn-primary"
        },
        confirmButtonText: "Tamam",
        buttonsStyling: !1
    })
}
function salertDanger(mesaj) {
    Swal.fire({
        title: "Hata!",
        html: mesaj,
        icon: "error",
        customClass: {
            confirmButton: "btn btn-primary"
        },
        confirmButtonText: "Tamam",
        buttonsStyling: !1
    })
}