cockpit/themes/model/theme.js in cpee-1.5.24 vs cockpit/themes/model/theme.js in cpee-1.5.25
- old
+ new
@@ -63,10 +63,10 @@
var rng = self.adaptor.description.elements[$(node).attr('svg-subtype')].clone();
if (save['endpoints_cache'][$(node).attr('endpoint')] && save['endpoints_cache'][$(node).attr('endpoint')].schema) {
var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
$(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
}
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
$(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
}
save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
save['details'].content(node);
format_visual_forms();