PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/public/pages_delete.js

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/public/pages_delete.js  >  Download  
File: src/Cabin/Bridge/public/pages_delete.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 1 year ago
Size: 477 bytes
 

Contents

Class file image Download
$(document).ready(function() {
    $("#redirect_box").hide();
    $("#create_redirect").on('change', function() {
        if ($(this).is(':checked')) {
            $("#redirect_box").show(200);
            $("#redirect_to").prop("required", true);
        } else {
            $("#redirect_box").hide(200);
            $("#redirect_to").prop("required", false);
        }
    });
    $("#cancel_btn").click(function() {
        window.location=$(this).data('href');
    });
});