Remove YUI
@ -9,7 +9,6 @@ node/
|
||||
|
||||
# libraries / external deps / generated files
|
||||
src/main/js/plugin-setup-wizard/bootstrap-detached.js
|
||||
war/src/main/webapp/scripts/yui
|
||||
war/src/main/webapp/jsbundles/
|
||||
src/main/scss/_bootstrap.scss
|
||||
|
||||
|
@ -662,18 +662,13 @@ public class Functions {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the suffix to use for YUI JavaScript.
|
||||
* @deprecated yui has been removed, do not call this
|
||||
*/
|
||||
@Deprecated(forRemoval = true, since = "TODO")
|
||||
public static String getYuiSuffix() {
|
||||
return DEBUG_YUI ? "debug" : "min";
|
||||
return "min";
|
||||
}
|
||||
|
||||
/**
|
||||
* Set to true if you need to use the debug version of YUI.
|
||||
*/
|
||||
@SuppressFBWarnings(value = "MS_SHOULD_BE_FINAL", justification = "for script console")
|
||||
public static boolean DEBUG_YUI = SystemProperties.getBoolean("debug.YUI");
|
||||
|
||||
/**
|
||||
* Creates a sub map by using the given range (both ends inclusive).
|
||||
*/
|
||||
|
@ -1,57 +0,0 @@
|
||||
/*
|
||||
* The MIT License
|
||||
*
|
||||
* Copyright (c) 2024, Markus Winter
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package jenkins.model.experimentalflags;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.NonNull;
|
||||
import edu.umd.cs.findbugs.annotations.Nullable;
|
||||
import hudson.Extension;
|
||||
import jenkins.util.SystemProperties;
|
||||
import org.kohsuke.accmod.Restricted;
|
||||
import org.kohsuke.accmod.restrictions.NoExternalUse;
|
||||
|
||||
@Extension
|
||||
@Restricted(NoExternalUse.class)
|
||||
public class RemoveYuiUserExperimentalFlag extends BooleanUserExperimentalFlag {
|
||||
public RemoveYuiUserExperimentalFlag() {
|
||||
super("remove-yui.flag");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return "Remove YUI";
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public String getShortDescription() {
|
||||
return "Remove YUI from all Jenkins UI pages. This will break anything that depends on YUI";
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public Boolean getDefaultValue() {
|
||||
return SystemProperties.getBoolean(RemoveYuiUserExperimentalFlag.class.getName() + ".defaultValue", true);
|
||||
}
|
||||
}
|
@ -163,7 +163,7 @@ var repeatableSupport = {
|
||||
};
|
||||
|
||||
// do the ones that extract innerHTML so that they can get their original HTML before
|
||||
// other behavior rules change them (like YUI buttons.)
|
||||
// other behavior rules change them.
|
||||
Behaviour.specify("DIV.repeated-container", "repeatable", -100, function (e) {
|
||||
if (isInsideRemovable(e)) {
|
||||
return;
|
||||
|
@ -128,37 +128,9 @@ THE SOFTWARE.
|
||||
|
||||
<st:adjunct includes="org.kohsuke.stapler.bind"/>
|
||||
|
||||
<l:userExperimentalFlag var="removeYUI" flagClassName="jenkins.model.experimentalflags.RemoveYuiUserExperimentalFlag" />
|
||||
<j:if test="${!removeYUI}">
|
||||
<!-- To use the debug version of YUI, set the system property 'debug.YUI' to true -->
|
||||
<j:set var="yuiSuffix" value="${h.yuiSuffix}" />
|
||||
<l:yui module="yahoo" />
|
||||
<l:yui module="dom" />
|
||||
<l:yui module="event" />
|
||||
<j:if test="${h.yuiSuffix=='debug'}">
|
||||
<l:yui module="logger" />
|
||||
</j:if>
|
||||
<l:yui module="animation" />
|
||||
<l:yui module="dragdrop" />
|
||||
<l:yui module="container" />
|
||||
<l:yui module="connection" />
|
||||
<l:yui module="datasource" />
|
||||
<l:yui module="autocomplete" />
|
||||
<l:yui module="menu" />
|
||||
<l:yui module="element" />
|
||||
<l:yui module="button" />
|
||||
<l:yui module="storage" />
|
||||
</j:if>
|
||||
|
||||
<script src="${resURL}/scripts/hudson-behavior.js" type="text/javascript"></script>
|
||||
<script src="${resURL}/scripts/sortable.js" type="text/javascript"/>
|
||||
|
||||
<j:if test="${!removeYUI}">
|
||||
<link rel="stylesheet" href="${resURL}/scripts/yui/container/assets/container.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="${resURL}/scripts/yui/container/assets/skins/sam/container.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="${resURL}/scripts/yui/menu/assets/skins/sam/menu.css" type="text/css" />
|
||||
</j:if>
|
||||
|
||||
<l:hasPermission permission="${app.READ}">
|
||||
<link rel="search" type="application/opensearchdescription+xml" href="${rootURL}/opensearch.xml" title="Jenkins" />
|
||||
</l:hasPermission>
|
||||
@ -178,7 +150,7 @@ THE SOFTWARE.
|
||||
<script src="${resURL}/jsbundles/sortable-drag-drop.js" type="text/javascript"/>
|
||||
<script src="${resURL}/jsbundles/app.js" type="text/javascript" defer="true" />
|
||||
</head>
|
||||
<body id="jenkins" class="${removeYUI ? '' : 'yui-skin-sam'} ${layoutType} jenkins-${h.version}" data-version="${h.version}" data-model-type="${it.class.name}">
|
||||
<body id="jenkins" class="${layoutType} jenkins-${h.version}" data-version="${h.version}" data-model-type="${it.class.name}">
|
||||
<l:command-palette />
|
||||
|
||||
<j:if test="${layoutType!='full-screen'}">
|
||||
|
@ -36,11 +36,6 @@ THE SOFTWARE.
|
||||
<j:if test="${mode=='side-panel'}">
|
||||
<div id="side-panel" class="app-page-body__sidebar ${attrs.sticky == 'true' ? 'app-page-body__sidebar--sticky' : ''}">
|
||||
<d:invokeBody />
|
||||
<!-- add YUI logger if debugging YUI -->
|
||||
<j:if test="${h.yuiSuffix=='debug'}">
|
||||
<!-- script to transform this into the Logger Console is done in hudson-behavior.js -->
|
||||
<div id="yui-logreader" style="margin-top:1em"/>
|
||||
</j:if>
|
||||
</div>
|
||||
</j:if>
|
||||
|
||||
|
@ -25,16 +25,9 @@ THE SOFTWARE.
|
||||
<?jelly escape-by-default='true'?>
|
||||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
|
||||
<st:documentation>
|
||||
Load Yahoo UI module.
|
||||
<st:attribute name="module" use="required">
|
||||
YUI module name to load.
|
||||
Remove this tag, YUI has been removed from Jenkins
|
||||
<st:attribute name="module" deprecated="true">
|
||||
Remove this tag, YUI has been removed from Jenkins
|
||||
</st:attribute>
|
||||
</st:documentation>
|
||||
<!--
|
||||
We used to take @suffix as '-beta' to loa beta modules, but as of YUI 2.9 there's no beta module.
|
||||
I don't think YUI2 will get new beta modules in the future, but if we do, we need to compute them
|
||||
from the module name, since older plugins specify suffix="-beta" for modules that have graduated
|
||||
beta since then.
|
||||
-->
|
||||
<script src="${resURL}/scripts/yui/${module}/${module}-${yuiSuffix}.js" />
|
||||
</j:jelly>
|
@ -19,7 +19,6 @@ module.exports = [
|
||||
".pnp.cjs",
|
||||
".pnp.loader.mjs",
|
||||
"src/main/js/plugin-setup-wizard/bootstrap-detached.js",
|
||||
"war/src/main/webapp/scripts/yui/*",
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -6,4 +6,3 @@
|
||||
@use "style";
|
||||
@use "typography";
|
||||
@use "visibility-utils";
|
||||
@use "yui-compatibility";
|
||||
|
@ -729,23 +729,6 @@ table.progress-bar.red td.progress-bar-done {
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================= YUI dialog ========================= */
|
||||
|
||||
/* discovered this margin fix by a trial and error. This can very well be a totally wrong fix, or perhaps updating
|
||||
to the latest YUI will fix this? */
|
||||
.dialog .hd {
|
||||
margin: 0 !important;
|
||||
font-size: var(--font-size-xs) !important;
|
||||
}
|
||||
|
||||
.dialog .bd {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.dialog .ft {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* ========================= tags/labels ================== */
|
||||
// Used in core/src/main/java/hudson/util/TagCloud.java#getClassName
|
||||
|
||||
|
@ -1,247 +0,0 @@
|
||||
/**
|
||||
* Backport of the YUI CSS for the autocomplete dropdowns used in comboboxes
|
||||
*
|
||||
* This code was included in the skin.css file that is no longer used since
|
||||
* https://github.com/jenkinsci/jenkins/commit/d1cd03f48103f5624790b15335eaf6ac04fdb6ad
|
||||
*/
|
||||
.yui-skin-sam .yui-ac {
|
||||
position: relative;
|
||||
font-size: 100%;
|
||||
|
||||
// Removed a font-size: arial declaration that was present on the skin.css file
|
||||
// for this selector
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-container {
|
||||
position: absolute;
|
||||
top: 1.6em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-content {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
border: 1px solid #808080;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
z-index: 9050;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-shadow {
|
||||
position: absolute;
|
||||
margin: 0.3em;
|
||||
width: 100%;
|
||||
background: #000;
|
||||
-moz-opacity: 0.1;
|
||||
opacity: 0.1;
|
||||
filter: alpha(opacity=10);
|
||||
z-index: 9049;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac iframe {
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
padding-right: 0.3em;
|
||||
padding-bottom: 0.3em;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-content ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-content li {
|
||||
margin: 0;
|
||||
padding: 2px 5px;
|
||||
cursor: default;
|
||||
white-space: nowrap;
|
||||
list-style: none;
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight {
|
||||
background: var(--auto-complete-bg-color--prehighlight);
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-highlight {
|
||||
background: #426fd9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#jenkins.yui-skin-sam {
|
||||
.yui-menu ul {
|
||||
border-color: var(--input-border);
|
||||
}
|
||||
|
||||
.yuimenuitem-selected {
|
||||
background-color: var(--menu-selected-color);
|
||||
}
|
||||
|
||||
.yuimenuitemlabel {
|
||||
color: var(--menu-text-color);
|
||||
font-weight: normal;
|
||||
// Done to align icons
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&:visited {
|
||||
color: var(--menu-text-color);
|
||||
}
|
||||
|
||||
// Disabled items
|
||||
&.yuimenuitemlabel-disabled {
|
||||
cursor: default;
|
||||
color: #a6a6a6;
|
||||
}
|
||||
|
||||
// Align icons and text within
|
||||
span {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.yuimenu {
|
||||
z-index: 1000 !important;
|
||||
|
||||
.bd {
|
||||
border-color: var(--input-border);
|
||||
background-color: var(--menu-bg-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Overrides for treeview-skin.css */
|
||||
.ygtvitem {
|
||||
.ygtvlabel,
|
||||
.ygtvlabel:link,
|
||||
.ygtvlabel:visited,
|
||||
.ygtvlabel:hover {
|
||||
color: inherit;
|
||||
background-color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.ygtvfocus {
|
||||
background-color: var(--panel-header-bg-color, #c0e0e0) !important;
|
||||
}
|
||||
|
||||
.ygtvfocus .ygtvlabel,
|
||||
.ygtvfocus .ygtvlabel:link,
|
||||
.ygtvfocus .ygtvlabel:visited,
|
||||
.ygtvfocus .ygtvlabel:hover {
|
||||
background-color: var(--panel-header-bg-color, #c0e0e0) !important;
|
||||
}
|
||||
|
||||
div.yahooTree td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.yui-tt {
|
||||
border: 1px solid black !important;
|
||||
background-color: #fff !important;
|
||||
padding: 2px !important;
|
||||
font-family: inherit !important;
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-tt .bd {
|
||||
border: none !important;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.yuimenu li .yui-menu-tooltip {
|
||||
color: #a6a6a6;
|
||||
}
|
||||
|
||||
.yuimenu li.yui-menuitem-tooltip {
|
||||
border-bottom: 1px solid #808080;
|
||||
padding-bottom: 3px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#jenkins .yuimenuitem {
|
||||
font-size: var(--font-size-xs);
|
||||
padding: 3px;
|
||||
|
||||
svg,
|
||||
img {
|
||||
width: 1.2rem !important;
|
||||
height: 1.2rem !important;
|
||||
margin: 0.25rem 0.5rem 0.25rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
#jenkins .yuimenuitem,
|
||||
#jenkins .yuimenuitemlabel {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#jenkins .yuimenu .bd {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: var(--menu-box-shadow);
|
||||
}
|
||||
|
||||
#jenkins .yui-menu-shadow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#jenkins .yui-ac-content {
|
||||
width: 30em;
|
||||
background-color: var(--search-bg);
|
||||
overflow: hidden;
|
||||
|
||||
// TODO: chose a better box shadow
|
||||
box-shadow: var(--search-box-shadow);
|
||||
border: none;
|
||||
border-radius: var(--header-item-border-radius);
|
||||
}
|
||||
|
||||
#jenkins li.yui-ac-highlight {
|
||||
background: var(--search-box-completion-bg);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#jenkins.yui-skin-sam .yuimenuitem.yuimenuitem-hassubmenu {
|
||||
background-image: none; //Do not use background image, use CSS arrow instead
|
||||
|
||||
//Center the CSS arrow
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&::after {
|
||||
/* Right arrow */
|
||||
content: "";
|
||||
border-left: 0.35em solid #333;
|
||||
border-left: 0.35em solid var(--text-color);
|
||||
border-top: 0.35em solid transparent;
|
||||
border-bottom: 0.35em solid transparent;
|
||||
border-right: 0;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
right: 0.75em;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.yui-panel,
|
||||
.yui-panel .bd {
|
||||
background-color: var(--background) !important;
|
||||
}
|
||||
|
||||
.yui-menu-badge {
|
||||
position: relative;
|
||||
margin-left: auto;
|
||||
font-weight: 600;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 -0.375rem;
|
||||
background: var(--text-color-secondary);
|
||||
opacity: 0.1;
|
||||
border-radius: 100vmax;
|
||||
}
|
||||
}
|
@ -109,209 +109,3 @@
|
||||
.button-disabled {
|
||||
@include button-disabled;
|
||||
}
|
||||
|
||||
// Button styles
|
||||
|
||||
.yui-button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.yui-button .first-child {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.yui-button button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"],
|
||||
a.yui-button:link,
|
||||
a.yui-button:visited {
|
||||
box-sizing: border-box;
|
||||
// vertical padding:
|
||||
// 0.375rem == 6px == 32px (target height) - 4px (borders) - 16 (line) / 2
|
||||
padding: 0.375rem 1rem;
|
||||
margin-right: 0.25rem;
|
||||
margin-left: 0.25rem;
|
||||
min-width: 4.5rem;
|
||||
min-height: 2rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
font-size: var(--btn-font-size);
|
||||
line-height: var(--btn-line-height);
|
||||
font-weight: var(--btn-font-weight);
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-decoration: none;
|
||||
border: 2px solid;
|
||||
border-radius: 4px;
|
||||
transition:
|
||||
color 0.15s ease-in-out,
|
||||
background-color 0.15s ease-in-out,
|
||||
border-color 0.15s ease-in-out;
|
||||
|
||||
@include button-secondary;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
& > span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.svg-icon,
|
||||
i {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
font-size: 1rem;
|
||||
vertical-align: top;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.leading-icon {
|
||||
display: flex;
|
||||
margin-right: 0.25rem;
|
||||
|
||||
svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.trailing-icon {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.yui-button.danger button,
|
||||
input[type="button"].danger,
|
||||
input[type="reset"].danger,
|
||||
input[type="submit"].danger {
|
||||
@include button-danger;
|
||||
}
|
||||
|
||||
.yui-button.primary button,
|
||||
input[type="button"].primary,
|
||||
input[type="reset"].primary,
|
||||
input[type="submit"].primary {
|
||||
@include button-primary;
|
||||
}
|
||||
|
||||
.yui-button.link-button button,
|
||||
input[type="button"].link-button,
|
||||
input[type="reset"].link-button,
|
||||
input[type="submit"].link-button {
|
||||
@include button-link;
|
||||
}
|
||||
|
||||
.yui-button.large-button button,
|
||||
input[type="button"].large-button,
|
||||
input[type="reset"].large-button,
|
||||
input[type="submit"].large-button,
|
||||
a.yui-button.large-button {
|
||||
// vertical padding
|
||||
// 0.5rem == 8px == 40px (target height) - 4px (borders) - 20 (line) / 2
|
||||
padding: 0.5rem 1rem;
|
||||
min-width: 6.5rem;
|
||||
min-height: 2.5rem;
|
||||
font-size: var(--btn-large-font-size);
|
||||
line-height: var(--btn-large-line-height);
|
||||
|
||||
.svg-icon,
|
||||
i {
|
||||
vertical-align: top;
|
||||
height: 1.25rem;
|
||||
width: 1.25rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.yui-button-disabled button,
|
||||
.yui-button button:disabled,
|
||||
input[type="button"]:disabled,
|
||||
input[type="reset"]:disabled,
|
||||
input[type="submit"]:disabled,
|
||||
.yui-button-disabled input[type="button"],
|
||||
.yui-button-disabled input[type="reset"],
|
||||
.yui-button-disabled input[type="submit"] {
|
||||
@include button-disabled;
|
||||
}
|
||||
|
||||
a.yui-button {
|
||||
&.primary {
|
||||
@include button-primary;
|
||||
}
|
||||
|
||||
&.danger {
|
||||
@include button-danger;
|
||||
}
|
||||
|
||||
&.link-button {
|
||||
@include button-link;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
@include button-disabled;
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown buttons
|
||||
.yui-button.yui-menu-button button,
|
||||
.yui-button.yui-split-button button {
|
||||
// These buttons have a caret as the :after element
|
||||
&::after {
|
||||
display: inline-block;
|
||||
margin-left: 0.4em;
|
||||
vertical-align: 0.1875em;
|
||||
content: "";
|
||||
border-top: 0.35em solid;
|
||||
border-right: 0.35em solid transparent;
|
||||
border-bottom: 0;
|
||||
border-left: 0.35em solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.yui-button.yui-menu-button.yui-menu-button-active button,
|
||||
.yui-button.yui-split-button.yui-split-button-active button {
|
||||
&::after {
|
||||
border-bottom: 0.35em solid;
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Icon buttons
|
||||
|
||||
.yui-button.icon-button button,
|
||||
a.yui-button.icon-button:link,
|
||||
a.yui-button.icon-button:visited {
|
||||
padding: 0.25rem;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
|
||||
.svg-icon,
|
||||
i {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@include button-link;
|
||||
}
|
||||
|
||||
.yui-button.icon-button.large-button button,
|
||||
a.yui-button.icon-button.large-button {
|
||||
min-width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding: 0.625rem;
|
||||
|
||||
.svg-icon,
|
||||
i {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
@ -54,29 +54,18 @@ public class Jenkins14749Test {
|
||||
webClient.setCssErrorHandler(new CSSErrorHandler() {
|
||||
@Override
|
||||
public void warning(final CSSParseException exception) throws CSSException {
|
||||
if (!ignore(exception)) {
|
||||
errors.addError(exception);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void error(final CSSParseException exception) throws CSSException {
|
||||
if (!ignore(exception)) {
|
||||
errors.addError(exception);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fatalError(final CSSParseException exception) throws CSSException {
|
||||
if (!ignore(exception)) {
|
||||
errors.addError(exception);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean ignore(final CSSParseException exception) {
|
||||
// Keep in sync with HudsonTestCase/JenkinsRule
|
||||
return exception.getURI().contains("/yui/");
|
||||
}
|
||||
});
|
||||
return webClient;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 177 B |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%}.yui-skin-sam .yui-ac-input{position:absolute;width:100%}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#b3d4ff}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426fd9;color:#FFF}
|
Before Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 2.1 KiB |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
|
Before Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 609 B |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-picker-panel{background:#e3e3e3;border-color:#888}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px}.yui-picker{position:relative}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute}.yui-picker-hue-bg{-moz-outline:0;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px}.yui-picker-bg{-moz-outline:0;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png)}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='picker_mask.png',sizingMethod='scale')}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace}.yui-picker-controls .hd{background:transparent;border-width:0!important}.yui-picker-controls .bd{height:100px;border-width:0!important}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0}.yui-picker-controls li{padding:2px;list-style:none;margin:0}.yui-picker-controls input{font-size:.85em;width:2.4em}.yui-picker-hex-controls{clear:both;padding:2px}.yui-picker-hex-controls input{width:4.6em}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2}.yui-panel{position:relative}.yui-panel-container form{margin:0}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0}.mask.block-scrollbars{overflow:auto}.masked select,.drag select,.hide-select select{_visibility:hidden}.yui-panel-container select{_visibility:inherit}.hide-scrollbars,.hide-scrollbars *{overflow:hidden}.hide-scrollbars select{display:none}.show-scrollbars{overflow:auto}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none}.yui-tt-shadow{position:absolute}.yui-override-padding{padding:0!important}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25)}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#f2f2f2}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px}.yui-skin-sam .yui-panel .bd{padding:10px}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12)}.yui-skin-sam .yui-dialog .ft{border-top:0;padding:0 10px 10px 10px;font-size:100%}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#d4c237 #A6982b #a6982b #A6982B;border-width:1px;border-style:solid;background-color:#ffee69}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12)}
|
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 96 B |
Before Width: | Height: | Size: 407 B |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
|
Before Width: | Height: | Size: 792 B |
Before Width: | Height: | Size: 2.6 KiB |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto}.yui-skin-sam .yui-log p{margin:1px;padding:.1em}.yui-skin-sam .yui-log pre{margin:0;padding:0}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em}.yui-skin-sam .yui-log .info{background-color:#a7cc25}.yui-skin-sam .yui-log .warn{background-color:#f58516}.yui-skin-sam .yui-log .error{background-color:#e32f0b}.yui-skin-sam .yui-log .time{background-color:#a6c9d7}.yui-skin-sam .yui-log .window{background-color:#f2e886}
|
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 91 B |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubaritemlabel:visited{color:#000;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled,.yui-skin-sam .yuimenubaritemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel:visited{color:#000;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled,.yui-skin-sam .yuimenuitemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
|
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1}.yui-skin-sam .yui-pg-pages{padding:0}.yui-skin-sam .yui-pg-current{padding:3px 0}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #cbcbcb;padding:2px 6px;text-decoration:none}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:0;font-weight:bold;padding:3px 6px}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em}
|
Before Width: | Height: | Size: 9.7 KiB |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-skin-sam .yui-pv{background-color:#4a4a4a;font-family:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-pb-bar,.yui-pb-mask{width:100%;height:100%}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:0;margin:0;text-align:left}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute}.yui-pb-tl{background-position:top left}.yui-pb-tr{background-position:top right;left:50%}.yui-pb-bl{background-position:bottom left;top:50%}.yui-pb-br{background-position:bottom right;left:50%;top:50%}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1}.yui-pb-ltr .yui-pb-bar{_position:static}.yui-pb-rtl .yui-pb-bar{background-position:right}.yui-pb-btt .yui-pb-bar{background-position:left bottom}.yui-pb-bar{background-color:blue}.yui-pb{border:thin solid #808080}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y}.yui-skin-sam .yui-pb-bar{background-color:transparent}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto}.yui-skin-sam .yui-pb-range{color:#a6a6a6}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
|
Before Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.2 KiB |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
table.ygtvtable{margin-bottom:0;border:0;border-collapse:collapse}td.ygtvcell{border:0;padding:0}a.ygtvspacer{text-decoration:none;outline-style:none;display:block}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat}.ygtvblankdepthcell{width:18px;height:22px}* html .ygtvchildren{height:2%}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer}.ygtvcontent{cursor:default}.ygtvspacer{height:22px;width:18px}.ygtvfocus{background-color:#c0e0e0;border:0}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0}.ygtvfocus a{outline-style:none}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000}.ygtv-edit-TextNode{width:190px}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:0}.ygtv-edit-TextNode .ygtv-button-container{float:right}.ygtv-edit-TextNode .ygtv-input input{width:140px}.ygtv-edit-DateNode .ygtvcancel{border:0}.ygtv-edit-DateNode .ygtvok{display:none}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0}.ygtv-highlight .ygtvcontent{padding-right:1em}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat}
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
/* This file intentionally left blank */
|
@ -1,57 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
/* styles for entire widget */
|
||||
.yui-skin-sam .yui-ac {
|
||||
position:relative;font-family:arial;font-size:100%;
|
||||
}
|
||||
|
||||
/* styles for input field */
|
||||
.yui-skin-sam .yui-ac-input {
|
||||
position:absolute;width:100%;
|
||||
}
|
||||
|
||||
/* styles for results container */
|
||||
.yui-skin-sam .yui-ac-container {
|
||||
position:absolute;top:1.6em;width:100%;
|
||||
}
|
||||
|
||||
/* styles for header/body/footer wrapper within container */
|
||||
.yui-skin-sam .yui-ac-content {
|
||||
position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;
|
||||
}
|
||||
|
||||
/* styles for container shadow */
|
||||
.yui-skin-sam .yui-ac-shadow {
|
||||
position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity: 0.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;
|
||||
}
|
||||
|
||||
/* styles for container iframe */
|
||||
.yui-skin-sam .yui-ac iframe {
|
||||
opacity:0;filter: alpha(opacity=0);
|
||||
padding-right:.3em; padding-bottom:.3em; /* Bug 2026798: extend iframe to shim the shadow */
|
||||
}
|
||||
|
||||
/* styles for results list */
|
||||
.yui-skin-sam .yui-ac-content ul{
|
||||
margin:0;padding:0;width:100%;
|
||||
}
|
||||
|
||||
/* styles for result item */
|
||||
.yui-skin-sam .yui-ac-content li {
|
||||
margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;
|
||||
zoom:1; /* For IE to trigger mouse events on LI */
|
||||
}
|
||||
|
||||
/* styles for prehighlighted result item */
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight {
|
||||
background:#B3D4FF;
|
||||
}
|
||||
|
||||
/* styles for highlighted result item */
|
||||
.yui-skin-sam .yui-ac-content li.yui-ac-highlight {
|
||||
background:#426FD9;color:#FFF;
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%}.yui-skin-sam .yui-ac-input{position:absolute;width:100%}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#b3d4ff}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426fd9;color:#FFF}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
body{margin:10px}h1{font-size:138.5%}h2{font-size:123.1%}h3{font-size:108%}h1,h2,h3{margin:1em 0}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold}optgroup{font-weight:normal}abbr,acronym{border-bottom:1px dotted #000;cursor:help}em{font-style:italic}del{text-decoration:line-through}blockquote,ul,ol,dl{margin:1em}ol,ul,dl{margin-left:2em}ol{list-style:decimal outside}ul{list-style:disc outside}dl dd{margin-left:1em}th,td{border:1px solid #000;padding:.5em}th{font-weight:bold;text-align:center}caption{margin-bottom:.5em;text-align:center}sup{vertical-align:super}sub{vertical-align:sub}p,fieldset,table,pre{margin-bottom:1em}button,input[type="checkbox"],input[type="radio"],input[type="reset"],input[type="submit"]{padding:1px}img{-ms-interpolation-mode:bicubic}
|
@ -1,137 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
/**
|
||||
* YUI Base
|
||||
* @module base
|
||||
* @namespace yui-
|
||||
* @requires reset, fonts
|
||||
*/
|
||||
|
||||
body {
|
||||
/* For breathing room between content and viewport. */
|
||||
margin:10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
/* 18px via YUI Fonts CSS foundation. */
|
||||
font-size: 138.5%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
/* 16px via YUI Fonts CSS foundation. */
|
||||
font-size: 123.1%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
/* 14px via YUI Fonts CSS foundation. */
|
||||
font-size: 108%;
|
||||
}
|
||||
|
||||
h1,h2,h3 {
|
||||
/* Top & bottom margin based on font size. */
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
h1,h2,h3,h4,h5,h6,strong,dt {
|
||||
/* Bringing boldness back to headers and the strong element. */
|
||||
font-weight: bold;
|
||||
}
|
||||
optgroup {
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
abbr,acronym {
|
||||
/* Indicating to users that more info is available. */
|
||||
border-bottom: 1px dotted #000;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
em {
|
||||
/* Bringing italics back to the em element. */
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
del {
|
||||
/* Striking deleted phrases. */
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
blockquote,ul,ol,dl {
|
||||
/* Giving blockquotes and lists room to breath. */
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
ol,ul,dl {
|
||||
/* Bringing lists on to the page with breathing room. */
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
ol {
|
||||
/* Giving OL's LIs generated numbers. */
|
||||
list-style: decimal outside;
|
||||
}
|
||||
|
||||
ul {
|
||||
/* Giving UL's LIs generated disc markers. */
|
||||
list-style: disc outside;
|
||||
}
|
||||
|
||||
dl dd {
|
||||
/* Giving DD default indent. */
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
th,td {
|
||||
/* Borders and padding to make the table readable. */
|
||||
border: 1px solid #000;
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
th {
|
||||
/* Distinguishing table headers from data cells. */
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
caption {
|
||||
/* Coordinated margin to match cell's padding. */
|
||||
margin-bottom: .5em;
|
||||
/* Centered so it doesn't blend in to other content. */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
sup {
|
||||
/* to preserve line-height and selector appearance */
|
||||
vertical-align: super;
|
||||
}
|
||||
|
||||
sub {
|
||||
/* to preserve line-height and selector appearance */
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
p,
|
||||
fieldset,
|
||||
table,
|
||||
pre {
|
||||
/* So things don't run into each other. */
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
/* Opera requires 1px of padding to render with contemporary native chrome */
|
||||
button,
|
||||
input[type="checkbox"],
|
||||
input[type="radio"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
padding:1px;
|
||||
}
|
||||
|
||||
/* make IE scale images properly */
|
||||
/* see http://code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
|
||||
img {
|
||||
-ms-interpolation-mode:bicubic;
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-button {
|
||||
|
||||
display: -moz-inline-box; /* Gecko */
|
||||
display: inline-block; /* IE, Opera and Safari */
|
||||
vertical-align: text-bottom;
|
||||
|
||||
}
|
||||
|
||||
.yui-button .first-child {
|
||||
|
||||
display: block;
|
||||
*display: inline-block; /* IE */
|
||||
|
||||
}
|
||||
|
||||
.yui-button button,
|
||||
.yui-button a {
|
||||
|
||||
display: block;
|
||||
*display: inline-block; /* IE */
|
||||
border: none;
|
||||
margin: 0;
|
||||
|
||||
}
|
||||
|
||||
.yui-button button {
|
||||
|
||||
background-color: transparent;
|
||||
*overflow: visible; /* Remove superfluous padding for IE */
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
.yui-button a {
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
}
|
@ -1,219 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-skin-sam .yui-button {
|
||||
|
||||
border-width: 1px 0;
|
||||
border-style: solid;
|
||||
border-color: #808080;
|
||||
background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
|
||||
margin: auto .25em;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button .first-child {
|
||||
|
||||
border-width: 0 1px;
|
||||
border-style: solid;
|
||||
border-color: #808080;
|
||||
margin: 0 -1px;
|
||||
|
||||
/*
|
||||
Using negative margins for rounded corners won't work in IE 6 and IE 7
|
||||
(Quirks Mode Only), so set the "margin" property to "0" for those
|
||||
browsers.
|
||||
*/
|
||||
_margin: 0;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button button,
|
||||
.yui-skin-sam .yui-button a,
|
||||
.yui-skin-sam .yui-button a:visited {
|
||||
|
||||
padding: 0 10px;
|
||||
font-size: 93%; /* 12px */
|
||||
line-height: 2; /* ~24px */
|
||||
*line-height: 1.7; /* For IE */
|
||||
min-height: 2em; /* For Gecko */
|
||||
*min-height: auto; /* For IE */
|
||||
color: #000;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button a {
|
||||
|
||||
/*
|
||||
Necessary to get Buttons of type "link" to be the correct
|
||||
height in IE.
|
||||
*/
|
||||
*line-height: 1.875;
|
||||
*padding-bottom: 1px;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button button,
|
||||
.yui-skin-sam .yui-menu-button button {
|
||||
|
||||
padding-right: 20px;
|
||||
background-position: right center;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-menu-button button {
|
||||
|
||||
background-image: url(menu-button-arrow.png);
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button button {
|
||||
|
||||
background-image: url(split-button-arrow.png);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Focus state */
|
||||
|
||||
|
||||
.yui-skin-sam .yui-button-focus {
|
||||
|
||||
border-color: #7D98B8;
|
||||
background-position: 0 -1300px;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button-focus .first-child {
|
||||
|
||||
border-color: #7D98B8;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button-focus button {
|
||||
|
||||
background-image: url(split-button-arrow-focus.png);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Hover state */
|
||||
|
||||
.yui-skin-sam .yui-button-hover {
|
||||
|
||||
border-color: #7D98B8;
|
||||
background-position: 0 -1300px;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button-hover .first-child {
|
||||
|
||||
border-color: #7D98B8;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button-hover button {
|
||||
|
||||
background-image: url(split-button-arrow-hover.png);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Active state */
|
||||
|
||||
.yui-skin-sam .yui-button-active {
|
||||
|
||||
border-color: #7D98B8;
|
||||
background-position: 0 -1700px;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button-active .first-child {
|
||||
|
||||
border-color: #7D98B8;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button-activeoption {
|
||||
|
||||
border-color: #808080;
|
||||
background-position: 0 0;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button-activeoption .first-child {
|
||||
|
||||
border-color: #808080;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button-activeoption button {
|
||||
|
||||
background-image: url(split-button-arrow-active.png);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Checked state */
|
||||
|
||||
.yui-skin-sam .yui-radio-button-checked,
|
||||
.yui-skin-sam .yui-checkbox-button-checked {
|
||||
|
||||
border-color: #304369;
|
||||
background-position: 0 -1400px;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-radio-button-checked .first-child,
|
||||
.yui-skin-sam .yui-checkbox-button-checked .first-child {
|
||||
|
||||
border-color: #304369;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-radio-button-checked button,
|
||||
.yui-skin-sam .yui-checkbox-button-checked button {
|
||||
|
||||
color: #fff;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Disabled state */
|
||||
|
||||
.yui-skin-sam .yui-button-disabled {
|
||||
|
||||
border-color: #ccc;
|
||||
background-position: 0 -1500px;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button-disabled .first-child {
|
||||
|
||||
border-color: #ccc;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button-disabled button,
|
||||
.yui-skin-sam .yui-button-disabled a,
|
||||
.yui-skin-sam .yui-button-disabled a:visited {
|
||||
|
||||
color: #A6A6A6;
|
||||
cursor: default;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-menu-button-disabled button {
|
||||
|
||||
background-image: url(menu-button-arrow-disabled.png);
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-split-button-disabled button {
|
||||
|
||||
background-image: url(split-button-arrow-disabled.png);
|
||||
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
|
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 122 B |
4775
war/src/main/webapp/scripts/yui/button/button-debug.js
vendored
@ -1,994 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
version: 2.9.0
|
||||
*/
|
||||
/**
|
||||
* The Connection Manager provides a simplified interface to the XMLHttpRequest
|
||||
* object. It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
|
||||
* interactive states and server response, returning the results to a pre-defined
|
||||
* callback you create.
|
||||
*
|
||||
* @namespace YAHOO.util
|
||||
* @module connection
|
||||
* @requires yahoo
|
||||
* @requires event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The Connection Manager singleton provides methods for creating and managing
|
||||
* asynchronous transactions.
|
||||
*
|
||||
* @class YAHOO.util.Connect
|
||||
*/
|
||||
|
||||
YAHOO.util.Connect =
|
||||
{
|
||||
/**
|
||||
* @description Array of MSFT ActiveX ids for XMLHttpRequest.
|
||||
* @property _msxml_progid
|
||||
* @private
|
||||
* @static
|
||||
* @type array
|
||||
*/
|
||||
_msxml_progid:[
|
||||
'Microsoft.XMLHTTP',
|
||||
'MSXML2.XMLHTTP.3.0',
|
||||
'MSXML2.XMLHTTP'
|
||||
],
|
||||
|
||||
/**
|
||||
* @description Object literal of HTTP header(s)
|
||||
* @property _http_header
|
||||
* @private
|
||||
* @static
|
||||
* @type object
|
||||
*/
|
||||
_http_headers:{},
|
||||
|
||||
/**
|
||||
* @description Determines if HTTP headers are set.
|
||||
* @property _has_http_headers
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_has_http_headers:false,
|
||||
|
||||
/**
|
||||
* @description Determines if a default header of
|
||||
* Content-Type of 'application/x-www-form-urlencoded'
|
||||
* will be added to any client HTTP headers sent for POST
|
||||
* transactions.
|
||||
* @property _use_default_post_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_use_default_post_header:true,
|
||||
|
||||
/**
|
||||
* @description The default header used for POST transactions.
|
||||
* @property _default_post_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
|
||||
/**
|
||||
* @description The default header used for transactions involving the
|
||||
* use of HTML forms.
|
||||
* @property _default_form_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_default_form_header:'application/x-www-form-urlencoded',
|
||||
|
||||
/**
|
||||
* @description Determines if a default header of
|
||||
* 'X-Requested-With: XMLHttpRequest'
|
||||
* will be added to each transaction.
|
||||
* @property _use_default_xhr_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_use_default_xhr_header:true,
|
||||
|
||||
/**
|
||||
* @description The default header value for the label
|
||||
* "X-Requested-With". This is sent with each
|
||||
* transaction, by default, to identify the
|
||||
* request as being made by YUI Connection Manager.
|
||||
* @property _default_xhr_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_default_xhr_header:'XMLHttpRequest',
|
||||
|
||||
/**
|
||||
* @description Determines if custom, default headers
|
||||
* are set for each transaction.
|
||||
* @property _has_default_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_has_default_headers:true,
|
||||
|
||||
/**
|
||||
* @description Property modified by setForm() to determine if the data
|
||||
* should be submitted as an HTML form.
|
||||
* @property _isFormSubmit
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_isFormSubmit:false,
|
||||
|
||||
/**
|
||||
* @description Determines if custom, default headers
|
||||
* are set for each transaction.
|
||||
* @property _has_default_header
|
||||
* @private
|
||||
* @static
|
||||
* @type boolean
|
||||
*/
|
||||
_default_headers:{},
|
||||
|
||||
/**
|
||||
* @description Collection of polling references to the polling mechanism in handleReadyState.
|
||||
* @property _poll
|
||||
* @private
|
||||
* @static
|
||||
* @type object
|
||||
*/
|
||||
_poll:{},
|
||||
|
||||
/**
|
||||
* @description Queue of timeout values for each transaction callback with a defined timeout value.
|
||||
* @property _timeOut
|
||||
* @private
|
||||
* @static
|
||||
* @type object
|
||||
*/
|
||||
_timeOut:{},
|
||||
|
||||
/**
|
||||
* @description The polling frequency, in milliseconds, for HandleReadyState.
|
||||
* when attempting to determine a transaction's XHR readyState.
|
||||
* The default is 50 milliseconds.
|
||||
* @property _polling_interval
|
||||
* @private
|
||||
* @static
|
||||
* @type int
|
||||
*/
|
||||
_polling_interval:50,
|
||||
|
||||
/**
|
||||
* @description A transaction counter that increments the transaction id for each transaction.
|
||||
* @property _transaction_id
|
||||
* @private
|
||||
* @static
|
||||
* @type int
|
||||
*/
|
||||
_transaction_id:0,
|
||||
|
||||
/**
|
||||
* @description Custom event that fires at the start of a transaction
|
||||
* @property startEvent
|
||||
* @private
|
||||
* @static
|
||||
* @type CustomEvent
|
||||
*/
|
||||
startEvent: new YAHOO.util.CustomEvent('start'),
|
||||
|
||||
/**
|
||||
* @description Custom event that fires when a transaction response has completed.
|
||||
* @property completeEvent
|
||||
* @private
|
||||
* @static
|
||||
* @type CustomEvent
|
||||
*/
|
||||
completeEvent: new YAHOO.util.CustomEvent('complete'),
|
||||
|
||||
/**
|
||||
* @description Custom event that fires when handleTransactionResponse() determines a
|
||||
* response in the HTTP 2xx range.
|
||||
* @property successEvent
|
||||
* @private
|
||||
* @static
|
||||
* @type CustomEvent
|
||||
*/
|
||||
successEvent: new YAHOO.util.CustomEvent('success'),
|
||||
|
||||
/**
|
||||
* @description Custom event that fires when handleTransactionResponse() determines a
|
||||
* response in the HTTP 4xx/5xx range.
|
||||
* @property failureEvent
|
||||
* @private
|
||||
* @static
|
||||
* @type CustomEvent
|
||||
*/
|
||||
failureEvent: new YAHOO.util.CustomEvent('failure'),
|
||||
|
||||
/**
|
||||
* @description Custom event that fires when a transaction is successfully aborted.
|
||||
* @property abortEvent
|
||||
* @private
|
||||
* @static
|
||||
* @type CustomEvent
|
||||
*/
|
||||
abortEvent: new YAHOO.util.CustomEvent('abort'),
|
||||
|
||||
/**
|
||||
* @description A reference table that maps callback custom events members to its specific
|
||||
* event name.
|
||||
* @property _customEvents
|
||||
* @private
|
||||
* @static
|
||||
* @type object
|
||||
*/
|
||||
_customEvents:
|
||||
{
|
||||
onStart:['startEvent', 'start'],
|
||||
onComplete:['completeEvent', 'complete'],
|
||||
onSuccess:['successEvent', 'success'],
|
||||
onFailure:['failureEvent', 'failure'],
|
||||
onUpload:['uploadEvent', 'upload'],
|
||||
onAbort:['abortEvent', 'abort']
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Member to add an ActiveX id to the existing xml_progid array.
|
||||
* In the event(unlikely) a new ActiveX id is introduced, it can be added
|
||||
* without internal code modifications.
|
||||
* @method setProgId
|
||||
* @public
|
||||
* @static
|
||||
* @param {string} id The ActiveX id to be added to initialize the XHR object.
|
||||
* @return void
|
||||
*/
|
||||
setProgId:function(id)
|
||||
{
|
||||
this._msxml_progid.unshift(id);
|
||||
YAHOO.log('ActiveX Program Id ' + id + ' added to _msxml_progid.', 'info', 'Connection');
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Member to override the default POST header.
|
||||
* @method setDefaultPostHeader
|
||||
* @public
|
||||
* @static
|
||||
* @param {boolean} b Set and use default header - true or false .
|
||||
* @return void
|
||||
*/
|
||||
setDefaultPostHeader:function(b)
|
||||
{
|
||||
if(typeof b == 'string'){
|
||||
this._default_post_header = b;
|
||||
this._use_default_post_header = true;
|
||||
|
||||
YAHOO.log('Default POST header set to ' + b, 'info', 'Connection');
|
||||
}
|
||||
else if(typeof b == 'boolean'){
|
||||
this._use_default_post_header = b;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Member to override the default transaction header..
|
||||
* @method setDefaultXhrHeader
|
||||
* @public
|
||||
* @static
|
||||
* @param {boolean} b Set and use default header - true or false .
|
||||
* @return void
|
||||
*/
|
||||
setDefaultXhrHeader:function(b)
|
||||
{
|
||||
if(typeof b == 'string'){
|
||||
this._default_xhr_header = b;
|
||||
YAHOO.log('Default XHR header set to ' + b, 'info', 'Connection');
|
||||
}
|
||||
else{
|
||||
this._use_default_xhr_header = b;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Member to modify the default polling interval.
|
||||
* @method setPollingInterval
|
||||
* @public
|
||||
* @static
|
||||
* @param {int} i The polling interval in milliseconds.
|
||||
* @return void
|
||||
*/
|
||||
setPollingInterval:function(i)
|
||||
{
|
||||
if(typeof i == 'number' && isFinite(i)){
|
||||
this._polling_interval = i;
|
||||
YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Instantiates a XMLHttpRequest object and returns an object with two properties:
|
||||
* the XMLHttpRequest instance and the transaction id.
|
||||
* @method createXhrObject
|
||||
* @private
|
||||
* @static
|
||||
* @param {int} transactionId Property containing the transaction id for this transaction.
|
||||
* @return object
|
||||
*/
|
||||
createXhrObject:function(transactionId)
|
||||
{
|
||||
var obj,http,i;
|
||||
try
|
||||
{
|
||||
// Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
|
||||
http = new XMLHttpRequest();
|
||||
// Object literal with http and tId properties
|
||||
obj = { conn:http, tId:transactionId, xhr: true };
|
||||
YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
for(i=0; i<this._msxml_progid.length; ++i){
|
||||
try
|
||||
{
|
||||
// Instantiates XMLHttpRequest for IE and assign to http
|
||||
http = new ActiveXObject(this._msxml_progid[i]);
|
||||
// Object literal with conn and tId properties
|
||||
obj = { conn:http, tId:transactionId, xhr: true };
|
||||
YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection');
|
||||
break;
|
||||
}
|
||||
catch(e1){}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description This method is called by asyncRequest to create a
|
||||
* valid connection object for the transaction. It also passes a
|
||||
* transaction id and increments the transaction id counter.
|
||||
* @method getConnectionObject
|
||||
* @private
|
||||
* @static
|
||||
* @return {object}
|
||||
*/
|
||||
getConnectionObject:function(t)
|
||||
{
|
||||
var o, tId = this._transaction_id;
|
||||
|
||||
try
|
||||
{
|
||||
if(!t){
|
||||
o = this.createXhrObject(tId);
|
||||
}
|
||||
else{
|
||||
o = {tId:tId};
|
||||
if(t==='xdr'){
|
||||
o.conn = this._transport;
|
||||
o.xdr = true;
|
||||
}
|
||||
else if(t==='upload'){
|
||||
o.upload = true;
|
||||
}
|
||||
}
|
||||
|
||||
if(o){
|
||||
this._transaction_id++;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
return o;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Method for initiating an asynchronous request via the XHR object.
|
||||
* @method asyncRequest
|
||||
* @public
|
||||
* @static
|
||||
* @param {string} method HTTP transaction method
|
||||
* @param {string} uri Fully qualified path of resource
|
||||
* @param {callback} callback User-defined callback function or object
|
||||
* @param {string} postData POST body
|
||||
* @return {object} Returns the connection object
|
||||
*/
|
||||
asyncRequest:function(method, uri, callback, postData)
|
||||
{
|
||||
var args = callback&&callback.argument?callback.argument:null,
|
||||
YCM = this,
|
||||
o, t;
|
||||
|
||||
if(this._isFileUpload){
|
||||
t = 'upload';
|
||||
}
|
||||
else if(callback && callback.xdr){
|
||||
t = 'xdr';
|
||||
}
|
||||
|
||||
o = this.getConnectionObject(t);
|
||||
if(!o){
|
||||
YAHOO.log('Unable to create connection object.', 'error', 'Connection');
|
||||
return null;
|
||||
}
|
||||
else{
|
||||
|
||||
// Intialize any transaction-specific custom events, if provided.
|
||||
if(callback && callback.customevents){
|
||||
this.initCustomEvents(o, callback);
|
||||
}
|
||||
|
||||
if(this._isFormSubmit){
|
||||
if(this._isFileUpload){
|
||||
window.setTimeout(function(){YCM.uploadFile(o, callback, uri, postData);}, 10);
|
||||
return o;
|
||||
}
|
||||
|
||||
// If the specified HTTP method is GET, setForm() will return an
|
||||
// encoded string that is concatenated to the uri to
|
||||
// create a querystring.
|
||||
if(method.toUpperCase() == 'GET'){
|
||||
if(this._sFormData.length !== 0){
|
||||
// If the URI already contains a querystring, append an ampersand
|
||||
// and then concatenate _sFormData to the URI.
|
||||
uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
|
||||
}
|
||||
}
|
||||
else if(method.toUpperCase() == 'POST'){
|
||||
// If POST data exist in addition to the HTML form data,
|
||||
// it will be concatenated to the form data.
|
||||
postData = postData?this._sFormData + "&" + postData:this._sFormData;
|
||||
}
|
||||
}
|
||||
|
||||
if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
|
||||
// If callback.cache is defined and set to false, a
|
||||
// timestamp value will be added to the querystring.
|
||||
uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
|
||||
}
|
||||
|
||||
// Each transaction will automatically include a custom header of
|
||||
// "X-Requested-With: XMLHttpRequest" to identify the request as
|
||||
// having originated from Connection Manager.
|
||||
if(this._use_default_xhr_header){
|
||||
if(!this._default_headers['X-Requested-With']){
|
||||
this.initHeader('X-Requested-With', this._default_xhr_header, true);
|
||||
YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.', 'info', 'Connection');
|
||||
}
|
||||
}
|
||||
|
||||
//If the transaction method is POST and the POST header value is set to true
|
||||
//or a custom value, initalize the Content-Type header to this value.
|
||||
if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
|
||||
this.initHeader('Content-Type', this._default_post_header);
|
||||
YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.', 'info', 'Connection');
|
||||
}
|
||||
|
||||
if(o.xdr){
|
||||
this.xdr(o, method, uri, callback, postData);
|
||||
return o;
|
||||
}
|
||||
|
||||
o.conn.open(method, uri, true);
|
||||
//Initialize all default and custom HTTP headers,
|
||||
if(this._has_default_headers || this._has_http_headers){
|
||||
this.setHeader(o);
|
||||
}
|
||||
|
||||
this.handleReadyState(o, callback);
|
||||
o.conn.send(postData || '');
|
||||
YAHOO.log('Transaction ' + o.tId + ' sent.', 'info', 'Connection');
|
||||
|
||||
// Reset the HTML form data and state properties as
|
||||
// soon as the data are submitted.
|
||||
if(this._isFormSubmit === true){
|
||||
this.resetFormState();
|
||||
}
|
||||
|
||||
// Fire global custom event -- startEvent
|
||||
this.startEvent.fire(o, args);
|
||||
|
||||
if(o.startEvent){
|
||||
// Fire transaction custom event -- startEvent
|
||||
o.startEvent.fire(o, args);
|
||||
}
|
||||
|
||||
return o;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description This method creates and subscribes custom events,
|
||||
* specific to each transaction
|
||||
* @method initCustomEvents
|
||||
* @private
|
||||
* @static
|
||||
* @param {object} o The connection object
|
||||
* @param {callback} callback The user-defined callback object
|
||||
* @return {void}
|
||||
*/
|
||||
initCustomEvents:function(o, callback)
|
||||
{
|
||||
var prop;
|
||||
// Enumerate through callback.customevents members and bind/subscribe
|
||||
// events that match in the _customEvents table.
|
||||
for(prop in callback.customevents){
|
||||
if(this._customEvents[prop][0]){
|
||||
// Create the custom event
|
||||
o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
|
||||
YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' created.', 'info', 'Connection');
|
||||
|
||||
// Subscribe the custom event
|
||||
o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
|
||||
YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' subscribed.', 'info', 'Connection');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description This method serves as a timer that polls the XHR object's readyState
|
||||
* property during a transaction, instead of binding a callback to the
|
||||
* onreadystatechange event. Upon readyState 4, handleTransactionResponse
|
||||
* will process the response, and the timer will be cleared.
|
||||
* @method handleReadyState
|
||||
* @private
|
||||
* @static
|
||||
* @param {object} o The connection object
|
||||
* @param {callback} callback The user-defined callback object
|
||||
* @return {void}
|
||||
*/
|
||||
|
||||
handleReadyState:function(o, callback)
|
||||
|
||||
{
|
||||
var oConn = this,
|
||||
args = (callback && callback.argument)?callback.argument:null;
|
||||
|
||||
if(callback && callback.timeout){
|
||||
this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
|
||||
}
|
||||
|
||||
this._poll[o.tId] = window.setInterval(
|
||||
function(){
|
||||
if(o.conn && o.conn.readyState === 4){
|
||||
|
||||
// Clear the polling interval for the transaction
|
||||
// and remove the reference from _poll.
|
||||
window.clearInterval(oConn._poll[o.tId]);
|
||||
delete oConn._poll[o.tId];
|
||||
|
||||
if(callback && callback.timeout){
|
||||
window.clearTimeout(oConn._timeOut[o.tId]);
|
||||
delete oConn._timeOut[o.tId];
|
||||
}
|
||||
|
||||
// Fire global custom event -- completeEvent
|
||||
oConn.completeEvent.fire(o, args);
|
||||
|
||||
if(o.completeEvent){
|
||||
// Fire transaction custom event -- completeEvent
|
||||
o.completeEvent.fire(o, args);
|
||||
}
|
||||
|
||||
oConn.handleTransactionResponse(o, callback);
|
||||
}
|
||||
}
|
||||
,this._polling_interval);
|
||||
},
|
||||
|
||||
/**
|
||||
* @description This method attempts to interpret the server response and
|
||||
* determine whether the transaction was successful, or if an error or
|
||||
* exception was encountered.
|
||||
* @method handleTransactionResponse
|
||||
* @private
|
||||
* @static
|
||||
* @param {object} o The connection object
|
||||
* @param {object} callback The user-defined callback object
|
||||
* @param {boolean} isAbort Determines if the transaction was terminated via abort().
|
||||
* @return {void}
|
||||
*/
|
||||
handleTransactionResponse:function(o, callback, isAbort)
|
||||
{
|
||||
var httpStatus, responseObject,
|
||||
args = (callback && callback.argument)?callback.argument:null,
|
||||
xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
|
||||
xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
|
||||
xdrA = isAbort;
|
||||
|
||||
try
|
||||
{
|
||||
if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
|
||||
// XDR requests will not have HTTP status defined. The
|
||||
// statusText property will define the response status
|
||||
// set by the Flash transport.
|
||||
httpStatus = o.conn.status;
|
||||
}
|
||||
else if(xdrF && !xdrA){
|
||||
// Set XDR transaction failure to a status of 0, which
|
||||
// resolves as an HTTP failure, instead of an exception.
|
||||
httpStatus = 0;
|
||||
}
|
||||
else{
|
||||
httpStatus = 13030;
|
||||
}
|
||||
}
|
||||
catch(e){
|
||||
|
||||
// 13030 is a custom code to indicate the condition -- in Mozilla/FF --
|
||||
// when the XHR object's status and statusText properties are
|
||||
// unavailable, and a query attempt throws an exception.
|
||||
httpStatus = 13030;
|
||||
}
|
||||
|
||||
if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
|
||||
responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
|
||||
if(callback && callback.success){
|
||||
if(!callback.scope){
|
||||
callback.success(responseObject);
|
||||
YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection');
|
||||
}
|
||||
else{
|
||||
// If a scope property is defined, the callback will be fired from
|
||||
// the context of the object.
|
||||
callback.success.apply(callback.scope, [responseObject]);
|
||||
YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection');
|
||||
}
|
||||
}
|
||||
|
||||
// Fire global custom event -- successEvent
|
||||
this.successEvent.fire(responseObject);
|
||||
|
||||
if(o.successEvent){
|
||||
// Fire transaction custom event -- successEvent
|
||||
o.successEvent.fire(responseObject);
|
||||
}
|
||||
}
|
||||
else{
|
||||
switch(httpStatus){
|
||||
// The following cases are wininet.dll error codes that may be encountered.
|
||||
case 12002: // Server timeout
|
||||
case 12029: // 12029 to 12031 correspond to dropped connections.
|
||||
case 12030:
|
||||
case 12031:
|
||||
case 12152: // Connection closed by server.
|
||||
case 13030: // See above comments for variable status.
|
||||
// XDR transactions will not resolve to this case, since the
|
||||
// response object is already built in the xdr response.
|
||||
responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
|
||||
if(callback && callback.failure){
|
||||
if(!callback.scope){
|
||||
callback.failure(responseObject);
|
||||
YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
|
||||
}
|
||||
else{
|
||||
callback.failure.apply(callback.scope, [responseObject]);
|
||||
YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
|
||||
if(callback && callback.failure){
|
||||
if(!callback.scope){
|
||||
callback.failure(responseObject);
|
||||
YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection');
|
||||
}
|
||||
else{
|
||||
callback.failure.apply(callback.scope, [responseObject]);
|
||||
YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fire global custom event -- failureEvent
|
||||
this.failureEvent.fire(responseObject);
|
||||
|
||||
if(o.failureEvent){
|
||||
// Fire transaction custom event -- failureEvent
|
||||
o.failureEvent.fire(responseObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.releaseObject(o);
|
||||
responseObject = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description This method evaluates the server response, creates and returns the results via
|
||||
* its properties. Success and failure cases will differ in the response
|
||||
* object's property values.
|
||||
* @method createResponseObject
|
||||
* @private
|
||||
* @static
|
||||
* @param {object} o The connection object
|
||||
* @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
|
||||
* @return {object}
|
||||
*/
|
||||
createResponseObject:function(o, callbackArg)
|
||||
{
|
||||
var obj = {}, headerObj = {},
|
||||
i, headerStr, header, delimitPos;
|
||||
|
||||
try
|
||||
{
|
||||
headerStr = o.conn.getAllResponseHeaders();
|
||||
header = headerStr.split('\n');
|
||||
for(i=0; i<header.length; i++){
|
||||
delimitPos = header[i].indexOf(':');
|
||||
if(delimitPos != -1){
|
||||
headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
|
||||
obj.tId = o.tId;
|
||||
// Normalize IE's response to HTTP 204 when Win error 1223.
|
||||
obj.status = (o.conn.status == 1223)?204:o.conn.status;
|
||||
// Normalize IE's statusText to "No Content" instead of "Unknown".
|
||||
obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
|
||||
obj.getResponseHeader = headerObj;
|
||||
obj.getAllResponseHeaders = headerStr;
|
||||
obj.responseText = o.conn.responseText;
|
||||
obj.responseXML = o.conn.responseXML;
|
||||
|
||||
if(callbackArg){
|
||||
obj.argument = callbackArg;
|
||||
}
|
||||
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description If a transaction cannot be completed due to dropped or closed connections,
|
||||
* there may be not be enough information to build a full response object.
|
||||
* The failure callback will be fired and this specific condition can be identified
|
||||
* by a status property value of 0.
|
||||
*
|
||||
* If an abort was successful, the status property will report a value of -1.
|
||||
*
|
||||
* @method createExceptionObject
|
||||
* @private
|
||||
* @static
|
||||
* @param {int} tId The Transaction Id
|
||||
* @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
|
||||
* @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
|
||||
* @return {object}
|
||||
*/
|
||||
createExceptionObject:function(tId, callbackArg, isAbort)
|
||||
{
|
||||
var COMM_CODE = 0,
|
||||
COMM_ERROR = 'communication failure',
|
||||
ABORT_CODE = -1,
|
||||
ABORT_ERROR = 'transaction aborted',
|
||||
obj = {};
|
||||
|
||||
obj.tId = tId;
|
||||
if(isAbort){
|
||||
obj.status = ABORT_CODE;
|
||||
obj.statusText = ABORT_ERROR;
|
||||
}
|
||||
else{
|
||||
obj.status = COMM_CODE;
|
||||
obj.statusText = COMM_ERROR;
|
||||
}
|
||||
|
||||
if(callbackArg){
|
||||
obj.argument = callbackArg;
|
||||
}
|
||||
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Method that initializes the custom HTTP headers for the each transaction.
|
||||
* @method initHeader
|
||||
* @public
|
||||
* @static
|
||||
* @param {string} label The HTTP header label
|
||||
* @param {string} value The HTTP header value
|
||||
* @param {string} isDefault Determines if the specific header is a default header
|
||||
* automatically sent with each transaction.
|
||||
* @return {void}
|
||||
*/
|
||||
initHeader:function(label, value, isDefault)
|
||||
{
|
||||
var headerObj = (isDefault)?this._default_headers:this._http_headers;
|
||||
|
||||
headerObj[label] = value;
|
||||
if(isDefault){
|
||||
this._has_default_headers = true;
|
||||
}
|
||||
else{
|
||||
this._has_http_headers = true;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @description Accessor that sets the HTTP headers for each transaction.
|
||||
* @method setHeader
|
||||
* @private
|
||||
* @static
|
||||
* @param {object} o The connection object for the transaction.
|
||||
* @return {void}
|
||||
*/
|
||||
setHeader:function(o)
|
||||
{
|
||||
var prop;
|
||||
if(this._has_default_headers){
|
||||
for(prop in this._default_headers){
|
||||
if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
|
||||
o.conn.setRequestHeader(prop, this._default_headers[prop]);
|
||||
YAHOO.log('Default HTTP header ' + prop + ' set with value of ' + this._default_headers[prop], 'info', 'Connection');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this._has_http_headers){
|
||||
for(prop in this._http_headers){
|
||||
if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
|
||||
o.conn.setRequestHeader(prop, this._http_headers[prop]);
|
||||
YAHOO.log('HTTP header ' + prop + ' set with value of ' + this._http_headers[prop], 'info', 'Connection');
|
||||
}
|
||||
}
|
||||
|
||||
this._http_headers = {};
|
||||
this._has_http_headers = false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Resets the default HTTP headers object
|
||||
* @method resetDefaultHeaders
|
||||
* @public
|
||||
* @static
|
||||
* @return {void}
|
||||
*/
|
||||
resetDefaultHeaders:function(){
|
||||
this._default_headers = {};
|
||||
this._has_default_headers = false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Method to terminate a transaction, if it has not reached readyState 4.
|
||||
* @method abort
|
||||
* @public
|
||||
* @static
|
||||
* @param {object} o The connection object returned by asyncRequest.
|
||||
* @param {object} callback User-defined callback object.
|
||||
* @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
|
||||
* @return {boolean}
|
||||
*/
|
||||
abort:function(o, callback, isTimeout)
|
||||
{
|
||||
var abortStatus,
|
||||
args = (callback && callback.argument)?callback.argument:null;
|
||||
o = o || {};
|
||||
|
||||
if(o.conn){
|
||||
if(o.xhr){
|
||||
if(this.isCallInProgress(o)){
|
||||
// Issue abort request
|
||||
o.conn.abort();
|
||||
|
||||
window.clearInterval(this._poll[o.tId]);
|
||||
delete this._poll[o.tId];
|
||||
|
||||
if(isTimeout){
|
||||
window.clearTimeout(this._timeOut[o.tId]);
|
||||
delete this._timeOut[o.tId];
|
||||
}
|
||||
|
||||
abortStatus = true;
|
||||
}
|
||||
}
|
||||
else if(o.xdr){
|
||||
o.conn.abort(o.tId);
|
||||
abortStatus = true;
|
||||
}
|
||||
}
|
||||
else if(o.upload){
|
||||
var frameId = 'yuiIO' + o.tId;
|
||||
var io = document.getElementById(frameId);
|
||||
|
||||
if(io){
|
||||
// Remove all listeners on the iframe prior to
|
||||
// its destruction.
|
||||
YAHOO.util.Event.removeListener(io, "load");
|
||||
// Destroy the iframe facilitating the transaction.
|
||||
document.body.removeChild(io);
|
||||
YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
|
||||
|
||||
if(isTimeout){
|
||||
window.clearTimeout(this._timeOut[o.tId]);
|
||||
delete this._timeOut[o.tId];
|
||||
}
|
||||
|
||||
abortStatus = true;
|
||||
}
|
||||
}
|
||||
else{
|
||||
abortStatus = false;
|
||||
}
|
||||
|
||||
if(abortStatus === true){
|
||||
// Fire global custom event -- abortEvent
|
||||
this.abortEvent.fire(o, args);
|
||||
|
||||
if(o.abortEvent){
|
||||
// Fire transaction custom event -- abortEvent
|
||||
o.abortEvent.fire(o, args);
|
||||
}
|
||||
|
||||
this.handleTransactionResponse(o, callback, true);
|
||||
YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection');
|
||||
}
|
||||
|
||||
return abortStatus;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Determines if the transaction is still being processed.
|
||||
* @method isCallInProgress
|
||||
* @public
|
||||
* @static
|
||||
* @param {object} o The connection object returned by asyncRequest
|
||||
* @return {boolean}
|
||||
*/
|
||||
isCallInProgress:function(o)
|
||||
{
|
||||
o = o || {};
|
||||
// if the XHR object assigned to the transaction has not been dereferenced,
|
||||
// then check its readyState status. Otherwise, return false.
|
||||
if(o.xhr && o.conn){
|
||||
return o.conn.readyState !== 4 && o.conn.readyState !== 0;
|
||||
}
|
||||
else if(o.xdr && o.conn){
|
||||
return o.conn.isCallInProgress(o.tId);
|
||||
}
|
||||
else if(o.upload === true){
|
||||
return document.getElementById('yuiIO' + o.tId)?true:false;
|
||||
}
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @description Dereference the XHR instance and the connection object after the transaction is completed.
|
||||
* @method releaseObject
|
||||
* @private
|
||||
* @static
|
||||
* @param {object} o The connection object
|
||||
* @return {void}
|
||||
*/
|
||||
releaseObject:function(o)
|
||||
{
|
||||
if(o && o.conn){
|
||||
//dereference the XHR instance.
|
||||
o.conn = null;
|
||||
|
||||
YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection');
|
||||
|
||||
//dereference the connection object.
|
||||
o = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
YAHOO.register("connection_core", YAHOO.util.Connect, {version: "2.9.0", build: "2800"});
|