This file contains 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 () { | |
// Sitewide alert banner | |
// Set varible for staging, or not | |
if(window.location.pathname.indexOf('/stage/connect/') === 0){ | |
var webURL = "/stage/connect" | |
}else{ | |
var webURL = "/" | |
}; |
This file contains 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 that creats a list item. | |
// Expects a title and category to be passed to it. | |
function createListItem(titleText,categoryText) { | |
// Where are we in SharePoint? | |
var _clientContext = SP.ClientContext.get_current(); | |
// SharePoint List name | |
var _talkList = _clientContext.get_web().get_lists().getByTitle('list name'); | |