code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
function check_save_ad(result, xmlhttp, link) {
if (result) {
var display_message = document.getElementById("save_ad_msg");
if (result.match(/Status:SAVED_AD/)) {
display_message.className = "okay";
}
display_message.style.display = "block";
} else if (xmlhttp.responseText.indexOf('<!DOCTYPE') >= 0) {... | JavaScript |
/* Unobtrusive Flash Objects (UFO) v3.22 <http://www.bobbyvandersluis.com/ufo/>
Copyright 2005-2007 Bobby van der Sluis
This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/
var UFO = {
req: ["movie", "width", "height", "majorversion", "build"],
opt: ["play", "loop", "m... | JavaScript |
/*
* ExtInfoWindow Class, v1.0
* Copyright (c) 2007, Joe Monahan (http://www.seejoecode.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | JavaScript |
function displayResult(result) {
var output = document.getElementById('output');
output.innerHTML=result[1];
var success = result[0];
//nice red/green indicator of whether the last call worked
var flag = document.getElementById('flag');
if (success) {
flag.innerHTML = 'Success';
flag.style.co... | JavaScript |
var channel_id = '';
var max_id = 0;
/* channel_id can change in time. beware of it. */
function generate_channel_id_updater(iframe_uri, username, user_comet_callback){
var username = username;
var gc = null;
var update_scheduled = false;
/* comet callback function */
function comet_callba... | JavaScript |
/* Greybox Redux
* Required: http://jquery.com/
* Written by: John Resig
* Based on code by: 4mir Salihefendic (http://amix.dk)
* License: LGPL (read more in LGPL.txt)
*/
var GB_DONE = false;
var GB_HEIGHT = 400;
var GB_WIDTH = 400;
function GB_show(caption, url, height, width) {
GB_HEIGHT = height || 400;
G... | JavaScript |
/**
* Creates a new Floor.
* @constructor
* @param {google.maps.Map=} opt_map
*/
function Floor(opt_map) {
/**
* @type Array.<google.maps.MVCObject>
*/
this.overlays_ = [];
/**
* @type boolean
*/
this.shown_ = true;
if (opt_map) {
this.setMap(opt_map);
}
}
/**
* @param {google.maps.M... | JavaScript |
/**
* Creates a new level control.
* @constructor
* @param {IoMap} iomap the IO map controller.
* @param {Array.<string>} levels the levels to create switchers for.
*/
function LevelControl(iomap, levels) {
var that = this;
this.iomap_ = iomap;
this.el_ = this.initDom_(levels);
google.maps.event.addList... | JavaScript |
/**
* @license
*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | JavaScript |
// Copyright 2011 Google
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.att... | JavaScript |
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.Shoc... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.att... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.att... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.att... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.att... | JavaScript |
/*
* Mouse wheel support for OS X - implemented in javascript because Adobe
* hasn't implemented it in the mac version of Flash Player >:(
*
* Copyright (c) 2007-2008 Ali Rantakari ( http://hasseg.org/blog )
*
* Requires related ActionScript 3 class:
* org.hasseg.externalMouseWheel.ExternalMouseWheelS... | JavaScript |
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.Shoc... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var... | JavaScript |
var dokArray = document.assocs["rcc:perPazAttachments"];
var person = document.assocs["rcc:perPazRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+lnam... | JavaScript |
var dokArray = document.assocs["rcc:isakAttachments"];
var person = document.assocs["rcc:isakRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+lname;
var... | JavaScript |
var nodes = search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/datalist/1.0}dataList\"");
var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var policyComponent = ctx.getBean("policyBehaviourFilter");
policyComponent.disableBehaviour(Packages.org.alfresco.servic... | JavaScript |
var dokArray = document.assocs["rcc:resAttachments"];
var person = document.assocs["rcc:resRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+lname;
var d... | JavaScript |
var dokArray = document.assocs["rcc:perAttachments"];
var person = document.assocs["rcc:perRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+lname;
var d... | JavaScript |
var dokArray = document.assocs["rcc:attachments"];
var person = document.assocs["rcc:perPranRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+lname;
var ... | JavaScript |
var dokArray = document.assocs["rcc:perPrasymAttachments"];
var person = document.assocs["rcc:perPrasymRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+... | JavaScript |
var dokArray = document.assocs["rcc:sendAttachments"];
var person = document.assocs["rcc:sendRegistrator"][0];
var name = person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
var lname = person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
var registrator = name+" "+lname;
var... | JavaScript |
var RegNumber = url.templateArgs["RegNumber"];
var RegGroup = url.templateArgs["RegGroup"];
var RegTitle = url.templateArgs["RegTitle"];
var RegNote = url.templateArgs["RegNote"];
var Documents = url.templateArgs["Attachments"];
var Executor = url.templateArgs['Executor'];
var Mode = url.templateArgs["Mode"];
var sit... | JavaScript |
var user = url.templateArgs["user"];
var member = null;
if (user == "person"){
member = person;
} else {
var nodeRf = "workspace://SpacesStore/"+user;
member = search.findNode(nodeRf);
}
model.userInfo = member; | JavaScript |
var RegNumber = url.templateArgs["RegNumber"];
var RecName = url.templateArgs["RecName"];
var RegTitle = url.templateArgs["RegTitle"];
var RegNote = url.templateArgs["RegNote"];
var Initiator = url.templateArgs["Initiator"];
var Mode = url.templateArgs["Mode"];
var Documents = url.templateArgs["Attachments"];
var... | JavaScript |
var RegNumber = url.templateArgs["RegNumber"];
var RegGroup = url.templateArgs["RegGroup"];
var RegTitle = url.templateArgs["RegTitle"];
var RegNote = url.templateArgs["RegNote"];
var Initiator = url.templateArgs["Initiator"];
var Mode = url.templateArgs["Mode"];
var Documents = url.templateArgs["Attachments"];
v... | JavaScript |
var RegNumber = url.templateArgs["RegNumber"];
var RegGroup = url.templateArgs["RegGroup"];
var RegTitle = url.templateArgs["RegTitle"];
var RegNote = url.templateArgs["RegNote"];
var Initiator = url.templateArgs["Initiator"];
var Mode = url.templateArgs["Mode"];
var Documents = url.templateArgs["Attachments"];
v... | JavaScript |
//var group = "cDirektoriai";
var group = url.templateArgs["group"];
var prefix= "GROUP_";
var defaultPrefix = "GROUP_n";
var groupName = prefix + group;
var defaulMemberGroup = defaultPrefix+group;
members = people.getMembers(people.getGroup(groupName));
model.members = members;
model.group = defaulMemberGroup; | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.10.18
* Time: 13.40
* To change this template use File | Settings | File Templates.
*/
function customWorkflow(wfId) {
this.wfId = wfId;
this.args = null;
this.type = null;
this.destination = null;
this.template = null;
... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.10.18
* Time: 13.40
* To change this template use File | Settings | File Templates.
*/
function customWorkflow(wfId) {
this.wfId = wfId;
this.args = null;
this.type = null;
this.destination = null;
this.template = null;
... | JavaScript |
function main()
{
//
// Get the person details
//
if ((json.isNull("userName")) || (json.get("userName").length() == 0))
{
status.setCode(status.STATUS_BAD_REQUEST, "User name missing when creating person");
return;
}
if ((json.isNull("firstName")) || (json.get("fir... | JavaScript |
function main()
{
// Get the person details and ensure they exist for update
var userName = url.extension;
var person = people.getPerson(userName);
if (person == null)
{
status.setCode(status.STATUS_NOT_FOUND, "Person " + userName + " does not exist");
return;
}
// assign new values... | JavaScript |
if (requestbody.content) {
var args = [];
var jsonData = jsonUtils.toObject(requestbody.content);
var workflowDefinition = null, documentType = null, templateId = null;
if (jsonData.workflow) {workflowDefinition = jsonData.workflow; }
if (jsonData.docType) {documentType = jsonData.docType; }
... | JavaScript |
if (requestbody.content) {
var jsonData = jsonUtils.toObject(requestbody.content);
if (jsonData['docGroup']) {
var docGroup = jsonData['docGroup'];
}
var arr = [];
if (docGroup.indexOf("vacAppeal") != -1) {
arr.push("D\u0117l kasmetini\u0173 atostog\u0173 suteikimo");
... | JavaScript |
<import resource="classpath:alfresco/site-webscripts/org/alfresco/components/workflow/workflow.lib.js">
model.workflowDefinitions = getWorkflowDefinitions();
function main()
{
// Widget instantiation metadata...
var startWorkflow = {
id : "StartWorkflow",
name : "Alfresco.component.StartWorkflo... | JavaScript |
function main()
{
if (args.formType == undefined || args.formType.length == 0)
{
status.code = 400;
status.message = "Workflow type has not been provided.";
status.redirect = true;
}
else
{
model.args = args;
}
}
main();
| JavaScript |
function getHiddenTaskTypes()
{
var hiddenTaskTypes = [],
hiddenTasks = config.scoped["Workflow"]["hidden-tasks"].childrenMap["task"];
if (hiddenTasks)
{
for (var hi = 0, hil = hiddenTasks.size(); hi < hil; hi++)
{
hiddenTaskTypes.push(hiddenTasks.get(hi).attributes["type"]);
... | JavaScript |
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
function getDocumentWorkflows(nodeRef)
{
var result = remote.call("/api/node/" + nodeRef.replace(":/", "") + "/workflow-instances");
if (result.status != 200)
{
AlfrescoUtil.error(result.status, 'Could not load docum... | JavaScript |
<import resource="classpath:alfresco/site-webscripts/org/alfresco/components/workflow/workflow.lib.js">
function main()
{
// Widget instantiation metadata...
var startDocument = {
id : "StartDocument",
name : "RC.StartDocument",
options : {
failureMessage : "Nepavyk... | JavaScript |
function arrayToObject(a) {
var o = {};
for (var i = 0; i < a.length; i++) {
o[a[i].itemName] = '';
}
return o;
}
function intersect(arr1, arr2) {
var r = [], o = {}, l = arr2.length, ii, vv;
for (ii = 0; ii < l; ii++) {
o[arr2[ii]] = true;
}
l... | JavaScript |
/**
* Copyright (C) 2005-2011 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at... | JavaScript |
function getNodeRefs(refs) {
var strin = "";
var noderefs = refs;
var n = noderefs.split("workspace://SpacesStore/");
for (var i = 1; i < n.length; i++) {
strin += n[i];
}
var m = strin.replace(/,/g, "|");
return m;
}
function validateMessage(){
Alfresco.util.PopupMa... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.3.25
* Time: 13.45
* To change this template use File | Settings | File Templates.
*/
function generatePerNoticeForm(selectedValue) {
var regTitle = new Array('Dėl darbo poilsio dieną nustatymo', 'Dėl duomenų pateikimo', 'Dėl įmonės struktūr... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
function getNodeRefs(refs) {
var strin = "";
var noderefs = refs;
var n = noderefs.split("workspace://SpacesStore/");
for (var i = 1; i < n.length; i++) {
strin += n[i];
}
var m = strin.replace(/,/g, "|");
return m;
}
function validateMessage(message) {
Alfresco.util... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.3.25
* Time: 13.45
* To change this template use File | Settings | File Templates.
*/
function trigerKeyEvent(elemId){
if (document.createEvent) {
var myEv = document.createEvent('KeyboardEvent');
myEv.initKeyboardEvent('keyup... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.7.16
* Time: 08.50
* To change this template use File | Settings | File Templates.
*/
// get param value from URL
/*function getURLParameters(paramName) {
var sURL = window.document.URL.toString();
if (sURL.indexOf("?") > 0) {
... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.7.23
* Time: 14.29
* To change this template use File | Settings | File Templates.
*/
function validateMessage(message) {
Alfresco.util.PopupManager.displayPrompt(
{
title:"Trūksta duomenų",
text: message,
... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.7.10
* Time: 14.41
* To change this template use File | Settings | File Templates.
*/
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or ... | JavaScript |
function setRegNumber(regGroup) {
var obj = null, group = null, time = null;
var propertyId = "template_x002e_toolbar_x002e_data-lists_x0023_default-createRow_prop_rcc_";
var fieldId1 = propertyId + "resRegNumber";
var fieldId2 = propertyId + "sendRegNumber";
var fieldId3 = propertyId + "isakRe... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.7.26
* Time: 13.17
* To change this template use File | Settings | File Templates.
*/
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or ... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.10.29
* Time: 14.48
* To change this template use File | Settings | File Templates.
*/
var loadingMessage = {};
var waitLoading = function() {
loadingMessage = Alfresco.util.PopupManager.displayMessage({
displayTime: 0,
e... | JavaScript |
/**
* Created by IntelliJ IDEA.
* User: Slejus
* Date: 13.9.17
* Time: 11.51
* To change this template use File | Settings | File Templates.
*/
window.location.assign("http://www.w3schools.com")
loadingMessage = Alfresco.util.PopupManager.displayMessage(
{
displayTime: 0,
text: '123',
no... | JavaScript |
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* @author Arturas Paleicikas <arturas@avalon.lt> */
jQuery(function($){
$.datepicker.regional['lt'] = {
closeText: 'Uždaryti',
prevText: '<Atgal',
nextText: 'Pirmyn>',
currentText: 'Šiandi... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
// Ensure Alfresco.forms and validation objects exist
Alfresco.forms = Alfresco.forms || {};
Alfresco.forms.validation = Alfresco.forms.validation || {};
/**
* Class to represent the forms runtime.
*
* @namespace Alfresco.forms
* @class Alfresco.forms.Form
*/
(function()
{
/**
* YUI Library aliases
... | JavaScript |
/*
* Copyright 2011-2012 Alfresco Software Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | JavaScript |
/*
* Copyright 2011-2012 Alfresco Software Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | JavaScript |
/**
* User Profile Component - User Dropbox GET method
*/
function main()
{
// Call the repo to retrieve dropbox properties
var result = remote.call("/dropbox/account");
if (result.status == 200)
{
var dropbox = eval('(' + result + ')');
if (dropbox.authenticated){
model.dis... | JavaScript |
function main()
{
// Call the repo to retrieve dropbox properties
var result = remote.call("/dropbox/account/complete/workflow?verifier="+args.uid);
if (result.status == 200)
{
var auth = eval('(' + result + ')');
model.success = auth.success;
}
}
main(); | JavaScript |
/**
* User Notifications Update method
*
* @method POST
*/
function main()
{
// make remote call to update user dropbox settings on person object
if(url.templateArgs.action == "delink"){
var conn = remote.connect("alfresco");
var result = conn.post("/dropbox/account/delink/" + user.id, "{}");
if... | JavaScript |
// Begin DDJ script
var url = this.location + "";
var ipid = "0";
var dex = "2";
var server="";
function stripSessionID(urlPre)
{//mostly used for jsession but also for random ;
if((urlPre.indexOf(";") != -1)||(urlPre.indexOf("?") != -1))
{
if ((urlPre.indexOf(";") < urlPre.indexOf("?") && urlPre.in... | JavaScript |
// popwindow function for full-size illustration display
function popimage(t,title){
var handle = window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes");
handle.document.open();
handle.document.write("<head>");
handle.document.write("<title>" + title + ... | JavaScript |
/************************ ADDITIONAL FEATURES ************************
Plugins
*/
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. */
/* Specify the Report Suite ID(s) to track here */
var s_account="cmpglobalvista"
... | JavaScript |
var txtVersion = "0.1";
var addtoInterval = null;
var popupWin = '';
function addtoWin(addtoFullURL)
{
if (!popupWin.closed && popupWin.location){
popupWin.location.href = addtoFullURL;
var addtoInterval = setInterval("closeAddTo();",1000);
}
else{
popupWin = window.open(addtoFullURL,'addtoPopUp','... | JavaScript |
/**
* Get runner ranking for the given runtype.
*
* @param args.runType
*/
function main(){
var runType = args.runType;
var ranking = jsRunnerService.getRanking(runType);
//TODO test if ranking is not null
model.ranking = ranking;
}
main(); | JavaScript |
/**
* Add Run to current user
*
* @param args.runDate - Format: 31-12-2012
* @param args.runType - Values: [RUNNING, CYCLING, SWIMMING]
* @param args.runDistance
* @param args.runUrl
*/
function main(){
var runDateString = json.get("runDate");
var runDayString = json.get("runDay");
var runType = j... | JavaScript |
/**
* Display runner details from given username
* @param args.username
*/
function main(){
var username = args.username;
var runner;
if(username != null && username != ""){
runner = jsRunnerService.getRunner(username);
}
else{
runner = jsRunnerService.getCurrentRunner();
}
//TODO test if run... | JavaScript |
/**
* Get runner history for the given username and runType.
* If username is not provided, get runner details for the current user.
*
* @param args.username
* @param args.runType
*/
function main(){
var username = args.username;
var runType = args.runType;
if(runType == null || runType == ""){
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* Thi... | JavaScript |
YAHOO.util.Event.channels = {};
YAHOO.util.Event.subscribe = function (channelName, obj, listenMethod) {
var getSubscriberMethod = function () {
return function (type, args, scopeObj) {
scopeObj[listenMethod].apply(scopeObj, args);
}
}
if (!this.channels[channelName]) {
this.createCh... | JavaScript |
/**
* Display ranking for the given runType
*
* @param args.runType default value = ALL
*/
function main()
{
var url = "/gwi/run/ranking.json";
var runType = args.runType;
if(runType == null || runType == ""){
runType = "ALL";
}
url += "?runType=" + runType;
var result = remote.call(url);
... | JavaScript |
/**
* Display runner details from given username
* @param args.username
*/
function main()
{
var url = "/gwi/run/runnerDetails.json";
var username = args.username;
//TODO test username not empty
if(username != null){
url += "?username=" + username;
}
var result = remote.call(url);
if (resul... | JavaScript |
//function main()
//{
//
//}
//
//main(); | JavaScript |
/**
* Display runner history from given username and runType
* @param args.username
* @param args.runType
*/
function main()
{
var url = "/gwi/run/runnerHistory.json?";
var username = args.username;
var runType = args.runType;
if(username != null){
url += "username=" + username;
}
if(runType !=... | JavaScript |
/**
* Get runner ranking for the given runtype.
*
* @param args.runType
*/
function main(){
var runType = args.runType;
var ranking = jsRunnerService.getRanking(runType);
//TODO test if ranking is not null
model.ranking = ranking;
}
main(); | JavaScript |
/**
* Add Run to current user
*
* @param args.runDate - Format: 31-12-2012
* @param args.runType - Values: [RUNNING, CYCLING, SWIMMING]
* @param args.runDistance
* @param args.runUrl
*/
function main(){
var runDateString = json.get("runDate");
var runDayString = json.get("runDay");
var runType = j... | JavaScript |
/**
* Display runner details from given username
* @param args.username
*/
function main(){
var username = args.username;
var runner;
if(username != null && username != ""){
runner = jsRunnerService.getRunner(username);
}
else{
runner = jsRunnerService.getCurrentRunner();
}
//TODO test if run... | JavaScript |
/**
* Get runner history for the given username and runType.
* If username is not provided, get runner details for the current user.
*
* @param args.username
* @param args.runType
*/
function main(){
var username = args.username;
var runType = args.runType;
if(runType == null || runType == ""){
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
... | JavaScript |
/**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.