flymis/WebRoot/dojojs/src/widget/Dialog.js
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.Dialog");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.ContentPane");
dojo.require("dojo.event.*");
dojo.require("dojo.gfx.color");
dojo.require("dojo.html.layout");
dojo.require("dojo.html.display");
dojo.require("dojo.html.iframe");
// summary
// Mixin for widgets implementing a modal dialog
dojo.declare(
"dojo.widget.ModalDialogBase",
null,
{
isContainer: true,
// static variables
shared: {bg: null, bgIframe: null},
// String
// provide a focusable element or element id if you need to
// work around FF's tendency to send focus into outer space on hide
focusElement: "",
// String
// color of viewport when displaying a dialog
bgColor: "black",
// Number
// opacity (0~1) of viewport color (see bgColor attribute)
bgOpacity: 0.4,
// Boolean
// if true, readjusts the dialog (and dialog background) when the user moves the scrollbar
followScroll: true,
trapTabs: function(/*Event*/ e){
// summary
// callback on focus
if(e.target == this.tabStartOuter) {
if(this._fromTrap) {
this.tabStart.focus();
this._fromTrap = false;
} else {
this._fromTrap = true;
this.tabEnd.focus();
}
} else if (e.target == this.tabStart) {
后面还有 286 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。