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 copySelectedProposal ( selectedProposal, dstParam, succeededCallback, failedCallback ) { | |
if ( selectedProposal == null ) | |
return; | |
var x = { | |
absUrl : _spPageContextInfo.siteAbsoluteUrl, | |
relUrl : _spPageContextInfo.webServerRelativeUrl, | |
dst : dstParam, | |
proposal : selectedProposal |
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 value = filter.split ( ':' ); | |
var messageHtml = value [ 1 ] + '<span style="float: right" id="close_button_span"></span>'; | |
Clarks.CC.Status.DisplayNotifyMessage ( "Filtered by: ", messageHtml, Clarks.CC.Status.Priority.Information ); | |
var close_button = document.createElement ( 'a' ); | |
var linkText = document.createTextNode ( "clear" ); | |
close_button.appendChild ( linkText ); | |
close_button.name = 'status_close_button'; |
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
"$(MSBuildBinPath)\msbuild.exe" "$(ProjectDir)yui\MSBuild.xml" | |
powershell.exe -Command "& {Set-ExecutionPolicy Unrestricted}" | |
powershell.exe -NoLogo -NonInteractive -File "$(ProjectDir)UploadBundleOnAzure.ps1" -ProjectDir "$(ProjectDir)" |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<AzureConf> | |
<Blob> | |
<Container FileExt="css" Name="css" /> | |
<Container FileExt="js" Name="scripts" /> | |
</Blob> | |
<AzureAccountInfo> | |
<Name>your blob account name</Name> | |
<Key>your blob account key</Key> | |
</AzureAccountInfo> |
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
param([string]$ProjectDir) | |
# for some reason we have a " to remove at the end of string | |
$ProjectDir = $ProjectDir.Substring(0,$ProjectDir.Length-1) | |
$assetsDir = [string]::Format('{0}\{1}', $ProjectDir, 'Assets') | |
$myCss = Get-ChildItem "$assetsDir\Styles" -Filter "*.css" | % -process { $_.FullName } | |
$myJs = Get-ChildItem "$assetsDir\Scripts" -Filter "*.js" | % -process { $_.FullName } |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/MsBuild/2003"> | |
<UsingTask TaskName="CssCompressorTask" AssemblyFile="..\..\..\..\..\Reference Assemblies\Yahoo.Yui.Compressor.Build.MsBuild.dll" /> | |
<UsingTask TaskName="JavaScriptCompressorTask" AssemblyFile="..\..\..\..\..\Reference Assemblies\Yahoo.Yui.Compressor.Build.MsBuild.dll" /> | |
<PropertyGroup> | |
<CssMinOutputFile>..\Assets\Styles\Stylesheet1.min.css</CssMinOutputFile> | |
<JavaScriptMinOutputFile>..\Assets\Scripts\Javascript1.min.js</JavaScriptMinOutputFile> | |
</PropertyGroup> |
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
To get the APP-ID-CODE you have to create a new Yammer APP likes you can see in this pic: https://onedrive.live.com/redir?resid=326B1FC9A1CE351F!15015&authkey=!AMmmiBkza5_idPM&v=3&ithint=photo%2c.png | |
Also is IMPORTANT allows javascript calls from the source origin. | |
To do this you have to specify the source origin on the app info: https://onedrive.live.com/redir?resid=326B1FC9A1CE351F!15016&authkey=!AJ62DteVIedu_q0&v=3&ithint=photo%2c.png |
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
ClientInfo = ( function ( ) { | |
// Instance stores a reference to the Singleton | |
var instance; | |
var obj = { }; | |
function init ( currentUserRegion ) { | |
var publicMethods = { | |
getRegionalCurrency : function ( ) { |
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 getParam ( name ) { | |
if ( name = ( new RegExp ( '[?&]' + encodeURIComponent ( name ) + '=([^&]*)' ) ).exec ( location.search ) ) | |
return decodeURIComponent ( name [ 1 ] ); | |
return ""; | |
} | |
function copySelectedProposal ( selectedProposal, dstParam, succeededCallback, failedCallback ) { |
NewerOlder