Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -127,16 +127,16 @@
|
||||
parents().
|
||||
filter(".comment").
|
||||
find(".reply-to-comment-button");
|
||||
|
||||
|
||||
/* Find the reply-to-comment form and hide and remove it again. */
|
||||
$.reply_to_comment_form = $(this).parents().filter(".reply");
|
||||
$.reply_to_comment_form.slideUp("slow", function () {
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
|
||||
/* Show the reply-to-comment button again. */
|
||||
reply_to_comment_button.css("display", "inline");
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ content object. Each comment div has a unique id::
|
||||
<div class="documentByLine"></div>
|
||||
<div class="commentBody"> </div>
|
||||
<div class="commentActions">
|
||||
<button class="reply-to-comment-button">Reply</button>
|
||||
<button class="reply-to-comment-button">Reply</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@ The comment form is rendered inside a "commenting" div::
|
||||
<div id="formfield-form-widgets-in_reply_to">
|
||||
<input id="form-widgets-in_reply_to"
|
||||
name="form.widgets.in_reply_to" value=
|
||||
type="hidden"
|
||||
type="hidden"
|
||||
/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
*
|
||||
* jQuery functions for the plone.app.discussion bulk moderation.
|
||||
*
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
(function ($) {
|
||||
// This unnamed function allows us to use $ inside of a block of code
|
||||
// This unnamed function allows us to use $ inside of a block of code
|
||||
// without permanently overwriting $.
|
||||
// http://docs.jquery.com/Using_jQuery_with_Other_Libraries
|
||||
|
||||
|
||||
//#JSCOVERAGE_IF 0
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* Window Load Function: Executes when complete page is fully loaded,
|
||||
* Window Load Function: Executes when complete page is fully loaded,
|
||||
* including all frames,
|
||||
**************************************************************************/
|
||||
**************************************************************************/
|
||||
$(window).load(function () {
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Delete a single comment.
|
||||
**********************************************************************/
|
||||
@@ -47,8 +47,8 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Publish a single comment.
|
||||
**********************************************************************/
|
||||
@@ -78,8 +78,8 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Bulk actions for comments (delete, publish)
|
||||
**********************************************************************/
|
||||
@@ -116,8 +116,8 @@
|
||||
selectField.find("option[value='-1']").attr('selected', 'selected');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Check or uncheck all checkboxes from the batch moderation page.
|
||||
**********************************************************************/
|
||||
@@ -134,12 +134,12 @@
|
||||
$(this).val("0");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Show full text of a comment in the batch moderation page.
|
||||
**********************************************************************/
|
||||
$(".show-full-comment-text").click(function (e) {
|
||||
$(".show-full-comment-text").click(function (e) {
|
||||
e.preventDefault();
|
||||
var target = $(this).attr("href");
|
||||
var td = $(this).parent();
|
||||
@@ -156,9 +156,9 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
//#JSCOVERAGE_ENDIF
|
||||
|
||||
|
||||
}(jQuery));
|
||||
|
||||
@@ -121,9 +121,10 @@ class View(BrowserView):
|
||||
'action': None,
|
||||
'actor': None,
|
||||
'comment': 'Migrated workflow state',
|
||||
'review_state': old_status.get(
|
||||
'review_state': old_status and old_status.get(
|
||||
'review_state',
|
||||
new_workflow.initial_state),
|
||||
new_workflow.initial_state)
|
||||
or 'published',
|
||||
'time': DateTime()
|
||||
}
|
||||
workflow.setStatusOf('comment_review_workflow',
|
||||
|
||||
Reference in New Issue
Block a user