Created
December 11, 2013 16:29
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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