New networkmaps in progress... (Context menu icons fixed)

This commit is contained in:
Arturo Gonzalez 2016-10-05 11:23:37 +02:00
parent fa1854e902
commit 0dc00ed01e
3 changed files with 15 additions and 22 deletions

View File

@ -1143,7 +1143,6 @@ function show_networkmap($id = 0, $user_readonly = false, $nodes_and_relations =
</div>'; </div>';
echo '</div>'; echo '</div>';
?> ?>
<style type="text/css"> <style type="text/css">
.node { .node {

View File

@ -1257,21 +1257,15 @@ function init_minimap() {
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
function show_menu(item, data) { function show_menu(item, data) {
mouse = []; mouse = [];
//mouse[0] = d3.event.clientX;
//mouse[0] = d3.event.layerX;
mouse[0] = d3.event.pageX; mouse[0] = d3.event.pageX;
//mouse[1] = d3.event.clientY;
//mouse[1] = d3.event.layerY;
mouse[1] = d3.event.pageY; mouse[1] = d3.event.pageY;
window.click_menu_position_svg = [d3.event.layerX, d3.event.layerY]; window.click_menu_position_svg = [d3.event.layerX, d3.event.layerY];
//stop showing browser menu //stop showing browser menu
d3.event.preventDefault(); d3.event.preventDefault();
d3.event.stopPropagation(); d3.event.stopPropagation();
switch (item) { switch (item) {
case 'node': case 'node':
selected_node(data, true, true); selected_node(data, true, true);

View File

@ -97,21 +97,21 @@
.context-menu-item.icon:before {} .context-menu-item.icon:before {}
*/ */
.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; } .context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
.context-menu-item.icon-edit { background-image: url(images/page_white_edit.png); } .context-menu-item.icon-edit { background-image: url(../../images/page_white_edit.png); }
.context-menu-item.icon-cut { background-image: url(images/cut.png); } .context-menu-item.icon-cut { background-image: url(../../images/cut.png); }
.context-menu-item.icon-copy { background-image: url(images/page_white_copy.png); } .context-menu-item.icon-copy { background-image: url(../../images/page_white_copy.png); }
.context-menu-item.icon-paste { background-image: url(images/page_white_paste.png); } .context-menu-item.icon-paste { background-image: url(../../images/page_white_paste.png); }
.context-menu-item.icon-delete { background-image: url(images/page_white_delete.png); } .context-menu-item.icon-delete { background-image: url(../../images/page_white_delete.png); }
.context-menu-item.icon-add { background-image: url(images/page_white_add.png); } .context-menu-item.icon-add { background-image: url(../../images/page_white_add.png); }
.context-menu-item.icon-quit { background-image: url(images/door.png); } .context-menu-item.icon-quit { background-image: url(../../images/door.png); }
.context-menu-item.icon-refresh { background-image: url(../../../images/refresh.png); } .context-menu-item.icon-refresh { background-image: url(../../images/refresh.png); }
.context-menu-item.icon-center { background-image: url(../../../images/star.png); } .context-menu-item.icon-center { background-image: url(../../images/star.png); }
.context-menu-item.icon-details { background-image: url(../../../images/application.png); } .context-menu-item.icon-details { background-image: url(../../images/application.png); }
.context-menu-item.icon-children { background-image: url(../../../images/link_add.png); } .context-menu-item.icon-children { background-image: url(../../images/link_add.png); }
.context-menu-item.icon-cancel_set_parent { background-image: url(../../../images/link_delete.png); } .context-menu-item.icon-cancel_set_parent { background-image: url(../../images/link_delete.png); }
.context-menu-item.icon-set_parent { background-image: url(../../../images/link_go.png); } .context-menu-item.icon-set_parent { background-image: url(../../images/link_go.png); }
.context-menu-item.icon-add_node { background-image: url(../../../images/add.png); } .context-menu-item.icon-add_node { background-image: url(../../images/add.png); }
.context-menu-item.icon-refresh_holding_area { background-image: url(../../../images/category_col.png); } .context-menu-item.icon-refresh_holding_area { background-image: url(../../images/category_col.png); }
/* vertically align inside labels */ /* vertically align inside labels */
.context-menu-input > label > * { vertical-align: top; } .context-menu-input > label > * { vertical-align: top; }