",
+ {
+ itemUid: ${item.uid},
+ comment: comment,
+ sessionMapID: "${sessionMapID}"
+ }
+ );
+ }
-
+ function hideItem(itemUid, toHide){
+ $.post(
+ "
",
+ {
+ itemUid: itemUid,
+ isHiding: toHide
+ },
+ function(data) {
+
+ //replace item-hide span
+ var itemHideText = '
';
+ if (toHide) {
+ $("#previewItem" + itemUid).addClass("item-hidden");
+ itemHideText += '
' +
+ '' +
+ '' +
+ '';
+ } else {
+ $("#previewItem" + itemUid).removeClass("item-hidden");
+ itemHideText += '';
+ }
+ itemHideText += '';
+ $("#previewItem" + itemUid + " .item-hide-management").replaceWith(itemHideText);
+ }
+ );
+
+ return false;
+ }
- <%--"Check for new" and "Add new image" buttons---------------%>
-
-
-
-
-
-
-
+ function hideComment(commentUid, toHide){
+ $.post(
+ "
",
+ {
+ commentUid: commentUid,
+ isHiding: toHide
+ },
+ function(data) {
+
+ //replace comment-hide span
+ var commentHideText = '';
+ $("#comment" + commentUid + " .comment-hide-management").replaceWith(commentHideText);
+ }
+ );
-
-
-
+ return false;
+ }
+
+ $(document).ready(function(){
+ $(".rating-stars").jRating({
+ phpPath : "?sessionMapID=${sessionMapID}",
+ rateMax : 5,
+ decimalLength : 1,
+ onSuccess : function(data, itemUid){
+ $("#averageRating" + itemUid).html(data.averageRating);
+ $("#numberOfVotes" + itemUid).html(data.numberOfVotes);
+ },
+ onError : function(){
+ jError('Error submitting rating, please retry');
+ }
+ });
+ $(".rating-stars-disabled").jRating({
+ rateMax : 5,
+ isDisabled : true
+ });
+ $(".rating-stars-disabled-small").jRating({
+ rateMax : 5,
+ type: 'small',
+ isDisabled : true
+ });
+
+ //edit mark
+ setVarsForm("dispatch=markItem&itemUid=${item.uid}");
+ $('#editItemMark').click(function() {
+ editBox(document.getElementById( "itemMark" ));
+ });
+
+ });
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
- ${itemMark}
-
-
-
-
-
-
-
-
- <%@ include file="/pages/learning/ratingStars.jsp"%>
+
-
-
- <%--Comments area----------------------------------------------%>
-
-