Commit 89fd7232 authored by Jérome Perrin's avatar Jérome Perrin

set the name of the popup to the node class

parent 201a9994
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<template id="popup-edit-template"> <template id="popup-edit-template">
<div id="node-edit-popup" data-position-to="origin"> <div id="node-edit-popup" data-position-to="origin">
<div data-role="header" data-theme="a"> <div data-role="header" data-theme="a">
<h1>Node edition</h1> <h1 class="node_class">Node edition</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/>
......
...@@ -488,6 +488,8 @@ ...@@ -488,6 +488,8 @@
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('#node-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]; fieldset_element = node_edit_popup.find('fieldset')[0];
node_edit_popup.popup(); node_edit_popup.popup();
......
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