Skip to content

Instantly share code, notes, and snippets.

@int32at
Created September 23, 2014 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save int32at/436d076b435fdef4c65b to your computer and use it in GitHub Desktop.
Save int32at/436d076b435fdef4c65b to your computer and use it in GitHub Desktop.
wow
var isInstanceAvailable = function (webPartId, errorMessage) {
var status = checkConnection();
if (!status && $("#postError").length == 0) {
$('#' + webPartId + ' div[id$=divFeed]').html('');
$('#' + webPartId + ' div[id$=divFeedSettingsContainer]').remove();
var html = "<div id='postError'>" + errorMessage + "</div>";
$('#' + webPartId + ' div[id$=divFeed]').append(html);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment