This file contains 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>JSON Schema and DataTypes</title> | |
<style> | |
td , th , table { | |
border: thin solid silver; | |
} | |
td , th { |
This file contains 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-buttons-patch', function (Y) { | |
"use strict"; | |
var WB = Y.WidgetButtons, | |
WBp = WB.prototype, | |
BUTTON = 'button', | |
getCN = Y.ClassNameManager.getClassName, | |
DISABLED = getCN(BUTTON, 'disabled'), | |
DEFAULT = getCN(BUTTON, 'default'); | |
This file contains 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
/* | |
App plugins can be loaded over an instance of App by setting a route with a wildcard path | |
such as: | |
{ | |
path:'/:app/*', | |
callback: 'dispatchApp' | |
} | |
where the app param is the module name of the plugin, | |
which should have its entry in the YUI config file (unless loaded by some other means) | |
*/ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Better yet, see: https://gist.github.com/2044488 --> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Button test</title> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.5.0pr1/build/yui/yui.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.5.0pr1/build/cssreset/reset-min.css&3.5.0pr1/build/cssfonts/fonts-min.css&3.5.0pr1/build/cssbase/base-min.css&3.5.0pr1/build/cssgrids/grids-min.css" /> |
This file contains 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
(function () { | |
var TV = YAHOO.widget.TreeView, | |
TVProt = TV.prototype, | |
Event = YAHOO.util.Event, | |
Dom = YAHOO.util.Dom; | |
TVProt.draw = TVProt.render = function () { | |
var html = this.root.getHtml(), | |
el = this.getEl(), | |
ed = TV.editorData; |
This file contains 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
ac.done = (function (original) { | |
return function (data, opts) { | |
opts = opts || {}; | |
var instance = ac.command.instance, | |
config = instance.config || {}, | |
action = instance.action, | |
children = config.children, | |
params = ac.params.getAll(), | |
me = this, | |
childOpts = opts.children || {}; |
This file contains 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
model.read(idPersona, function(err, rows) { | |
if (err) { | |
ac.error(err); | |
return; | |
} | |
ac.done({ | |
debug:Y.JSON.stringify(rows), | |
persona:rows | |
}, {params:{route: {idDireccion:rows[0].idDireccion}}}); |
This file contains 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('personView',function(Y){ | |
Y.PersonView = Y.Base.create( | |
'personView', | |
Y.View, | |
[], | |
{ | |
initializer:function(){ | |
this.model = this.get('model'); | |
}, | |
render:function(){ |
This file contains 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
var express = require('express'), | |
fs = require('fs'), | |
path = require('path'), | |
server = express.createServer(), | |
rexpTEMPLATE = /TEMPLATES\s*=\s*\{\s*\}/, | |
rexpJs = /\.js$/i, | |
rexpHtml = /\.html$/i, | |
VIEWS = '/scripts/views/', | |
MODELS = '/scripts/models/'; |
OlderNewer