fixed capitalization issues. tidied up topic pages. added center this topic icon

This commit is contained in:
Connor Turland 2014-03-02 16:36:18 -08:00
parent c20c3b0e54
commit 5fe3eb8f00
6 changed files with 18 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

View file

@ -1,12 +1,17 @@
function selectEdgeOnClickHandler(adj, e) {
if (Mconsole.busy) return;
// catch right click on mac, which is often like ctrl+click
if (navigator.platform.indexOf("Mac")!=-1 && e.ctrlKey) {
selectEdgeOnRightClickHandler(adj, e)
return;
}
if (synapseWasDoubleClicked()) {
synapseDoubleClickHandler(adj, e);
return;
}
var edgeIsSelected = MetamapsModel.selectedEdges.indexOf(adj);
if (edgeIsSelected == -1) edgeIsSelected = false;
else if (edgeIsSelected != -1) edgeIsSelected = true;
@ -50,7 +55,7 @@ function selectEdgeOnRightClickHandler(adj, e) {
var menustring = '<ul>';
if (userid != null) menustring += '<li class="rc-delete">Delete</li>';
if (mapid && userid != null) menustring += '<li class="rc-remove">Remove from Map</li>';
if (mapid && userid != null) menustring += '<li class="rc-remove">Remove from map</li>';
menustring += '<li class="rc-hide">Hide until refresh</li>';
if (userid) {
var options = '<ul><li class="changeP toCommons">commons</li> \
@ -252,11 +257,11 @@ function selectNodeOnClickHandler(node, e) {
var menustring = '<ul>';
if (userid != null) menustring += '<li class="rc-delete">Delete</li>';
if (mapid && userid != null) menustring += '<li class="rc-remove">Remove from Map</li>';
if (mapid && userid != null) menustring += '<li class="rc-remove">Remove from map</li>';
menustring += '<li class="rc-hide">Hide until refresh</li>';
if (!mapid) menustring += '<li class="rc-center">Center This Topic</li>';
menustring += '<li class="rc-popout">Open In New Tab</li>';
if (!mapid) menustring += '<li class="rc-center">Center this topic</li>';
menustring += '<li class="rc-popout">Open in new tab</li>';
if (userid) {
var options = '<ul><li class="changeP toCommons">commons</li> \
<li class="changeP toPublic">public</li> \

View file

@ -167,7 +167,7 @@ function graphSettings(type, embed) {
lineWidth: 1.5
}
};
t.levelDistance = 400;
t.levelDistance = 280;
t.Events.enableForEdges = true;
t.Events.onDragEnd = function(node, eventInfo, e) {
//different because we can't go realtime

View file

@ -3156,7 +3156,7 @@ var Canvas;
this.viz = viz;
this.config = $.merge({
idSuffix: '-bkcanvas',
levelDistance: 400,
levelDistance: 280,
numberOfCircles: 4,
CanvasStyles: {},
offset: 0

View file

@ -1326,6 +1326,9 @@ background-position: 5px 2px;
.rightclickmenu .rc-hide {
background-image: url(MMCCicon_hide.png);
}
.rightclickmenu .rc-center {
background-image: url(MMCCicon_center.png);
}
.rightclickmenu .rc-popout {
background-image: url(MMCCicon_pop-out_black.png);
}

View file

@ -18,7 +18,9 @@
<% if authenticated? %>
<div class="sidebarFork">
<div class="sidebarForkIcon"></div>
<div class="sidebarForkIcon hoverForTip">
<div class="tip">Save As New Map</div>
</div>
<div class="sidebarForkBox"></div>
</div>
<% end %>