cockpit/themes/compact/theme.js in cpee-1.4.15 vs cockpit/themes/compact/theme.js in cpee-1.4.16
- old
+ new
@@ -64,11 +64,11 @@
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());
}
- save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval);
+ save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
save['details'].content(node);
format_visual_forms();
}
}; //}}}
@@ -159,11 +159,11 @@
'menu_icon': icon,
'type': undefined,
'params': ['> finalize, > update', xml_node]
});
}
- if (xml_node.get(0).tagName == "call") {
+ if (xml_node.get(0).tagName == "call" || xml_node.get(0).tagName == "manipulate") {
var icon = self.elements.call.illustrator.svg.clone();
icon.children('g.replace').addClass('active');
var vtarget = self.adaptor.illustrator.get_node_by_svg_id(svgid);
if (vtarget.length > 0) {
if (vtarget.parents('g.activities.passive, g.activities.active').length > 0) {
@@ -234,10 +234,12 @@
// Primitive Elements
this.elements.call = { /*{{{*/
'type': 'primitive',
'illustrator': {//{{{
'endnodes': 'this',
- 'label': function(node){ return $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,''); },
+ 'label': function(node){
+ return $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'');
+ },
'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
'resolve_symbol': function(node) {
if($('finalize,update', node).length > 0) {
return 'callmanipulate';
} else {