mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-24 15:07:56 +01: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"/>
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><spring:message code="CAN_EDIT"/>
|
||||||
<span class="caret"> </span>
|
<span class="caret"> </span>
|
||||||
</a>
|
</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="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>
|
<li><a href="#" data-role="viewer" style="text-decoration: none"><spring:message code="CAN_VIEW"/></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -116,7 +116,7 @@ function addCollaboration(email, role, changeType) {
|
|||||||
<td>{email}{typeIcon}</td>\
|
<td>{email}{typeIcon}</td>\
|
||||||
<td>\
|
<td>\
|
||||||
<div class="btn-group">\
|
<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">\
|
<ul class="dropdown-menu">\
|
||||||
<li><a href="#" data-role="editor">' + messages['editor'] + '</a></li>\
|
<li><a href="#" data-role="editor">' + messages['editor'] + '</a></li>\
|
||||||
<li><a href="#" data-role="viewer">' + messages['viewer'] + '</a></li>\
|
<li><a href="#" data-role="viewer">' + messages['viewer'] + '</a></li>\
|
||||||
@ -242,7 +242,7 @@ $("#addBtn").click(function (event) {
|
|||||||
// Register change event ...
|
// Register change event ...
|
||||||
$("#shareRole a").click(function (event) {
|
$("#shareRole a").click(function (event) {
|
||||||
var role = onClickShare(this);
|
var role = onClickShare(this);
|
||||||
$(this).parent().attr('data-role', role);
|
$(this).closest("ul").attr('data-role', role);
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user