View gist:e42364c7792552b09134
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
var clientContext = null; | |
function createTestDocumentSet() { | |
if(clientContext === null) { | |
return false; | |
} | |
var item = null; | |
var oList = clientContext.get_web().get_lists().getByTitle('Library Name'); | |
clientContext.load(oList); | |
var itemCreateInfo = new SP.ListItemCreationInformation(); |
View Filter LVWP - JS - 2010
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(module,$) { | |
"use strict"; | |
window.pd = window.pd || {}; | |
pd.MeetingsViewModel = function() { | |
/* observable state */ | |
this.FilterTextIm = ko.observable(''); | |
this.FilterText = ko.computed(this.FilterTextIm) | |
.extend({ throttle: 400 }); |
View Filter LVWP - HTML - 2010
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
<link rel="stylesheet" type="text/css" href="../SiteAssets/sgm-meetings/css/fontello.css" runat="server" /> | |
<!--[if IE 7]> | |
<link rel="stylesheet" type="text/css" href="../SiteAssets/sgm-meetings/css/fontello-ie7.css" runat="server" /> | |
<![endif]--> | |
<!-- Lib CSS --> | |
<link rel="stylesheet" type="text/css" href="../SiteAssets/sgm-meetings/css/cdtm-main.css" runat="server" /> | |
<!-- Lib JS --> | |
<script type="text/javascript" src="../SiteAssets/sgm-meetings/scripts/knockout-3.1.0.js"></script> |
View Filter LVWP - CSS - 2010
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
/* CLEARFIX */ | |
.cdtm-wrapper .row:before, | |
.cdtm-wrapper .row:after { | |
content: ""; | |
display: table; | |
} | |
.cdtm-wrapper .row:after { | |
clear: both; | |
} |
View Filter LVWP - JS - 2013
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(module,$) { | |
"use strict"; | |
window.pd = window.pd || {}; | |
pd.FilterLibraryViewModel = function() { | |
/* observable state */ | |
this.FilterTextIm = ko.observable(''), | |
this.FilterText = ko.computed(this.FilterTextIm) | |
.extend({ throttle: 400 }), |
View Filter LVWP - HTML - 2013
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
<link rel="stylesheet" type="text/css" href="../SiteAssets/sgm-meetings/css/fontello.css" runat="server" /> | |
<!--[if IE 7]> | |
<link rel="stylesheet" type="text/css" href="../SiteAssets/sgm-meetings/css/fontello-ie7.css" runat="server" /> | |
<![endif]--> | |
<!-- App CSS --> | |
<link rel="stylesheet" type="text/css" href="../SiteAssets/sgm-meetings/css/cdtm-main.css" runat="server" /> | |
<!-- Lib JS --> | |
<script type="text/javascript" src="../SiteAssets/sgm-meetings/scripts/knockout-3.1.0.js"></script> |
View Filter LVWP - CSS - 2013
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
/* CLEARFIX */ | |
.cdtm-wrapper .row:before, | |
.cdtm-wrapper .row:after { | |
content: ""; | |
display: table; | |
} | |
.cdtm-wrapper .row:after { | |
clear: both; |
View EnsureListFolderTree
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 EnsureListFolderTree($web, $list, $folderName) { | |
$curl = $list.RootFolder.ServerRelativeUrl | |
$folders = $folderName.Replace("^/+","").Split("/") | |
ForEach($fn in $folders) { | |
$furl = $curl + "/" + $fn | |
$f = $web.GetFolder($furl) | |
if ($f.Exists -eq $false) { | |
$f = $list.AddItem($curl, [Microsoft.SharePoint.SPFileSystemObjectType]::Folder, $fn) | |
$f.Update() |
View CheckSPWebResource
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($) { | |
"use strict"; | |
function checkSPWebResource(url, async) { | |
var | |
endpoint = url.match(/^http[s]?:\/\//i) || url.match("^"+_spPageContextInfo.webServerRelativeUrl) | |
? url | |
: _spPageContextInfo.webServerRelativeUrl.replace(/\/$/g,'') | |
+ '/' + url.replace(/^\//g,''), | |
p = $.Deferred(); |
OlderNewer