Skip to content

Commit 78eb673

Browse files
committed
display selected icon/font on issue edit
1 parent 72942bc commit 78eb673

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

assets/javascripts/app.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,6 @@ var App = (function ($, publ) {
268268

269269
// Handle multiple maps per page
270270
maps.push(map);
271-
272-
// Pass map properties before edit to edit map
273-
var beforeEditProperties = $(".ol-map").data("geom").properties
274-
$("#all_attributes .ol-map").data("geom").properties = beforeEditProperties
275271
};
276272

277273
/**
@@ -314,7 +310,7 @@ var App = (function ($, publ) {
314310
color = "#FFD700";
315311
var plugin_settings = defaults.pluginSettings
316312

317-
var status_id = feature.get('status_id');
313+
var status_id = $("#issue_status_id").val();
318314
if (status_id) {
319315
var key = "status_" + status_id;
320316
if (key in plugin_settings) {
@@ -333,7 +329,7 @@ var App = (function ($, publ) {
333329
var symbol = "mcr-icon-write";
334330

335331
var plugin_settings = $("#ol-defaults").data("pluginSettings");
336-
var tracker_id = feature.get('tracker_id');
332+
var tracker_id = $("#issue_tracker_id").val();
337333
if (tracker_id) {
338334
var key = "tracker_" + tracker_id;
339335
if (key in plugin_settings) {

0 commit comments

Comments
 (0)