This file contains hidden or 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
Had to manually map, most are easy, sh -> sr made me look up the label though... after I saw the label I knew I should have recognized it from the country codes: | |
iw | |
iw_IL | |
in | |
in_ID | |
sh_ME | |
no | |
no_NO | |
sh | |
sh_BA |
This file contains hidden or 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 formats = { | |
'af_ZA': 'yyyy/mm/dd', | |
'am_ET': 'd/m/yyyy', | |
'ar': 'dd/mm/yy', | |
'ar_AE': 'dd/mm/yyyy', | |
'ar_BH': 'dd/mm/yyyy', | |
'ar_DZ': 'dd-mm-yyyy', | |
'ar_EG': 'dd/mm/yyyy', | |
'ar_IQ': 'dd/mm/yyyy', | |
'ar_JO': 'dd/mm/yyyy', |
This file contains hidden or 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 wat = { | |
'ar_SA': 'dd/mm/yy', | |
'bg_BG': 'dd.m.yyyy', | |
'ca_ES': 'dd/mm/yyyy', | |
'zh_TW': 'yyyy/m/d', | |
'cs_CZ': 'd.m.yyyy', | |
'da_DK': 'dd-mm-yyyy', | |
'de_DE': 'dd.mm.yyyy', | |
'el_GR': 'd/m/yyyy', | |
'en_US': 'm/d/yyyy', |
This file contains hidden or 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
/*Usage*/ | |
@RemoteAction | |
global static void archivePersonalTasksInLastColumn(){ | |
trTaskboardController.setStaticVarsForRemoteActions(); | |
//String lastListName=trController.getLastListName(); | |
List<Project_Task__c> tasksToArchive = [SELECT Archived__c FROM Project_Task__c WHERE List__c = :lastListName AND Project__c = null AND OwnerId=:UserInfo.getUserId()]; | |
for(Project_Task__c task : tasksToArchive){ | |
task.Archived__c = true; | |
} | |
//update tasksToArchive; |
This file contains hidden or 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
global class dailySummary implements Schedulable | |
{ | |
global void execute(SchedulableContext ctx) | |
{ | |
execFn(); | |
} | |
public void execFn(){ | |
//Do stuff |
This file contains hidden or 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
//HTML | |
var customLabels=JSON.parse('{!JSENCODE(customLabelJSON)}'); | |
//Apex | |
public static String customLabelJSON{ get; set; } | |
... | |
Map<String,String> labelValueMap = new Map<String,String>(); | |
labelValueMap.put('blmd_SideBarHeader_FollowUpProcessing',System.Label.blmd_SideBarHeader_FollowUpProcessing); | |
customLabelJSON=JSON.serialize(labelValueMap); |
This file contains hidden or 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
<apex:page docType="html-5.0" standardStylesheets="false" showHeader="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false"> | |
<html> | |
<head> | |
<script type='text/javascript' src='/canvas/sdk/js/publisher.js'></script> | |
<script type='text/javascript'> | |
Sfdc.canvas.publisher.subscribe({ | |
name: "publisher.showPanel", | |
onData:function(e) { | |
console.log('test1'); | |
console.log(e); |
This file contains hidden or 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
trigger taskAfterUpdateAndInsert on TASKRAY__Project_Task__c (after insert, after update) { | |
for(TASKRAY__Project_Task__c task: Trigger.new){ | |
if((task.TASKRAY__List__c == 'Finished') && (Trigger.IsInsert || (Trigger.Isupdate && (Trigger.OLdmap.get(task.id).TASKRAY__List__c <> 'Finished'))) ){ | |
Datetime dt = Datetime.now(); | |
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); | |
String[] toAddresses = new String[] {'[email protected]'}; | |
mail.setToAddresses(toAddresses); | |
mail.setReplyTo('[email protected]'); | |
mail.setSenderDisplayName('basati test'); |
This file contains hidden or 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
trigger basatitest on Project_Task__c (after insert, after update) { | |
for(Project_Task__c task: Trigger.new){ | |
if((task.List__c == 'Finished') && (Trigger.IsInsert || (Trigger.Isupdate && (Trigger.OldMap.get(task.id).List__c <> 'Finished')))){ | |
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); | |
String[] toAddresses = new String[] {'[email protected]'}; | |
mail.setToAddresses(toAddresses); | |
mail.setReplyTo('[email protected]'); | |
mail.setSenderDisplayName('basati test'); | |
mail.setSubject('basati test'); | |
mail.setCharset('UTF-8'); |
This file contains hidden or 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 attachKanbanScrollModifier(){ | |
$j('.kanban-column').on('scroll',function(){lazyScroll(this);}); | |
} | |
var lazyScroll = _.debounce(function(column){columnScrolled(column)}, 150); | |
function columnScrolled(column){ | |
var $column = $j(column); | |
var $columnChildren = $column.children('.task'); |