Commit cc0ea02a authored by Jérome Perrin's avatar Jérome Perrin Committed by Ioannis Papagiannopoulos

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

parent 35a5180f
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
</script> </script>
<template id="popup-edit-template"> <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"> <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> <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> </div>
<br/> <br/>
......
...@@ -434,7 +434,7 @@ ...@@ -434,7 +434,7 @@
gadget.props.element.appendChild( gadget.props.element.appendChild(
document.importNode(popup_edit_template.content, true).children[0] 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); edit_popup.find('.node_class').text(connection._class);
fieldset_element = edit_popup.find('fieldset')[0]; fieldset_element = edit_popup.find('fieldset')[0];
edit_popup.popup(); edit_popup.popup();
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
gadget.props.element.appendChild( gadget.props.element.appendChild(
document.importNode(popup_edit_template.content, true).children[0] 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 // Set the name of the popup to the node class
node_edit_popup.find('.node_class').text(node_data._class); node_edit_popup.find('.node_class').text(node_data._class);
fieldset_element = node_edit_popup.find('fieldset')[0]; 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