-
Notifications
You must be signed in to change notification settings - Fork 3
/
script.js
14 lines (13 loc) · 640 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$(function() {
// TODO: Seperate backend backend from frontend scripts
// Manage field dependencies (Field edit form)
// TODO: This definition is just a temporary solution. We should define it inside the editor.php (Attributes on bunch control items currently not working)
// https://github.com/juek/CustomSections/issues/19
$(document).on("CustomSection:bunchControlLoaded", function(){
var $formWrapper = $('#gp_admin_boxc:first');
// Subvalues Field
if($formWrapper.find("textarea[id*='options']")){
$formWrapper.find("textarea[id*='options']").parents(".editor-ctl-box:first").hide();
}
});
});