/jsonws/calendar-portlet/calendar/get-calendar/calendar-id/10466
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 html2pdf(path, outputPath, opt_callback) { | |
phantom.create(function(ph) { | |
ph.createPage(function(page) { | |
page.set('paperSize', { | |
format: 'A4', | |
orientation: 'portrait' | |
}); | |
page.open(path, 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script> | |
assert(document.readyState === 'loading'); | |
document.addEventListener("DOMContentLoaded", function() { | |
assert(document.readyState === 'interactive'); // <-- | |
setTimeout(function() { | |
assert(document.readyState === 'complete'); | |
}, 0); |
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 writeTempFile(content, opt_callback) { | |
tmp.file({ postfix: '.html' }, function(err, tmpHtmlPath) { | |
if (!err) { | |
grunt.file.write(tmpHtmlPath, content); | |
} | |
opt_callback && opt_callback(err, tmpHtmlPath); | |
}); | |
} |
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
_checkBackgroundTasks: function() { | |
var instance = this; | |
Liferay.Service( | |
'/backgroundtask/get-background-tasks-count', | |
{ | |
groupId: instance._groupId, | |
taskExecutorClassName: instance._taskExecutorClassName, | |
completed: instance._isPending | |
}, |
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
AUI().use('event-resize', function(A) { | |
A.one(window).on('resize', function(event) { | |
dialog.align(); | |
}); | |
}); |
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
Show hidden characters
{ | |
"bitwise": true, | |
"browser": true, | |
"curly": true, | |
"eqeqeq": true, | |
"eqnull": true, | |
"evil": true, | |
"expr": true, | |
"immed": true, | |
"latedef": true, |
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
AUI.add( | |
'liferay-scheduler', | |
function(A) { | |
var AArray = A.Array; | |
var AObject = A.Object; | |
var DateMath = A.DataType.DateMath; | |
var Lang = A.Lang; | |
var RecurrenceUtil = Liferay.RecurrenceUtil; | |
var Workflow = Liferay.Workflow; |
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
YUI().use( | |
'aui-modal', | |
function(Y) { | |
var modal1 = new Y.Modal( | |
{ | |
bodyContent: '<button id="inModalButton">foo</button>', | |
headerContent: 'Modal header', | |
render: '#modal', | |
} |
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
<if> | |
<and> | |
<isgreaterthan arg1="${ant.java.version}" arg2="1.5"/> | |
<or> | |
<equals arg1="${ant.java.version}" arg2="1.6" /> | |
<and> | |
<equals arg1="${ant.java.version}" arg2="1.7" /> | |
<islessthan arg1="${ant.update.version}" arg2="25"/> | |
</and> | |
</or> |
NewerOlder