Lines 70-76
function setHiddenValue() {
Link Here
|
70 |
hidden_value='8'; |
70 |
hidden_value='8'; |
71 |
} |
71 |
} |
72 |
|
72 |
|
73 |
enable_cb(tab); |
73 |
var hidden_protected = $('#hidden-'+ tab).attr('data-koha-protected'); |
|
|
74 |
if ( hidden_protected != 1 ) { |
75 |
enable_cb(tab); |
76 |
} |
74 |
|
77 |
|
75 |
$('#hidden-' + tab).val(hidden_value); |
78 |
$('#hidden-' + tab).val(hidden_value); |
76 |
|
79 |
|
Lines 79-84
function setHiddenValue() {
Link Here
|
79 |
function populateHiddenCheckboxes(tab) { |
82 |
function populateHiddenCheckboxes(tab) { |
80 |
// read the serialized value |
83 |
// read the serialized value |
81 |
var hidden_value = $('#hidden-' + tab).val(); |
84 |
var hidden_value = $('#hidden-' + tab).val(); |
|
|
85 |
var hidden_protected = $('#hidden-'+ tab).attr('data-koha-protected'); |
82 |
// deafult to false |
86 |
// deafult to false |
83 |
var opac_checked = false; |
87 |
var opac_checked = false; |
84 |
var intranet_checked = false; |
88 |
var intranet_checked = false; |
Lines 143-148
function populateHiddenCheckboxes(tab) {
Link Here
|
143 |
$("#hidden_collapsed_" + tab).prop('checked',collapsed_checked); |
147 |
$("#hidden_collapsed_" + tab).prop('checked',collapsed_checked); |
144 |
$("#hidden_flagged_" + tab).prop('checked',flagged_checked); |
148 |
$("#hidden_flagged_" + tab).prop('checked',flagged_checked); |
145 |
|
149 |
|
146 |
enable_cb(tab); |
150 |
if ( hidden_protected == 1 ) { |
147 |
|
151 |
$("#hidden_opac_" + tab).prop('disabled','disabled'); |
|
|
152 |
$("#hidden_intranet_" + tab).prop('disabled','disabled'); |
153 |
$("#hidden_editor_" + tab).prop('disabled','disabled'); |
154 |
$("#hidden_collapsed_" + tab).prop('disabled','disabled'); |
155 |
$("#hidden_flagged_" + tab).prop('disabled','disabled'); |
156 |
} |
157 |
else { |
158 |
enable_cb(tab); |
159 |
} |
148 |
} |
160 |
} |
149 |
- |
|
|