Skip to content

Commit

Permalink
Updated for Plone 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Mar 5, 2018
1 parent 8353b91 commit 363c506
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions buildout.d/versions.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[versions]
plone.testing = 5.0.0
zc.buildout =
setuptools =
2 changes: 1 addition & 1 deletion src/collective/readunread/browser/read_unread_by_member.pt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tal:condition="view/available"
i18n:domain="collective.readunread">
<tal:def define="status python: view.get_status();">
<form style="display:inline" id="readunread_actions">
<form style="display:inline" id="readunread_actions" tal:attributes="data-obj_url view/context/absolute_url;">
<span tal:content="status" id='readunread_status'/>
<input class="standalone readunread_action"
id="mark_as_read"
Expand Down
1 change: 1 addition & 0 deletions src/collective/readunread/browser/static/readunread.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

.readunread_viewlet {
display: inline;
}
2 changes: 1 addition & 1 deletion src/collective/readunread/browser/static/readunread.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(document).ready(function(){
var $container = $(this).closest('#readunread_actions');
$.ajax({
type: "POST",
url: "change_read_unread_status?action=" + $(this).attr('id'),
url: $container.data('obj_url') + "/change_read_unread_status?action=" + $(this).attr('id'),
data: $container.serialize(),
dataType: "json",
success: function(result){
Expand Down

0 comments on commit 363c506

Please sign in to comment.