cockpit/themes/lego/theme.js in cpee-1.4.30 vs cockpit/themes/lego/theme.js in cpee-1.4.31
- old
+ new
@@ -15,14 +15,14 @@
var ntxt = nnew.serializeXML();
ntxt = ntxt.replace(/trans-xmlns/,'xmlns');
return($X(ntxt));
};
- this.clicked = function(){
+ this.selected = function(){
var svgid = 'unknown';
_.each(self.adaptor.illustrator.get_elements(),function(value,key) {
- if ($(value).hasClass('clicked')) {
+ if ($(value).hasClass('selected')) {
svgid = $(value).attr('element-id');
}
});
return svgid;
};
@@ -76,11 +76,11 @@
var visid = 'details';
var tab = $('#dat_' + visid);
tab.empty();
- self.adaptor.illustrator.get_elements().removeClass('clicked');
+ self.adaptor.illustrator.get_elements().removeClass('selected');
if (e && e.ctrlKey) {
var vtarget = self.adaptor.illustrator.get_node_by_svg_id(svgid);
if (vtarget.length > 0) {
vtarget.parents('g.element[element-id]').toggleClass('marked');
@@ -88,10 +88,10 @@
} else {
self.adaptor.illustrator.get_elements().removeClass('marked');
var vtarget = self.adaptor.illustrator.get_node_by_svg_id(svgid);
if (vtarget.length > 0) {
- vtarget.parents('g.element[element-id]').addClass('clicked');
+ vtarget.parents('g.element[element-id]').addClass('selected');
}
var node = self.adaptor.description.get_node_by_svg_id(svgid).get(0);
if (self.adaptor.description.elements[$(node).attr('svg-type')]) {