diff --git a/app/assets/stylesheets/application.scss.erb b/app/assets/stylesheets/application.scss.erb index 330091d2..341a4c77 100644 --- a/app/assets/stylesheets/application.scss.erb +++ b/app/assets/stylesheets/application.scss.erb @@ -526,9 +526,9 @@ button.button.btn-no:hover { } .new_topic { - /* start it off screen while it initializes the spinner, then it will be hidden with jquery */ - top: -1000px; - left: -1000px; + top: 50%; + left: 50%; + margin-top: -17px; display: block; position: absolute; z-index: 1; @@ -594,38 +594,18 @@ button.button.btn-no:hover { color: #BDBDBD; } .openMetacodeSwitcher { - display: none; + display: block; height: 16px; width: 16px; background-image: url(<%= asset_data_uri('metacodesettings_sprite.png') %>); position: absolute; z-index: 2; - top: 20px; - left: 16px; + top: -16px; + left: -16px; } .openMetacodeSwitcher:hover { background-position: -16px 0; } -.pinCarousel { - cursor: pointer; - display: block; - height: 16px; - width: 16px; - background-image: url(<%= asset_data_uri('pincarousel_sprite.png') %>); - position: absolute; - z-index: 2; - top: -20px; - right: -16px; -} -.pinCarousel:hover { - background-position: 0 -16px; -} -.pinCarousel.isPinned { - background-position: -16px 0; -} -.pinCarousel.isPinned:hover { - background-position: -16px -16px; -} #metacodeImg { height: 120px; width: 380px; diff --git a/app/assets/stylesheets/metacode-select.scss.erb b/app/assets/stylesheets/metacode-select.scss.erb index 7e56af69..41b98c9c 100644 --- a/app/assets/stylesheets/metacode-select.scss.erb +++ b/app/assets/stylesheets/metacode-select.scss.erb @@ -21,8 +21,6 @@ .metacodeList { list-style: none; background: #FFF; - min-height: 107px; - min-width: 100px; li { padding: 8px; diff --git a/app/models/mapping.rb b/app/models/mapping.rb index 7a82be76..d4da84f6 100644 --- a/app/models/mapping.rb +++ b/app/models/mapping.rb @@ -8,10 +8,6 @@ class Mapping < ApplicationRecord belongs_to :user belongs_to :updated_by, class_name: 'User' - validates :xloc, presence: true, - unless: proc { |m| m.mappable_type == 'Synapse' } - validates :yloc, presence: true, - unless: proc { |m| m.mappable_type == 'Synapse' } validates :map, presence: true validates :mappable, presence: true @@ -31,7 +27,7 @@ class Mapping < ApplicationRecord def after_created if mappable_type == 'Topic' - meta = {'x': xloc, 'y': yloc, 'mapping_id': id} + meta = {'mapping_id': id} Events::TopicAddedToMap.publish!(mappable, map, user, meta) ActionCable.server.broadcast 'map_' + map.id.to_s, type: 'topicAdded', topic: mappable.filtered, mapping_id: id elsif mappable_type == 'Synapse' diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 36934885..015e1525 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -47,19 +47,6 @@ <%= render :partial => 'layouts/lowermapelements' %>
- -
-
- Double-click to
add a topic -
-
- Use Tab & Shift+Tab to select a metacode -
-
- Press Enter to add the topic -
-
-
<%= render :partial => 'layouts/mobilemenu' %> diff --git a/app/views/maps/_newtopic.html.erb b/app/views/maps/_newtopic.html.erb index bc24301f..6e2a6db7 100644 --- a/app/views/maps/_newtopic.html.erb +++ b/app/views/maps/_newtopic.html.erb @@ -1,15 +1,8 @@ -<% @metacodes = user_metacodes() %> - <%= form_for Topic.new, url: topics_url, remote: true do |form| %>
Switch Metacodes
-
-
Pin Open
-
Unpin
-
-
<% @metacodes = [user_metacode()].concat(user_metacodes()).uniq %> <% set = metacodeset() %> @@ -28,12 +21,10 @@