Commit 84ce9458 authored by Jérome Perrin's avatar Jérome Perrin

Graph editor: use a more abstract name for node edit dialog now that it is also used to edit edges

parent bd6fe8c3
......@@ -24,9 +24,9 @@
</script>
<template id="popup-edit-template">
<div id="node-edit-popup" data-position-to="origin">
<div id="edit-popup" data-position-to="origin">
<div data-role="header" data-theme="a">
<h1 class="node_class">Node edition</h1>
<h1 class="node_class">Edit properties</h1>
<a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>
</div>
<br/>
......
......@@ -434,7 +434,7 @@
gadget.props.element.appendChild(
document.importNode(popup_edit_template.content, true).children[0]
);
edit_popup = $(gadget.props.element).find('#node-edit-popup');
edit_popup = $(gadget.props.element).find('#edit-popup');
edit_popup.find('.node_class').text(connection._class);
fieldset_element = edit_popup.find('fieldset')[0];
edit_popup.popup();
......@@ -539,7 +539,7 @@
gadget.props.element.appendChild(
document.importNode(popup_edit_template.content, true).children[0]
);
node_edit_popup = $(gadget.props.element).find('#node-edit-popup');
node_edit_popup = $(gadget.props.element).find('#edit-popup');
// Set the name of the popup to the node class
node_edit_popup.find('.node_class').text(node_data._class);
fieldset_element = node_edit_popup.find('fieldset')[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment