really fix share editor (prod bug)

This commit is contained in:
Claudio Barril 2014-09-09 18:48:51 -03:00
parent fb3a82222b
commit 28660e3400

View File

@ -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();
});