-
-
Save ericf/408409 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
#testDialogContainer{ | |
background-color:#efefef | |
} | |
</style> | |
</head> | |
<body> | |
<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> | |
<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> | |
<script type="text/javascript"> | |
YUI({ gallery: 'gallery-2010.05.12-19-08' }).use('testDialog', function(Y){{ | |
(new Y.Ts4isha.TestDialog()); | |
}}); | |
</script> | |
</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