code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Copyright (C) 2005-2008 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
main(); /** * Main entrypoint */ function main() { var activityFeed = getActivities(); var activities = [], activity, item, summary, fullName, date, sites = {}, siteTitles = {}; var dateFilter = args.dateFilter, oldestDate = getOldestDate(dateFilter); if (activityFeed != null) { va...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { var global = args.global; var user = args.user; var site = args.site; var history = args.history; connector = remote.connect("alfresco"); var url = "/status"; if (history === 'true') { url += "/history"; } if ...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { // check whether we got a site var site = page.url.templateArgs.site; if (site == undefined) { // if we are in a surf site, but not share, we have to get // the site ID from the site config props site = sitedata.siteConfiguration.p...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ /* var connector = remote.connect("alfresco"); var statusList = connector.get("/status/history/global"); statusListObj = eval('(' + statusList + ')'); model.items = statusListObj.items; */
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { // check whether we got a site var site = page.url.templateArgs.site; if (site == undefined) { // if we are in a surf site, but not share, we have to get // the site ID from the site config props site = sitedata.siteConfiguration.p...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ /* var connector = remote.connect("alfresco"); var statusList = connector.get("/status/global"); statusListObj = eval('(' + statusList + ')'); model.items = statusListObj.items; */
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { // check whether we got a site var site = page.url.templateArgs.site; if (site == undefined) { // if we are in a surf site, but not share, we have to get // the site ID from the site config props site = sitedata.siteConfiguration.p...
JavaScript
var SITE_ID = "greenenergy"; site = siteService.createSite(null, SITE_ID, SITE_ID, SITE_ID, true); site.setMembership("admin", "SiteManager"); site.setMembership("tuser7", "SiteCollaborator"); site.save();
JavaScript
var site = siteService.getSite("testsitejs"); //if (site == null) { // logger.log("Site is null"); //} else { var folder = site.getContainer("optarosStatus"); logger.log("Folder name:" + folder.name); logger.log("id:" + folder.id); logger.log("ref:" + folder.nodeRef.toString()); //} /* site = siteService.createSite(...
JavaScript
var siteId = "greenenergy"; var userName = person.properties["cm:userName"]; //var userName = "tuser7"; var contentName = "status"; var prefix = "Finished"; var message = "test status message"; // create a new status node as child of the current node and set its properties var timestamp = new Date().getTime(); var sta...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ var STORE = "workspace://SpacesStore"; var COMPONENT_ID = "optarosStatus"; var HISTORY_FOLDER_NAME = "History"; var DEFAULT_CONTENT_NAME = "status"; var ACTIVITY_TYPE = "com.optaros.status.status-set"; // model properties var SITE_ID_PROP = "optStatus:siteId"; var COMPLETE_PROP ...
JavaScript
<import resource="classpath:alfresco/extension/scripts/optarosStatus.js"> function getParams() { // Grab the URI parameters var siteId = url.templateArgs.siteId; var userName = url.templateArgs.user; return { "siteId": siteId, "userName": userName }; } function main() { var params = getParams(); var isHi...
JavaScript
<import resource="classpath:alfresco/extension/scripts/optarosStatus.js"> function getParams() { var siteId = url.templateArgs.siteId; // PENDING: all other alfresco posts the data as json, not as part of the url. // couldn't get json working (not sure why - and the javascript debugger seems to be broken // right ...
JavaScript
/** * Optaros StatusList component. * * @namespace Optaros * @class Optaros.StatusList */ // Ensure Optaros root object exists if (typeof Optaros == "undefined" || !Optaros) { var Optaros = {}; } (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Event = YAHOO.util.Eve...
JavaScript
/** * Copyright (C) 2005-2008 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
main(); /** * Main entrypoint */ function main() { var activityFeed = getActivities(); var activities = [], activity, item, summary, fullName, date, sites = {}, siteTitles = {}; var dateFilter = args.dateFilter, oldestDate = getOldestDate(dateFilter); if (activityFeed != null) { va...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { var global = args.global; var user = args.user; var site = args.site; var history = args.history; connector = remote.connect("alfresco"); var url = "/status"; if (history === 'true') { url += "/history"; } if ...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { // check whether we got a site var site = page.url.templateArgs.site; if (site == undefined) { // if we are in a surf site, but not share, we have to get // the site ID from the site config props site = sitedata.siteConfiguration.p...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ /* var connector = remote.connect("alfresco"); var statusList = connector.get("/status/history/global"); statusListObj = eval('(' + statusList + ')'); model.items = statusListObj.items; */
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { // check whether we got a site var site = page.url.templateArgs.site; if (site == undefined) { // if we are in a surf site, but not share, we have to get // the site ID from the site config props site = sitedata.siteConfiguration.p...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ /* var connector = remote.connect("alfresco"); var statusList = connector.get("/status/global"); statusListObj = eval('(' + statusList + ')'); model.items = statusListObj.items; */
JavaScript
/** * Copyright 2009 Optaros, Inc. */ function main() { // check whether we got a site var site = page.url.templateArgs.site; if (site == undefined) { // if we are in a surf site, but not share, we have to get // the site ID from the site config props site = sitedata.siteConfiguration.p...
JavaScript
var SITE_ID = "greenenergy"; site = siteService.createSite(null, SITE_ID, SITE_ID, SITE_ID, true); site.setMembership("admin", "SiteManager"); site.setMembership("tuser7", "SiteCollaborator"); site.save();
JavaScript
var site = siteService.getSite("testsitejs"); //if (site == null) { // logger.log("Site is null"); //} else { var folder = site.getContainer("optarosStatus"); logger.log("Folder name:" + folder.name); logger.log("id:" + folder.id); logger.log("ref:" + folder.nodeRef.toString()); //} /* site = siteService.createSite(...
JavaScript
var siteId = "greenenergy"; var userName = person.properties["cm:userName"]; //var userName = "tuser7"; var contentName = "status"; var prefix = "Finished"; var message = "test status message"; // create a new status node as child of the current node and set its properties var timestamp = new Date().getTime(); var sta...
JavaScript
/** * Copyright 2009 Optaros, Inc. */ var STORE = "workspace://SpacesStore"; var COMPONENT_ID = "optarosStatus"; var HISTORY_FOLDER_NAME = "History"; var DEFAULT_CONTENT_NAME = "status"; var ACTIVITY_TYPE = "com.optaros.status.status-set"; // model properties var SITE_ID_PROP = "optStatus:siteId"; var COMPLETE_PROP ...
JavaScript
<import resource="classpath:alfresco/extension/scripts/optarosStatus.js"> function getParams() { // Grab the URI parameters var siteId = url.templateArgs.siteId; var userName = url.templateArgs.user; return { "siteId": siteId, "userName": userName }; } function main() { var params = getParams(); var isHi...
JavaScript
<import resource="classpath:alfresco/extension/scripts/optarosStatus.js"> function getParams() { var siteId = url.templateArgs.siteId; // PENDING: all other alfresco posts the data as json, not as part of the url. // couldn't get json working (not sure why - and the javascript debugger seems to be broken // right ...
JavaScript
//Script by Aneesh of www.bloggerplugins.org //Released on August 19th August 2009 var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); var thumburl = new Array(); function related_results_labels_thumbs(json) { for (var i = 0; i < json.feed.entry.length; i++) { var entry = j...
JavaScript
function main() { if (args.filterPathView == null) { status.code = 500; status.message = "Missing path parameter"; status.redirect = true; return; } var files = null; var folder = companyhome.childByNamePath(args.filterPathView); if (folder == null) { status.code = 404; status.message = "No fold...
JavaScript
/* * Get Latest Document configuration component POST method */ function main() { var c = sitedata.getComponent(url.templateArgs.componentId); var saveValue = function(name, value) { c.properties[name] = value; model[name] = value; } saveValue("title", String(json.get("titl...
JavaScript
function main() { // Call the repository to see if the user is site manager or not var userIsSiteManager = false, json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + encodeURIComponent(user.name)); if (json.status == 200) { var obj = eval('(' + json + ')'); if (obj) ...
JavaScript
if (typeof SomeCo == "undefined" || !SomeCo) { var SomeCo = {}; SomeCo.dashlet = {}; } /** * SomeCo.dashlet.GetLatestDoc */ (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event; /** * GetLatestDoc constructor. * ...
JavaScript
function main() { if (args.filterPathView == null) { status.code = 500; status.message = "Missing path parameter"; status.redirect = true; return; } var files = null; var folder = companyhome.childByNamePath(args.filterPathView); if (folder == null) { status.code = 404; status.message = "No fold...
JavaScript
function main() { // Create XML object to pull values from // configuration file var conf = new XML(config.script); // Use the defaults from the XML configuration file title = conf.title[0].toString(); filterPathView = conf.filterPathView[0].toString(); // call the repository to get the latest d...
JavaScript
function main() { if (args.filterPathView == null) { status.code = 500; status.message = "Missing path parameter"; status.redirect = true; return; } var files = null; var folder = companyhome.childByNamePath(args.filterPathView); if (folder == null) { status.code = 404; status.messa...
JavaScript
/* * Get Latest Document configuration component POST method */ function main() { var c = sitedata.getComponent(url.templateArgs.componentId); var saveValue = function(name, value) { c.properties[name] = value; model[name] = value; } saveValue("title", String(json.get("titl...
JavaScript
function main() { // Call the repository to see if the user is site manager or not var userIsSiteManager = false; // Check to see if user is on user dashboard or site dashboard... // if on site dashboard, check for permission, // if on user dashboard, grant permission if(page.url.templateArgs.sit...
JavaScript
if (typeof politie == "undefined" || !politie) { var politie = {}; politie.dashlet = {}; } /** * politie.dashlet.GetLatestDoc */ (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event; /** * GetLatestDoc constructor. *...
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.ShockwaveFlas...
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 isOp...
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.attachEvent...
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 isOp...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
/* * 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 law or agreed to ...
JavaScript
/* * 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 law or agreed to ...
JavaScript
/* * 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 law or agreed to ...
JavaScript
/* * jsTree 1.0-rc3 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Date: 2...
JavaScript
/* * 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 law or agreed to ...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
/** * @authors TODO * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; this.container = el || document....
JavaScript
(function(window) { var ORIGIN_ = location.protocol + '//' + location.host; function SlideController() { this.popup = null; this.isPopup = window.opener; if (this.setupDone()) { window.addEventListener('message', this.onMessage_.bind(this), false); // Close popups if we reload the main window. win...
JavaScript
/* Copyright (C) 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 law or agreed to in writing, softwa...
JavaScript
/* * Hammer.JS * version 0.4 * author: Eight Media * https://github.com/EightMedia/hammer.js */ function Hammer(element, options, undefined) { var self = this; var defaults = { // prevent the default event or not... might be buggy when false prevent_default : false, css_hacks ...
JavaScript
require(['order!../slide_config', 'order!modernizr.custom.45394', 'order!prettify/prettify', 'order!hammer', 'order!slide-controller', 'order!slide-deck'], function(someModule) { });
JavaScript
var SLIDE_CONFIG = { // Slide settings settings: { title: 'Building Web Applications that use Google APIs and the JavaScript Client for Google APIs', subtitle: '', useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify: true, // Default: true enableSlideAreas:...
JavaScript
/** * Share Header component GET method */ const PREF_COLLAPSED_TWISTERS = "org.alfresco.share.twisters.collapsed"; /** * Twister Preferences */ function getTwisterPrefs() { var collapsedTwisters = "", result, response; result = remote.call("/api/people/" + encodeURIComponent(use...
JavaScript
function main() { var logoId = json.get("site-options-logo"); var siteId = json.get("siteId"); if (logoId != null && (logoId = new String(logoId)).length != 0) { var p = sitedata.getPage("site/" + siteId + "/dashboard"); p.properties.siteLogo = logoId != "reset"...
JavaScript
function main() { var logo = context.getSiteConfiguration().getProperty("logo"); var siteId = page.url.templateArgs.site || ""; if (siteId !== "") { var p = sitedata.getPage("site/" + siteId + "/dashboard"); var siteLogo = p.properties.siteLogo; model.siteLogo = siteLogo; if (siteLogo !== null && ty...
JavaScript
/** * Collaboration Site Title component GET method */ function main() { // Call the repository for the site profile var json = remote.call("/api/sites/" + page.url.templateArgs.site); var profile = { title: "", shortName: "", visibility: "PUBLIC" }; if (json...
JavaScript
/** * SiteLogo tool component. * * @namespace Alfresco * @class Alfresco.SiteLogo */ (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, Element = YAHOO.util.Element; /** * Alfresco Slingshot aliases */ var $html = Alfresco.u...
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
var SITE_LOGO = "site_logo"; function main() { try { logger.log("Uploading new site logo"); var filename = null; var content = null; var siteId = url.templateArgs.siteId; // locate file attributes for each (field in formdata.fields) { if (field.name == "fileda...
JavaScript
/** * Share Header component GET method */ const PREF_COLLAPSED_TWISTERS = "org.alfresco.share.twisters.collapsed"; /** * Twister Preferences */ function getTwisterPrefs() { var collapsedTwisters = "", result, response; result = remote.call("/api/people/" + encodeURIComponent(user.name) + "/pre...
JavaScript
function main() { var logoId = json.get("site-options-logo"); var siteId = json.get("siteId"); if (logoId != null && (logoId = new String(logoId)).length != 0) { var p = sitedata.getPage("site/" + siteId + "/dashboard"); p.properties.siteLogo = logoId != "reset"...
JavaScript
function main() { var logo = context.getSiteConfiguration().getProperty("logo"); var siteId = page.url.templateArgs.site || ""; if (siteId !== "") { var p = sitedata.getPage("site/" + siteId + "/dashboard"); var siteLogo = p.properties.siteLogo; model.siteLogo = siteLogo; if (siteLogo !== null && ty...
JavaScript
/** * SiteLogo tool component. * * @namespace Alfresco * @class Alfresco.SiteLogo */ (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, Element = YAHOO.util.Element; /** * Alfresco Slingshot aliases */ var $html = Alfresco.u...
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
/** * Change Site Logo template controller script */ function main() { // product edition information var edition = context.properties["editionInfo"].edition; // return an map of group->tool[] information var toolInfo = {}; // the current tool may have been specified on the URL var currentT...
JavaScript
function main() { var logoId = json.get("site-options-logo"); var siteId = json.get("siteId"); if (logoId != null && (logoId = new String(logoId)).length != 0) { var p = sitedata.getPage("site/" + siteId + "/dashboard"); p.properties.siteLogo = logoId != "reset"...
JavaScript
function main() { var logo = context.getSiteConfiguration().getProperty("logo"); var siteId = page.url.templateArgs.site || ""; if (siteId !== "") { var p = sitedata.getPage("site/" + siteId + "/dashboard"); var siteLogo = p.properties.siteLogo; model.siteLogo = siteLogo; if (siteLogo !== null && ty...
JavaScript
var siteConfig = widgetUtils.findObject(model.jsonModel, "id", "HEADER_SITE_CONFIGURATION_DROPDOWN"); if (siteConfig != null) { // Add Customize Dashboard siteConfig.config.widgets.push({ id : "HEADER_CUSTOMIZE_SITE_LOGO", name : "alfresco/menus/AlfMenuItem", config : { id : "HEADER_CUSTOMIZE_SIT...
JavaScript
/** * Change Site Logo template controller script */ function main() { // product edition information var edition = context.properties["editionInfo"].edition; // return an map of group->tool[] information var toolInfo = {}; // the current tool may have been specified on the URL var currentT...
JavaScript
/** * Share Header component GET method */ const PREF_COLLAPSED_TWISTERS = "org.alfresco.share.twisters.collapsed"; /** * Twister Preferences */ function getTwisterPrefs() { var collapsedTwisters = "", result, response; result = remote.call("/api/people/" + encodeURIComponent(use...
JavaScript
function main() { var logoId = json.get("site-options-logo"); var siteId = json.get("siteId"); if (logoId != null && (logoId = new String(logoId)).length != 0) { var p = sitedata.getPage("site/" + siteId + "/dashboard"); p.properties.siteLogo = logoId != "reset"...
JavaScript
function main() { var logo = context.getSiteConfiguration().getProperty("logo"); var siteId = page.url.templateArgs.site || ""; if (siteId !== "") { var p = sitedata.getPage("site/" + siteId + "/dashboard"); var siteProperties = p.properties; if (siteProperties !== null ) { var siteLogo = p.properties.s...
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
/** * Advanced Search component GET method */ function main() { // fetch the request params required by the advanced search component template var siteId = (page.url.templateArgs["site"] != null) ? page.url.templateArgs["site"] : ""; // get the search forms from the config var formsElements = config....
JavaScript
(function() { YAHOO.Bubbling.fire("registerAction", { actionName: "onActionZKEditOnline", fn: function ZK_onActionZKEditOnline(file) { var davProtocol = "dav"; if(window.location.protocol.indexOf("https") != -1){ davProtocol = "davs"; } ...
JavaScript
/** * Document List Component: Create New Node - create copy of node template in the Data Dictionary */ function main() { // get the arguments - expecting the "sourceNodeRef" and "parentNodeRef" of the source node to copy // and the parent node to contain the new copy of the source. var sourcePath = json.get...
JavaScript
function sortByIndex(obj1, obj2) { return (obj1.index > obj2.index) ? 1 : (obj1.index < obj2.index) ? -1 : 0; } if (model.widgets) { for (var i = 0; i < model.widgets.length; i++) { var widget = model.widgets[i]; if (widget.id == "DocListToolbar") { var newCreateContent = []; ...
JavaScript
function sortByIndex(obj1, obj2) { return (obj1.index > obj2.index) ? 1 : (obj1.index < obj2.index) ? -1 : 0; } if (model.widgets) { for (var i = 0; i < model.widgets.length; i++) { var widget = model.widgets[i]; if (widget.id == "DocListToolbar") { var newCreateContent = []; ...
JavaScript
/** * Redpill Linpro root namespace. * * @namespace Extras */ if (typeof RPLP == "undefined" || !RPLP) { var RPLP = {}; } /** * MS Office creatable client script * * @namespace RPLP * @class RPLP.MsOfficeCreateNewDocument */ (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom...
JavaScript
document.getElementById('save').addEventListener('click', function() { localStorage.setItem('bypassRules', document.getElementById('bypass-rules').value); localStorage.setItem('adblockRules', document.getElementById('adblock-rules').value); chrome.extension.getBackgroundPage().reloadProxy(); ...
JavaScript
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete. The FileProgress class is not part of SWFUpload. */ /* ********************** Event Handlers These are my custom event handlers to make my web application behave the way I went wh...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML elem...
JavaScript
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete. The FileProgress class is not part of SWFUpload. */ /* ********************** Event Handlers These are my custom event handlers to make my web application behave the way I went wh...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
/* Speed Plug-in Features: *Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc. - currentSpeed -- String indicating the upload speed, bytes per second - averageSpeed -- Overall average upload speed, bytes per second - movingAverageSpeed -- Speed over a...
JavaScript
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete. The FileProgress class is not part of SWFUpload. */ /* ********************** Event Handlers These are my custom event handlers to make my web application behave the way I went wh...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML elem...
JavaScript
function fileQueueError(file, errorCode, message) { try { var imageName = "error.gif"; var errorName = ""; if (errorCode === SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) { errorName = "You have attempted to queue too many files."; } if (errorName !== "") { alert(errorName); return; } ...
JavaScript
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete. The FileProgress class is not part of SWFUpload. */ /* ********************** Event Handlers These are my custom event handlers to make my web application behave the way I went wh...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML elem...
JavaScript