cockpit/themes/compact/theme.js in cpee-2.1.45 vs cockpit/themes/compact/theme.js in cpee-2.1.46

- old
+ new

@@ -181,10 +181,12 @@ menu['Delete'] = [{ 'label': 'Remove Element', 'function_call': function(selector,target,selected){ del_ui_pos(target) self.adaptor.description.remove(selector,target); + localStorage.removeItem('marked'); + localStorage.removeItem('marked_from'); }, 'menu_icon': icon, 'type': undefined, 'params': [null, xml_node, self.selected()] }]; @@ -201,9 +203,11 @@ }); $(nodes).each(function(key,node){ var target = self.adaptor.description.get_node_by_svg_id($(node).attr('svg-id')); del_ui_pos(target) self.adaptor.description.remove(null,target); + localStorage.removeItem('marked'); + localStorage.removeItem('marked_from'); }); }, 'menu_icon': icond, 'type': undefined, 'params': []