Trigger remote editor correctly
When the "edit object" link was used and the preferred editor was set to remote the remote editor wwas not being triggered.
This commit is contained in:
parent
d74cb34e1e
commit
60363a4c36
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@
|
|||
return remoteEditHandler(event, extent, "<%= map.class.to_s.downcase + map.id.to_s %>");
|
||||
});
|
||||
|
||||
<% if preferred_editor == "remote" -%>
|
||||
$("#object_edit").click(function (event) {
|
||||
return remoteEditHandler(event, extent, "<%= map.class.to_s.downcase + map.id.to_s %>");
|
||||
});
|
||||
<% end -%>
|
||||
|
||||
$("#object_larger_map").html("<%=j t('browse.map.larger.' + map.class.to_s.downcase) %>");
|
||||
$("#object_edit").html("<%=j t('browse.map.edit.' + map.class.to_s.downcase) %>");
|
||||
<% end -%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue