Skip to content

Instantly share code, notes, and snippets.

@nohe427
Created December 11, 2013 16:29
Show Gist options
  • Save nohe427/7913647 to your computer and use it in GitHub Desktop.
Save nohe427/7913647 to your computer and use it in GitHub Desktop.
Lines 1654 to 1676 in the mapps.html. The alert window allows the user to know that writing a review has been disabled.
function submitReviewDialog()
{
// We're done with getting the review
hideReviewDialog();
// Submit the comment
/*dojo.xhrPost({
url: "proxy.ashx?http://www.arcgis.com/sharing/content/items/" + currentDetailsId + "/addComment",
headers: {"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"},
postData:
"f=json&comment=" + encodeURIComponent(dijit.byId("reviewDialogText").value),
handleAs: "json",
timeout: 60000, // ms
load: function(data) {
// Update the reviews
updateReviewsList(currentDetailsId);
},
error: function(text) {
alert(text);
}
}); */
alert("Writing a review have been disabled");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment