Created
May 21, 2010 02:57
-
-
Save anonymous/408399 to your computer and use it in GitHub Desktop.
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
<html> | |
<head> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script> | |
<script type="text/javascript" src="testDialog.js"></script> | |
</head> | |
<body> | |
<style type="text/css"> | |
#testDialogContainer{ | |
background-color:#efefef | |
} | |
</style> | |
<script type="text/javascript"> | |
YUI().use('testDialog', function(Y){{ | |
(new Y.Ts4isha.TestDialog()); | |
}}); | |
</script> | |
<div id="testDialogContainer"> | |
<form class="yui3-widget-bd" id="testDialogForm" action="#" method="get"> | |
<fieldset> | |
<h3>Edit Markup</h3> | |
<label for="categoryName">Category Name:</label> | |
<input type="text" size="70" id="categoryName" /> | |
</fieldset> | |
<input type="submit" /> | |
</form> | |
</div> | |
</body> | |
</html> | |
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('testDialog', function(Y){ | |
var TestDialog; | |
TestDialog = function(config){ | |
TestDialog.superclass.constructor.apply(this, arguments); | |
}; | |
TestDialog.NAME = "testDialog"; | |
Y.extend(TestDialog, Y.Base, { | |
// *** Instance Members *** // | |
_dbManager : null, | |
_refManager : null, | |
_overlay : null, | |
// *** Base Methods *** // | |
initializer : function (config) { | |
this._overlay = new Y.Overlay({ srcNode : '#TestOverlayContainer', | |
visible : false, | |
centered : true, | |
constrain : true, | |
render : true, | |
visible : false, | |
plugins : [ | |
{ fn: Y.Plugin.WidgetAnim }, | |
{ fn: Y.Plugin.OverlayModal }, | |
{ fn: Y.Plugin.OverlayKeepaligned } | |
] | |
}); | |
this._overlay.render(); | |
this._overlay.hide(); | |
var dd = new Y.DD.Drag({ | |
node: '#TestDialogContainer' | |
}); | |
} | |
}); | |
Y.namespace('Ts4isha'); | |
Y.Ts4isha.TestDialog = TestDialog; | |
}, '0.0.1', {requires:['base', 'overlay', 'oop', 'classnamemanager', 'dd-drag', 'widget-anim', 'gallery-overlay-extras']}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment