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
| setValue : function(e) { | |
| var value = []; | |
| switch(e.currentTarget.get('type')){ | |
| case "select-one": //fall through intentional | |
| case "select-multiple": | |
| e.currentTarget.get('options').each(function(opt){ | |
| if(opt.get('selected') === true) { | |
| value.push(opt.get('value')); | |
| } | |
| }); |
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
| table._createTbodyTdNode = function(o) { | |
| var column = o.column; | |
| o.headers = column.headers; | |
| o.classnames = column.get("classnames"); | |
| o.value = this.formatDataCell(o); | |
| o.refId = o.data.id; | |
| return Y.Node.create(Y.substitute('<td headers="{headers}" class="{classnames}" _id="{refId}"><div class="yui3-datatable-liner editable">{value}</div></td>', o)); | |
| } |
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
| /** | |
| * Adds a method to the Y.Base prototype to handle events so that when a widget | |
| * or plugin becomes destroyed all events attached are detached. | |
| * | |
| * Requires Y.Lang & Y.Array | |
| */ | |
| YUI.add('event-handler', function(Y) { | |
| var YArray = Y.Array; |
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
| table._createTbodyTdNode = function(o) { | |
| var column = o.column; | |
| o.headers = column.headers; | |
| o.classnames = column.get("classnames"); | |
| o.value = this.formatDataCell(o); | |
| o.refId = o.data.id; | |
| return Y.Node.create(Y.substitute('<td headers="{headers}" class="{classnames}" _id="{refId}"><div class="yui3-datatable-liner editable">{value}</div></td>', o)); | |
| } |
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('event-handler', function(Y) { | |
| var YArray = Y.Array; | |
| function EventHandler() {} | |
| //Y.Base.prototype.eventHandler = { | |
| Y.mix(EventHandler.prototype, { | |
| add : function(event) { |
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
| contentBoxContent: Y.Node.create('<div class="contentboxcontent"><div id="tabviewcontainer></div></div>'), | |
| renderUI: function() { | |
| this.get('contentBox').insert(this.contentBoxContent); | |
| new Y.Tabview().render(this.get('contentBox').one('#tabviewcontainer')); | |
| } |
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().use('event-custom', function(Y) { | |
| Y.Global.on('myevent:init', function() { | |
| Y.log('event init'); | |
| }); | |
| }); | |
| YUI().use('event-custom', function(Y) { |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteRule ^$ app/webroot/ [L] | |
| RewriteRule (.*) app/webroot/$1 [L] | |
| </IfModule> |
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('widget', function(Y) { | |
| }, '1.0.0', {requires: ['node', 'gallery-awesome'}); |
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({ | |
| modules: { | |
| 'rollup' : { | |
| fullpath: 'rollup.js', | |
| requires: ['node', 'io', 'json'] | |
| } | |
| } | |
| }).use('rollup', function(Y) { | |
| //module1, module2, and module3 are available here |