From 5fe3eb8f00a036d1829202bcb3627762d5e775aa Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 2 Mar 2014 16:36:18 -0800 Subject: [PATCH] fixed capitalization issues. tidied up topic pages. added center this topic icon --- app/assets/images/MMCCicon_center.png | Bin 0 -> 656 bytes .../Jit/graphsettings-event-handlers.js | 15 ++++++++++----- app/assets/javascripts/Jit/graphsettings.js | 2 +- app/assets/javascripts/Jit/jit2.0.0.js | 2 +- app/assets/stylesheets/application.css | 3 +++ app/views/topics/show.html.erb | 4 +++- 6 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 app/assets/images/MMCCicon_center.png diff --git a/app/assets/images/MMCCicon_center.png b/app/assets/images/MMCCicon_center.png new file mode 100644 index 0000000000000000000000000000000000000000..c009d99dde16b714c4186343971f087412eb909e GIT binary patch literal 656 zcmV;B0&o3^P){^R$gfI*}x`^m*cib_B`S(E4SJD>wzN&uGW2&Khi zVMY77MfU2poHQ0>tYdZQazFyU+>k89766hHxP*X2Eec$eEegP_JMpG$n1IO&Ie%x} z)=OsU=7Je7K6(HyNRsj5`R<8BeJr)FrShke^Wy)1EhW$relo;71F|b3|KtPkBr=CK zxibKSek+K|*XTtCWEBOZ(J@mRl}Rr$fTu!049h+t>qX{-j%TB zNwqq&H_%(UGm79}T~5a~@+le`NWR*ur7VAKOUY>JW#WlmbJSQxIl$%0+Kqcg8LOyk zuyxRAvD8W qoz4!R_JH^}&0h_!H}#D5CBOh(evuV`=h=k-0000'; if (userid != null) menustring += '
  • Delete
  • '; - if (mapid && userid != null) menustring += '
  • Remove from Map
  • '; + if (mapid && userid != null) menustring += '
  • Remove from map
  • '; menustring += '
  • Hide until refresh
  • '; - if (!mapid) menustring += '
  • Center This Topic
  • '; - menustring += '
  • Open In New Tab
  • '; + if (!mapid) menustring += '
  • Center this topic
  • '; + menustring += '
  • Open in new tab
  • '; if (userid) { var options = '
    • commons
    • \
    • public
    • \ diff --git a/app/assets/javascripts/Jit/graphsettings.js b/app/assets/javascripts/Jit/graphsettings.js index cb85f52f..c20666ca 100644 --- a/app/assets/javascripts/Jit/graphsettings.js +++ b/app/assets/javascripts/Jit/graphsettings.js @@ -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 diff --git a/app/assets/javascripts/Jit/jit2.0.0.js b/app/assets/javascripts/Jit/jit2.0.0.js index 771c5489..0a1d2e3b 100644 --- a/app/assets/javascripts/Jit/jit2.0.0.js +++ b/app/assets/javascripts/Jit/jit2.0.0.js @@ -3156,7 +3156,7 @@ var Canvas; this.viz = viz; this.config = $.merge({ idSuffix: '-bkcanvas', - levelDistance: 400, + levelDistance: 280, numberOfCircles: 4, CanvasStyles: {}, offset: 0 diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index b1a773b4..d86f7da5 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -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); } diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index d8795c82..f44bc1ac 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -18,7 +18,9 @@ <% if authenticated? %>
      -
      +
      +
      Save As New Map
      +
      <% end %>