PHP Classes

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

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Cabin/Bridge/public/blog_categories.js   Download  
File: src/Cabin/Bridge/public/blog_categories.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: Merge remote-tracking branch 'origin/master'
Date: 6 years ago
Size: 588 bytes
 

Contents

Class file image Download
function toggleSlugCheckbox() { if ($("#blog_category_slug").val() !== originalSlug) { $("#blog_category_slug_checkbox_wrapper").show(); } else { $("#blog_category_slug_checkbox_wrapper").hide(); } } var originalSlug = ''; $(document).ready(function() { $("#parent").children("option").each(function () { $(this).html($(this).data('fullpath')); }); var slug_el = $("#blog_category_slug"); originalSlug = slug_el.data('original'); slug_el.on('change', function() { toggleSlugCheckbox(); }); toggleSlugCheckbox(); });