mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-19 20:20:43 +02:00
really fix share editor (prod bug)
This commit is contained in:
parent
3b10674925
commit
d7ca99a69c
@ -65,7 +65,7 @@
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><spring:message code="CAN_EDIT"/>
|
||||
<span class="caret"> </span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" role="menu" id="shareRole">
|
||||
<ul class="dropdown-menu" role="menu" id="shareRole" data-role="editor">
|
||||
<li><a href="#" data-role="editor" style="text-decoration: none"><spring:message code="CAN_EDIT"/></a></li>
|
||||
<li><a href="#" data-role="viewer" style="text-decoration: none"><spring:message code="CAN_VIEW"/></a></li>
|
||||
</ul>
|
||||
@ -116,7 +116,7 @@ function addCollaboration(email, role, changeType) {
|
||||
<td>{email}{typeIcon}</td>\
|
||||
<td>\
|
||||
<div class="btn-group">\
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"">'+ messages['editor'] + '</a>\
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#""></a>\
|
||||
<ul class="dropdown-menu">\
|
||||
<li><a href="#" data-role="editor">' + messages['editor'] + '</a></li>\
|
||||
<li><a href="#" data-role="viewer">' + messages['viewer'] + '</a></li>\
|
||||
@ -242,7 +242,7 @@ $("#addBtn").click(function (event) {
|
||||
// Register change event ...
|
||||
$("#shareRole a").click(function (event) {
|
||||
var role = onClickShare(this);
|
||||
$(this).parent().attr('data-role', role);
|
||||
$(this).closest("ul").attr('data-role', role);
|
||||
|
||||
event.preventDefault();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user