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
//work around for http://yuilibrary.com/projects/yui3/ticket/2528799 | |
gallery = selectedLink.get("rel").match(/\[(.*)\]/)[1]; | |
// If image is part of a set... | |
Y.all(selectedLink.get("tagName") + "[href][rel*=" + gallery + "]").each(function () { |
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
YUI.add('validation-plugin', function(Y) { | |
function ValidationPlugin(config) { | |
ValidationPlugin.superclass.constructor.apply(this, arguments); | |
} | |
Y.mix(ValidationPlugin, { | |
NAME : "validation", | |
NS : "form", | |
ATTRS : { | |
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
YUI.add('chiclet', function(Y) { | |
function Chiclet(config) { | |
Chiclet.superclass.constructor.apply(this, arguments); | |
} | |
Y.mix(Chiclet, { | |
//YUI ATTRS | |
NAME : "Chiclet", | |
ATTRS : { | |
speed : { value : .4 }, |
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
$(this).parent().parent().parent().children('li.open').children('p.content').slideUp('500'); | |
$(this).parent().parent().parent().children('li.open').removeClass('open'); | |
$(this).parent().parent().children('p.content').slideDown('500'); | |
$(this).parent().parent().addClass('open'); |
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
Y.on( | |
"click", | |
function (e) { | |
var function_code = e.target.get("id").split("-")[1]; | |
Y.log('handling click...' + function_code, "info", log_key); | |
var container = Y.one("#manage_action"); | |
Y.io( | |
menu_config["base_url"] + function_code, |
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
<project name="PhoneGap BlackBerry Ant Build" default="build"> | |
<taskdef resource="bb-ant-defs.xml" /> | |
<!-- PROPERTY DEFINITION - FILL THESE OUT! --> | |
<!-- rapc and sigtool require the jde.home property to be set --> | |
<property name="jde.home" location="C:\Program Files (x86)\Eclipse-BlackBerry\plugins\net.rim.ejde.componentpack4.6.1_4.6.1.36\components" /> | |
<!-- Required to launch MDS-CS to allow XHR --> | |
<property name="mds.home" location="${jde.home}\MDS" /> | |
<!-- directory of simulator to copy files to --> | |
<property name="simulator.home" location="${jde.home}\simulator\" /> | |
<!-- directory of your phonegap assets (HTML/CSS/JS) - PhoneGap convention is to keep in a folder called 'www'. --> |
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
YUI.add('gallery-slider-value', function(Y) { | |
Y.Node.ATTRS.value.setter = function (val) { | |
var old = Y.DOM.getValue(this._node); | |
Y.DOM.setValue(this._node, val); | |
this.fire('valueChange', { prevVal: old, newVal: val }); | |
return this; |
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
YUI.add('sample-plugin', function(Y) { | |
//strings to help compression | |
var NODE = "node", | |
SINGLE = "single", | |
MULTIPLE = "multiple"; | |
Y.SamplePlugin = Y.Base.create("SamplePlugin", Y.Base, [], { // PROTOTYPE PROPERTIES | |
//private values | |
_type : null, |
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
<clips name="Mine" scheme="web"> | |
<clip name="HTML page stub" shortcut="html"> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>${1:Page Title}</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
${2:<!-- CSS -->} | |
</head> |
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
/** | |
* Inspired by the original Lightbox, this is a port to YUI. | |
* See Lokesh Dhakar's original at http://www.huddletogether.com/projects/lightbox2/. | |
* Currently supports everything that module supports with plans to integrate | |
* additional functionality (i.e. non-images, slideshow mode, etc.) coming soon. | |
* | |
* @module gallery-lightbox | |
*/ | |
var L = Y.Lang, |