Skip to content

Instantly share code, notes, and snippets.

View skleinei's full-sized avatar

Stefan Kleineikenscheidt skleinei

View GitHub Profile
@skleinei
skleinei / jquery.scroll-tree.js
Last active December 12, 2018 11:04
The Scroll Tree jQuery plugin allows Scroll Viewport theme developers to implement lazy loading trees more easily. More info: http://bit.ly/1ANj0QX
(function ($) {
'use strict';
// http://learn.jquery.com/plugins/basic-plugin-creation/
// http://learn.jquery.com/plugins/advanced-plugin-concepts/
$.fn.scrollTree = function (options) {
var DEFAULT_OPTIONS = {
'contextPath': '/',
@skleinei
skleinei / gist:9365235
Created March 5, 2014 11:06
Install a license in a JWebUnit test case.
// Use this in a com.atlassian.confluence.plugin.functest.AbstractConfluencePluginWebTestCase to install a license in Confluence:
static boolean isLicenseInstalled = false;
private void installLicense() {
if (!isLicenseInstalled) {
gotoPage("/admin/license.action");
setWorkingForm("updateLicenseForm");
setTextField("licenseString", LICENSE);
submit("update");