View pdogs-urlshortener-google.js
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($,window) { | |
"use strict"; | |
window.pdogs = window.pdogs || {}; | |
pdogs.urlshortener = function() { | |
var | |
_googlAPIKey = '<YOUR GOOGLE APIKey HERE>', | |
_module = { shorten: shorten }; | |
return _module; |
View linktodocument-original.js
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 ValidateInput() | |
{ULSvlv:; | |
var form = document.forms.aspnetForm; | |
var folderUrl = form.ctl00_PlaceHolderMain_ctl01_ctl01_UrlInput.value; | |
var name = form.ctl00_PlaceHolderMain_ctl01_ctl01_NameInput.value; | |
if (name == null || | |
folderUrl == null || | |
typeof(name) == "undefined" || | |
typeof(folderUrl) == "undefined" || | |
name.length == 0 || |
View linktodocumentvalidate-new.js
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
window.ValidateInput = function() | |
{ULSvlv:; | |
var L_ItemOrFolderNameTooLong_Ex = "The specified document name or URL is too long. The URL must be less than 255 characters and no more than 128 characters for the document name.\nPlease enter a shorter document name or URL."; | |
var L_EnterValidUrl_Text_Ex = "Enter a valid document name and URL. Valid URLs must begin with \u0027http:\u0027 or \u0027https:\u0027 and must be less than 255 characters."; | |
var form = document.forms.aspnetForm; | |
var folderUrl = form.ctl00_PlaceHolderMain_ctl01_ctl01_UrlInput.value; | |
var name = form.ctl00_PlaceHolderMain_ctl01_ctl01_NameInput.value; | |
if (name == null || | |
folderUrl == null || |
View fixupnewlinkpage.js
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 (window) { | |
// are we on the NewLink.aspx page | |
if (!window.location.href.match(/_layouts\/NewLink.aspx\?/gi)) return; | |
/* is it for adding an item of a content type | |
inheriting the 'Document Link' content type item? */ | |
var params=window.location.search.split('?')[1].split('&'); | |
var s=$rb.grep(params, function(e) { | |
var p = e.split('='); | |
return (p.length > 1) && p[0].match(/ContentTypeId/gi) && p[1].match(/^0x01010A/gi); |
View linktodocument.aspx
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
<%@ Assembly Name='Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' %> | |
<%@ Register TagPrefix='SharePoint' Namespace='Microsoft.SharePoint.WebControls' Assembly='Microsoft.SharePoint' %> | |
<%@ Import Namespace='System.IO' %> | |
<%@ Import Namespace='Microsoft.SharePoint' %> | |
<%@ Import Namespace='Microsoft.SharePoint.Utilities' %> | |
<%@ Import Namespace='Microsoft.SharePoint.WebControls' %> | |
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> | |
<head> | |
<meta name='progid' content='SharePoint.Link' /> | |
<!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,URL"><xml> |
View Get AppWeb and HostWeb Lists.js
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
// jQuery DOM ready | |
$(function() { | |
JSRequest.EnsureSetup(); | |
$(".content-body").empty().show(); | |
getAppWebLists(); | |
getHostWebLists(); | |
}); | |
function getAppWebLists() { | |
var |
View Get AppWeb Lists using a Promises Pattern.js
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
/* jQuery DOM ready */ | |
$(function() { | |
JSRequest.EnsureSetup(); | |
GetAppWebLists() | |
.then(EnrichData) | |
.then(RenderAppWebLists) | |
.fail(function(error) { | |
$(".content-body").html(error).show(); | |
}); |
View Dynamic-Load-JS-CSS-Resource.js
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 LoadResource(url, afterUi) { | |
var | |
p = new $.Deferred(), | |
resource = null, | |
headOrBody = document.getElementsByTagName(typeof afterUi !== 'undefined' && afterUi ? "body" : "head")[0]; | |
if (url.match(/.js$/gi)) { | |
resource = document.createElement("script"); | |
resource.type = "text/javascript"; | |
if (resource.readyState) { // IE |
View Orchestrate-DynamicLoading-Resources.js
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
window.UT = window.UT || {}; | |
UT.Masterpage = function() { | |
var | |
_jqui = null, | |
_wap = null, | |
_kom = null, | |
_sps = null, | |
_module = { | |
LoadJQueryUI: UT$Masterpage$LoadJQueryUI, | |
LoadKnockout: UT$Masterpage$LoadKnockout, |