HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/thegarder/admin/js/
Upload File :
Current File : /home/islapiiu/sites/thegarder/admin/js/scripts.js
$(document).ready(function () {

    setTimeout(function () {
        $("#message-bar-php").fadeOut("slow", function () {
            $('#message-bar').empty();
        });
    }, 3000);

    $('.img-delete').click(function (e) {
        var r = confirm("Are you really want delete this picture?....");
        if (r) {
            window.location.replace("delete-rooms-photos-get.php?img=" + this.id);
        }
    });


    $('.img-delete-main-gallery').click(function (e) {
        var r = confirm("Are you really want delete this picture?....");
        if (r) {
            window.location.replace("delete-photos-get_main.php?img=" + this.id);
        }
    });

    $('.img-delete-main-slider').click(function (e) {
        var r = confirm("Are you really want delete this picture?....");
        if (r) {
            window.location.replace("delete-photos-main-slider.php?img=" + this.id);
        }
    });

    $('.delete-excursion').click(function (e) {
        var r = confirm("Are you really want delete this excursion?....");
        if (r) {
            window.location.replace("delete-excursion.php?img=" + this.id);
        }
    });


});

function showLoadingBar() {
    var $modal = $('.js-loading-bar'), $bar = $modal.find('.progress-bar');
    $modal.modal('show');
    $bar.addClass('animate');
}

function hideLoadingBar() {
    var $modal = $('.js-loading-bar'), $bar = $modal.find('.progress-bar');
    $bar.removeClass('animate');
    $modal.modal('hide');
}