import v1.0.0-RC4 | 2009-05-20
815
webdir/javascript/communityid.js
Normal file
@ -0,0 +1,815 @@
|
||||
/**
|
||||
* Classes enforce private and public members through the Module Pattern
|
||||
* (the vars outside are private, and what goes inside the return is public)
|
||||
* We use classes inside the "SCIRET" namespace
|
||||
* @see http://yuiblog.com/blog/2007/06/12/module-pattern/
|
||||
*/
|
||||
|
||||
/**
|
||||
* Aliases definitions (functions, namespaces)
|
||||
*/
|
||||
YAHOO.namespace("commid");
|
||||
COMMID = YAHOO.commid;
|
||||
|
||||
COMMID.utils = function() {
|
||||
return {
|
||||
evalScripts: function (el) {
|
||||
el = (typeof el =="string")? $(el) : el;
|
||||
var scripts = el.getElementsByTagName("script");
|
||||
for(var i=0; i < scripts.length;i++) {
|
||||
eval(scripts[i].innerHTML);
|
||||
}
|
||||
},
|
||||
|
||||
replaceContent: function(responseObj, elId) {
|
||||
$(elId).innerHTML = responseObj.responseText;
|
||||
COMMID.utils.evalScripts(elId);
|
||||
},
|
||||
|
||||
removeElement: function(element) {
|
||||
element.parentNode.removeChild(element);
|
||||
},
|
||||
|
||||
hideElement: function(elName) {
|
||||
$(elName).style.visibility = "hidden";
|
||||
},
|
||||
|
||||
unHideElement: function(elName) {
|
||||
$(elName).style.visibility = "visible";
|
||||
},
|
||||
|
||||
asyncFailed: function() {
|
||||
alert(COMMID.lang['operation failed']);
|
||||
},
|
||||
|
||||
addDatatableTranslations: function(datatableConfig) {
|
||||
datatableConfig.MSG_EMPTY = COMMID.lang["No records found."];
|
||||
datatableConfig.MSG_LOADING = COMMID.lang["Loading..."];
|
||||
datatableConfig.MSG_ERROR = COMMID.lang["Data error."];
|
||||
datatableConfig.MSG_SORTASC = COMMID.lang["Click to sort ascending"];
|
||||
datatableConfig.MSG_SORTDESC = COMMID.lang["Click to sort descending"];
|
||||
}
|
||||
}
|
||||
}();
|
||||
|
||||
/**
|
||||
* This is only to load YUI libs that don't need to be used immediately after
|
||||
* the page is loaded
|
||||
*/
|
||||
COMMID.loader = function() {
|
||||
var loader;
|
||||
|
||||
return {
|
||||
combine: true,
|
||||
base: null,
|
||||
|
||||
insert: function(arrComponents, onSuccess, scope) {
|
||||
loader = new YAHOO.util.YUILoader({
|
||||
require: arrComponents,
|
||||
onSuccess: onSuccess,
|
||||
scope: scope,
|
||||
base: this.base,
|
||||
|
||||
// uncomment to download debugging libs
|
||||
//filter: "DEBUG",
|
||||
|
||||
combine: this.combine
|
||||
});
|
||||
loader.insert();
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
/**
|
||||
* Rich-text editor
|
||||
*/
|
||||
COMMID.editor = function() {
|
||||
var myEditor;
|
||||
var state = 'off';
|
||||
var resize = null;
|
||||
|
||||
return {
|
||||
|
||||
init: function(width, height, element) {
|
||||
YAHOO.log('Create the Editor..', 'info', 'example');
|
||||
myEditor = new YAHOO.widget.Editor(element, {
|
||||
width: width,
|
||||
height: height,
|
||||
dompath: true, //Turns on the bar at the bottom
|
||||
animate: true, //Animates the opening, closing and moving of Editor windows
|
||||
handleSubmit: true
|
||||
});
|
||||
|
||||
myEditor.on('toolbarLoaded', function() {
|
||||
this.toolbar.addButtonGroup({
|
||||
group: 'editcodeGroup',
|
||||
label: ' ',
|
||||
buttons: [
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
type: 'push',
|
||||
label: 'Edit HTML Code',
|
||||
value: 'editcode'
|
||||
}]
|
||||
});
|
||||
|
||||
this.toolbar.on('editcodeClick', function() {
|
||||
var ta = this.get('element');
|
||||
var iframe = this.get('iframe').get('element');
|
||||
|
||||
if (state == 'on') {
|
||||
state = 'off';
|
||||
this.toolbar.set('disabled', false);
|
||||
YAHOO.log('Inject the HTML from the textarea into the editor', 'info', 'example');
|
||||
this.setEditorHTML(ta.value);
|
||||
if (!this.browser.ie) {
|
||||
this._setDesignMode('on');
|
||||
}
|
||||
|
||||
YAHOO.util.Dom.removeClass(iframe, 'editor-hidden');
|
||||
YAHOO.util.Dom.addClass(ta, 'editor-hidden');
|
||||
this.show();
|
||||
this._focusWindow();
|
||||
} else {
|
||||
state = 'on';
|
||||
YAHOO.log('Show the Code Editor', 'info', 'example');
|
||||
this.cleanHTML();
|
||||
YAHOO.log('Save the Editors HTML', 'info', 'example');
|
||||
YAHOO.util.Dom.addClass(iframe, 'editor-hidden');
|
||||
YAHOO.util.Dom.removeClass(ta, 'editor-hidden');
|
||||
this.toolbar.set('disabled', true);
|
||||
this.toolbar.getButtonByValue('editcode').set('disabled', false);
|
||||
this.toolbar.selectButton('editcode');
|
||||
this.dompath.innerHTML = 'Editing HTML Code';
|
||||
this.hide();
|
||||
}
|
||||
return false;
|
||||
}, this, true);
|
||||
|
||||
this.on('cleanHTML', function(ev) {
|
||||
YAHOO.log('cleanHTML callback fired..', 'info', 'example');
|
||||
this.get('element').value = ev.html;
|
||||
}, this, true);
|
||||
|
||||
this.on('afterRender', function() {
|
||||
var wrapper = this.get('editor_wrapper');
|
||||
wrapper.appendChild(this.get('element'));
|
||||
this.setStyle('width', '100%');
|
||||
this.setStyle('height', '100%');
|
||||
this.setStyle('visibility', '');
|
||||
this.setStyle('top', '');
|
||||
this.setStyle('left', '');
|
||||
this.setStyle('position', '');
|
||||
|
||||
this.addClass('editor-hidden');
|
||||
}, this, true);
|
||||
|
||||
}, myEditor, true);
|
||||
|
||||
myEditor.on('editorContentLoaded', function() {
|
||||
resize = new YAHOO.util.Resize(myEditor.get('element_cont').get('element'), {
|
||||
handles: ['br'],
|
||||
autoRatio: true,
|
||||
status: true,
|
||||
proxy: true,
|
||||
setSize: false
|
||||
});
|
||||
|
||||
resize.on('startResize', function() {
|
||||
this.hide();
|
||||
this.set('disabled', true);
|
||||
}, myEditor, true);
|
||||
|
||||
resize.on('resize', function(args) {
|
||||
var h = args.height;
|
||||
var th = (this.toolbar.get('element').clientHeight + 2); // it has a 1px border
|
||||
var dh = (this.dompath.clientHeight + 1); // it has a 1px top border
|
||||
var newH = (h - th - dh);
|
||||
this.set('width', args.width + 'px');
|
||||
this.set('height', newH + 'px');
|
||||
this.set('disabled', false);
|
||||
this.show();
|
||||
}, myEditor, true);
|
||||
});
|
||||
|
||||
myEditor._defaultToolbar.titlebar = false;
|
||||
myEditor.render();
|
||||
}
|
||||
}
|
||||
}();
|
||||
|
||||
/**
|
||||
* MessageUsers
|
||||
*/
|
||||
COMMID.messageUsers = function() {
|
||||
return {
|
||||
send: function() {
|
||||
if (!confirm(COMMID.lang["Are you sure you wish to send this message to ALL users?"])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
document.messageUsersForm.messageType.value = $('bodyPlainDt').style.display == "block"? "plain" : "rich";
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
/* gotta hide/show dt and dd's independently, to overcome an IE bug */
|
||||
switchToPlainText: function() {
|
||||
$('linkSwitchToPlain').style.display = "none";
|
||||
$('linkSwitchToRich').style.display = "block";
|
||||
|
||||
$('bodyPlainDt').style.display = "block";
|
||||
$('bodyPlainDd').style.display = "block";
|
||||
$('bodyHTMLDt').style.display = "none";
|
||||
$('bodyHTMLDd').style.display = "none";
|
||||
},
|
||||
|
||||
switchToRichText: function() {
|
||||
$('linkSwitchToPlain').style.display = "block";
|
||||
$('linkSwitchToRich').style.display = "none";
|
||||
|
||||
$('bodyPlainDt').style.display = "none";
|
||||
$('bodyPlainDd').style.display = "none";
|
||||
$('bodyHTMLDt').style.display = "block";
|
||||
$('bodyHTMLDd').style.display = "block";
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
COMMID.general = function() {
|
||||
|
||||
return {
|
||||
editAccountInfo: function() {
|
||||
COMMID.utils.unHideElement("loadingAccountInfo");
|
||||
var transaction = YAHOO.util.Connect.asyncRequest(
|
||||
'GET',
|
||||
'profilegeneral/editaccountinfo?userid=' + COMMID.targetUserId,
|
||||
{
|
||||
success: function (responseObj) {
|
||||
COMMID.utils.replaceContent(responseObj, "accountInfo")
|
||||
COMMID.utils.hideElement("loadingAccountInfo");
|
||||
},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
});
|
||||
},
|
||||
|
||||
changePassword: function() {
|
||||
COMMID.utils.unHideElement("loadingAccountInfo");
|
||||
var transaction = YAHOO.util.Connect.asyncRequest(
|
||||
'GET',
|
||||
'profilegeneral/changepassword?userid=' + COMMID.targetUserId,
|
||||
{
|
||||
success: function (responseObj) {
|
||||
COMMID.utils.replaceContent(responseObj, "accountInfo")
|
||||
COMMID.utils.hideElement("loadingAccountInfo");
|
||||
},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
});
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
|
||||
COMMID.personalInfo = function() {
|
||||
return {
|
||||
edit: function() {
|
||||
COMMID.utils.unHideElement("loadingEditPersonalInfo");
|
||||
var transaction = YAHOO.util.Connect.asyncRequest(
|
||||
'GET',
|
||||
'personalinfo/edit',
|
||||
{
|
||||
success: function (responseObj) {
|
||||
COMMID.utils.replaceContent(responseObj, "personalInfo")
|
||||
COMMID.utils.hideElement("loadingEditPersonalInfo");
|
||||
},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
|
||||
COMMID.sitesList = function() {
|
||||
var myDataSource;
|
||||
var myDataSourceURL;
|
||||
var myDataTable;
|
||||
var myPaginator;
|
||||
var myTableConfig;
|
||||
var fieldsDialog;
|
||||
|
||||
var buildQueryString = function (state,dt) {
|
||||
return "startIndex=" + state.pagination.recordOffset +
|
||||
"&results=" + state.pagination.rowsPerPage;
|
||||
};
|
||||
|
||||
var formatOperationsColumn = function(elCell, oRecord, oColumn, oData) {
|
||||
var links = new Array();
|
||||
var recordId = oRecord.getId();
|
||||
|
||||
if (oRecord.getData("trusted")) {
|
||||
links.push("<a href=\"#\" onclick=\"COMMID.sitesList.deny('" + recordId + "')\">" + COMMID.lang["deny"] + "</a>");
|
||||
} else {
|
||||
links.push("<a href=\"#\" onclick=\"COMMID.sitesList.allow('" + recordId + "')\" >" + COMMID.lang["allow"] + "</a>");
|
||||
}
|
||||
|
||||
if (oRecord.getData("infoExchanged")) {
|
||||
links.push("<a href=\"#\" onclick=\"COMMID.sitesList.showInfo('" + recordId + "')\" >" + COMMID.lang["view info exchanged"] + "</a>");
|
||||
}
|
||||
|
||||
links.push("<a href=\"#\" onclick=\"COMMID.sitesList.deleteSite('" + recordId + "')\">" + COMMID.lang["delete"] + "</a>");
|
||||
|
||||
elCell.innerHTML = links.join(" | ");
|
||||
};
|
||||
|
||||
var myColumnDefs = [
|
||||
{key: "site", label: COMMID.lang["Site"]},
|
||||
{key: "operations", label: "", formatter: formatOperationsColumn}
|
||||
];
|
||||
|
||||
return {
|
||||
init: function() {
|
||||
myDataSourceURL = COMMID.baseDir + "/sites/list?";
|
||||
|
||||
fieldsDialog = new YAHOO.widget.Dialog(
|
||||
"fieldsDialog",
|
||||
{
|
||||
width : "30em",
|
||||
effect : {
|
||||
effect : YAHOO.widget.ContainerEffect.FADE,
|
||||
duration : 0.25
|
||||
},
|
||||
fixedcenter : false,
|
||||
modal : true,
|
||||
visible : false,
|
||||
draggable : true
|
||||
}
|
||||
);
|
||||
fieldsDialog.render();
|
||||
},
|
||||
|
||||
initTable: function() {
|
||||
myDataSource = new YAHOO.util.DataSource(myDataSourceURL);
|
||||
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
|
||||
myDataSource.responseSchema = {
|
||||
resultsList: "records",
|
||||
fields: ["id", "site", "trusted", "infoExchanged"],
|
||||
metaFields : {
|
||||
totalRecords: 'totalRecords'
|
||||
}
|
||||
};
|
||||
|
||||
myPaginator = new YAHOO.widget.Paginator({
|
||||
alwaysVisible : false,
|
||||
containers : ['paging'],
|
||||
pageLinks : 5,
|
||||
rowsPerPage : 15,
|
||||
rowsPerPageOptions : [15,30,60],
|
||||
template : "<strong>{CurrentPageReport}</strong> {PreviousPageLink} {PageLinks} {NextPageLink} {RowsPerPageDropdown}",
|
||||
pageReportTemplate : "({currentPage} " + COMMID.lang["of"] + " {totalPages})",
|
||||
nextPageLinkLabel : COMMID.lang["next"] + " >",
|
||||
previousPageLinkLabel : "< " + COMMID.lang["prev"]
|
||||
});
|
||||
|
||||
myTableConfig = {
|
||||
initialRequest : 'startIndex=0&results=15',
|
||||
generateRequest : buildQueryString,
|
||||
paginator : myPaginator
|
||||
};
|
||||
COMMID.utils.addDatatableTranslations(myTableConfig);
|
||||
|
||||
myDataTable = new YAHOO.widget.DataTable("dt", myColumnDefs, myDataSource, myTableConfig);
|
||||
},
|
||||
|
||||
showInfo: function(recordId) {
|
||||
var oRecord = myDataTable.getRecord(recordId);
|
||||
var infoExchanged = oRecord.getData("infoExchanged");
|
||||
|
||||
$("fieldsDialogSite").innerHTML = oRecord.getData("site");
|
||||
|
||||
var fields = new Array();
|
||||
for (var fieldName in infoExchanged) {
|
||||
fields.push("<div class=\"yui-gf\"><div class=\"yui-u first\">" + fieldName + ":</div>\n"
|
||||
+"<div class=\"yui-u\">" + infoExchanged[fieldName] + "</div></div>");
|
||||
}
|
||||
$("fieldsDialogDl").innerHTML = fields.join("\n");
|
||||
$("fieldsDialog").style.display = "block";
|
||||
fieldsDialog.show();
|
||||
},
|
||||
|
||||
closeDialog: function() {
|
||||
fieldsDialog.hide();
|
||||
},
|
||||
|
||||
deny: function(recordId) {
|
||||
var oRecord = myDataTable.getRecord(recordId);
|
||||
var site = oRecord.getData("site");
|
||||
if (!confirm(COMMID.lang["Are you sure you wish to deny trust to this site?"] + "\n\n" + site)) {
|
||||
return;
|
||||
}
|
||||
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"POST",
|
||||
COMMID.baseDir + "/sites/deny",
|
||||
{
|
||||
success : function (responseObj) {
|
||||
try {
|
||||
var r = YAHOO.lang.JSON.parse(responseObj.responseText);
|
||||
if (r.code == 200) {
|
||||
alert(COMMID.lang["Trust the following site has been denied:"] + "\n\n" + site);
|
||||
this.initTable();
|
||||
}
|
||||
} catch (e) {
|
||||
alert(COMMID.lang["ERROR. The server returned:"] + "\n\n" + responseObj.responseText);
|
||||
}
|
||||
},
|
||||
failure : COMMID.utils.asyncFailed,
|
||||
scope : this
|
||||
},
|
||||
"id=" + oRecord.getData("id")
|
||||
);
|
||||
},
|
||||
|
||||
allow: function(recordId) {
|
||||
var oRecord = myDataTable.getRecord(recordId);
|
||||
var site = oRecord.getData("site");
|
||||
if (!confirm(COMMID.lang["Are you sure you wish to allow access to this site?"] + "\n\n" + site)) {
|
||||
return;
|
||||
}
|
||||
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"POST",
|
||||
COMMID.baseDir + "/sites/allow",
|
||||
{
|
||||
success : function (responseObj) {
|
||||
try {
|
||||
var r = YAHOO.lang.JSON.parse(responseObj.responseText);
|
||||
if (r.code == 200) {
|
||||
alert(COMMID.lang["Trust to the following site has been granted:"] + "\n\n" + site);
|
||||
this.initTable();
|
||||
}
|
||||
} catch (e) {
|
||||
alert(COMMID.lang["ERROR. The server returned:"] + "\n\n" + responseObj.responseText);
|
||||
}
|
||||
},
|
||||
failure : COMMID.utils.asyncFailed,
|
||||
scope : this
|
||||
},
|
||||
"id=" + oRecord.getData("id")
|
||||
);
|
||||
},
|
||||
|
||||
deleteSite: function(recordId) {
|
||||
var oRecord = myDataTable.getRecord(recordId);
|
||||
var site = oRecord.getData("site");
|
||||
if (!confirm(COMMID.lang["Are you sure you wish to delete your relationship with this site?"] + "\n\n" + site)) {
|
||||
return;
|
||||
}
|
||||
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"POST",
|
||||
COMMID.baseDir + "/sites/delete",
|
||||
{
|
||||
success : function (responseObj) {
|
||||
try {
|
||||
var r = YAHOO.lang.JSON.parse(responseObj.responseText);
|
||||
if (r.code == 200) {
|
||||
alert(COMMID.lang["Your relationship with the following site has been deleted:"] + "\n\n" + site);
|
||||
this.initTable();
|
||||
}
|
||||
} catch (e) {
|
||||
alert(COMMID.lang["ERROR. The server returned:"] + "\n\n" + responseObj.responseText);
|
||||
}
|
||||
},
|
||||
failure : COMMID.utils.asyncFailed,
|
||||
scope : this
|
||||
},
|
||||
"id=" + oRecord.getData("id")
|
||||
);
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
COMMID.historyList = function() {
|
||||
var myDataSource;
|
||||
var myDataSourceURL;
|
||||
var myDataTable;
|
||||
var myPaginator;
|
||||
var myTableConfig;
|
||||
|
||||
var buildQueryString = function (state,dt) {
|
||||
return "startIndex=" + state.pagination.recordOffset +
|
||||
"&results=" + state.pagination.rowsPerPage;
|
||||
};
|
||||
|
||||
var formatResultsColumn = function(elCell, oRecord, oColumn, oData) {
|
||||
switch(oRecord.getData("result")) {
|
||||
case 0:
|
||||
elCell.innerHTML = COMMID.lang["Denied"];
|
||||
break;
|
||||
case 1:
|
||||
elCell.innerHTML = COMMID.lang["Authorized"];
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
var myColumnDefs = [
|
||||
{key: "date", label: COMMID.lang["Date"]},
|
||||
{key: "site", label: COMMID.lang["Site"]},
|
||||
{key: "ip", label: COMMID.lang["IP"]},
|
||||
{key: "result", label: COMMID.lang["Result"], formatter: formatResultsColumn}
|
||||
];
|
||||
|
||||
return {
|
||||
init: function() {
|
||||
myDataSourceURL = COMMID.baseDir + "/history/list?";
|
||||
myDataSource = new YAHOO.util.DataSource(myDataSourceURL);
|
||||
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
|
||||
myDataSource.responseSchema = {
|
||||
resultsList: "records",
|
||||
fields: ["id", "date", "site", "ip", "result"],
|
||||
metaFields : {
|
||||
totalRecords: 'totalRecords'
|
||||
}
|
||||
};
|
||||
|
||||
myPaginator = new YAHOO.widget.Paginator({
|
||||
alwaysVisible : false,
|
||||
containers : ['paging'],
|
||||
pageLinks : 5,
|
||||
rowsPerPage : 15,
|
||||
rowsPerPageOptions : [15,30,60],
|
||||
template : "<strong>{CurrentPageReport}</strong> {PreviousPageLink} {PageLinks} {NextPageLink} {RowsPerPageDropdown}",
|
||||
pageReportTemplate : "({currentPage} " + COMMID.lang["of"] + " {totalPages})",
|
||||
nextPageLinkLabel : COMMID.lang["next"] + " >",
|
||||
previousPageLinkLabel : "< " + COMMID.lang["prev"]
|
||||
});
|
||||
|
||||
myTableConfig = {
|
||||
initialRequest : 'startIndex=0&results=15',
|
||||
generateRequest : buildQueryString,
|
||||
paginator : myPaginator
|
||||
};
|
||||
COMMID.utils.addDatatableTranslations(myTableConfig);
|
||||
|
||||
myDataTable = new YAHOO.widget.DataTable("dt", myColumnDefs, myDataSource, myTableConfig);
|
||||
myDataTable.subscribe('renderEvent', this.showClearHistoryBtn, this, true);
|
||||
},
|
||||
|
||||
showClearHistoryBtn: function() {
|
||||
if (myDataTable.getRecordSet().getLength() > 0) {
|
||||
$("clearHistory").style.display = "block";
|
||||
} else {
|
||||
$("clearHistory").style.display = "none";
|
||||
}
|
||||
},
|
||||
|
||||
clearEntries: function() {
|
||||
if (!confirm(COMMID.lang["Are you sure you wish to delete all the History Log?"])) {
|
||||
return;
|
||||
}
|
||||
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"POST",
|
||||
"history/clear",
|
||||
{
|
||||
success : function(responseObj) {
|
||||
try {
|
||||
var r = YAHOO.lang.JSON.parse(responseObj.responseText);
|
||||
if (r.code == 200) {
|
||||
alert(COMMID.lang["The history log has been cleared"]);
|
||||
this.init();
|
||||
}
|
||||
} catch (e) {
|
||||
alert(COMMID.lang["ERROR. The server returned:"] + "\n\n" + responseObj.responseText);
|
||||
}
|
||||
},
|
||||
failure : COMMID.utils.asyncFailed,
|
||||
scope : this
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
|
||||
COMMID.usersList = function() {
|
||||
var myDataSource;
|
||||
var myDataSourceURL;
|
||||
var myDataTable;
|
||||
var myPaginator;
|
||||
var myTableConfig;
|
||||
|
||||
var buildQueryString = function (state,dt) {
|
||||
var request = "";
|
||||
if (state.sortedBy) {
|
||||
request += "sort=" + state.sortedBy.key + "&dir="
|
||||
+ (state.sortedBy.dir === YAHOO.widget.DataTable.CLASS_ASC? 0 : 1) + "&";
|
||||
}
|
||||
|
||||
request += "startIndex=" + state.pagination.recordOffset
|
||||
+ "&results=" + state.pagination.rowsPerPage;
|
||||
|
||||
return request;
|
||||
};
|
||||
|
||||
var formatOperationsColumn = function(elCell, oRecord, oColumn, oData) {
|
||||
var links = new Array();
|
||||
|
||||
links.push("<a href=\"" + COMMID.baseDir + "/users/profile?userid=" + oRecord.getData("id") + "\">"
|
||||
+ COMMID.lang["profile"] + "</a>");
|
||||
|
||||
if (COMMID.userRole == "admin" && COMMID.userId != oRecord.getData("id")) {
|
||||
links.push("<a href=\"javascript:void(0)\" onclick=\"COMMID.usersList.deleteUser('"+oRecord.getId()+"')\">" + COMMID.lang["delete"] + "</a>");
|
||||
}
|
||||
|
||||
if (links.length > 0) {
|
||||
elCell.innerHTML = links.join(" | ");
|
||||
} else {
|
||||
elCell.innerHTML = "";
|
||||
}
|
||||
};
|
||||
|
||||
var formatNameColumn = function(elCell, oRecord, oColumn, oData) {
|
||||
if (oRecord.getData("role") == "admin") {
|
||||
elCell.innerHTML = "<b>" + oRecord.getData("name") + "</b>";
|
||||
} else {
|
||||
elCell.innerHTML = oRecord.getData("name");
|
||||
}
|
||||
};
|
||||
|
||||
var formatStatusColumn = function(elCell, oRecord, oColumn, oData) {
|
||||
if (oRecord.getData("role") == "admin") {
|
||||
elCell.innerHTML = "<b>" + oRecord.getData("status") + "</b>";
|
||||
} else {
|
||||
elCell.innerHTML = oRecord.getData("status");
|
||||
}
|
||||
};
|
||||
|
||||
var handleDataReturnPayload = function(oRequest, oResponse, oPayload) {
|
||||
oPayload.totalRecords = oResponse.meta.totalRecords;
|
||||
$("totalUsers").innerHTML = oResponse.meta.totalRecords;
|
||||
$("totalUnconfirmedUsers").innerHTML = oResponse.meta.totalUnconfirmedUsers;
|
||||
$("totalConfirmedUsers").innerHTML = oResponse.meta.totalRecords - oResponse.meta.totalUnconfirmedUsers;
|
||||
return oPayload;
|
||||
};
|
||||
|
||||
var deleteUserCompleted = function(oRecord, responseObj) {
|
||||
alert(responseObj.responseText);
|
||||
myDataTable.deleteRow(oRecord);
|
||||
};
|
||||
|
||||
var deleteUnconfirmedCompleted = function(responseObj) {
|
||||
this.init("all");
|
||||
};
|
||||
|
||||
return {
|
||||
init: function(filter) {
|
||||
myDataSourceURL = COMMID.baseDir + "/users/userslist?filter=" + filter + "&";
|
||||
myDataSource = new YAHOO.util.DataSource(myDataSourceURL);
|
||||
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
|
||||
myDataSource.responseSchema = {
|
||||
resultsList: "records",
|
||||
fields: ["id", "name", "registration", "status", "role"],
|
||||
metaFields : {
|
||||
totalRecords : 'totalRecords',
|
||||
totalUnconfirmedUsers : 'totalUnconfirmedUsers'
|
||||
}
|
||||
};
|
||||
|
||||
myPaginator = new YAHOO.widget.Paginator({
|
||||
alwaysVisible : false,
|
||||
containers : ['paging'],
|
||||
pageLinks : 5,
|
||||
rowsPerPage : 15,
|
||||
rowsPerPageOptions : [15,30,60],
|
||||
template : "<strong>{CurrentPageReport}</strong> {PreviousPageLink} {PageLinks} {NextPageLink} {RowsPerPageDropdown}",
|
||||
pageReportTemplate : "({currentPage} " + COMMID.lang["of"] + " {totalPages})",
|
||||
nextPageLinkLabel : COMMID.lang["next"] + " >",
|
||||
previousPageLinkLabel : "< " + COMMID.lang["prev"]
|
||||
});
|
||||
|
||||
myTableConfig = {
|
||||
initialRequest : 'startIndex=0&results=15',
|
||||
generateRequest : buildQueryString,
|
||||
dynamicData : true,
|
||||
paginator : myPaginator
|
||||
};
|
||||
COMMID.utils.addDatatableTranslations(myTableConfig);
|
||||
|
||||
var myColumnDefs = [
|
||||
{key: "name", label: COMMID.lang["Name"], sortable: true, formatter: formatNameColumn},
|
||||
{key: "registration", label: COMMID.lang["Registration"], formatter: 'date', sortable: true},
|
||||
{key: "status", label: COMMID.lang["Status"], sortable: true, hidden: (filter != 'all'), formatter: formatStatusColumn},
|
||||
{key: "operations", label: "", formatter: formatOperationsColumn}
|
||||
];
|
||||
|
||||
myDataTable = new YAHOO.widget.DataTable("dt", myColumnDefs, myDataSource, myTableConfig);
|
||||
myDataTable.handleDataReturnPayload = handleDataReturnPayload;
|
||||
|
||||
switch (filter) {
|
||||
case 'all':
|
||||
$("links_topright_all").className = "disabledLink";
|
||||
$("links_topright_confirmed").className = "enabledLink";
|
||||
$("links_topright_unconfirmed").className = "enabledLink";
|
||||
$("deleteUnconfirmedSpan").style.display = "none";
|
||||
break;
|
||||
case 'confirmed':
|
||||
$("links_topright_all").className = "enabledLink";
|
||||
$("links_topright_confirmed").className = "disabledLink";
|
||||
$("links_topright_unconfirmed").className = "enabledLink";
|
||||
$("deleteUnconfirmedSpan").style.display = "none";
|
||||
break;
|
||||
case 'unconfirmed':
|
||||
$("links_topright_all").className = "enabledLink";
|
||||
$("links_topright_confirmed").className = "enabledLink";
|
||||
$("links_topright_unconfirmed").className = "disabledLink";
|
||||
$("deleteUnconfirmedSpan").style.display = "inline";
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
deleteUser: function(recordId) {
|
||||
var oRecord = myDataTable.getRecord(recordId);
|
||||
if (confirm(COMMID.lang["Are you sure you wish to delete the user"] + " " + oRecord.getData("name") + "?")) {
|
||||
var transaction = YAHOO.util.Connect.asyncRequest(
|
||||
"POST",
|
||||
COMMID.baseDir + "/users/manageusers/delete",
|
||||
{
|
||||
success: function (responseObj) {deleteUserCompleted(oRecord, responseObj);},
|
||||
failure: function() {alert(COMMID.lang['operation failed'])}
|
||||
},
|
||||
"userid=" + oRecord.getData("id"));
|
||||
}
|
||||
},
|
||||
|
||||
deleteUnconfirmed: function() {
|
||||
if (!confirm(COMMID.lang["Are you sure you wish to delete all the unconfirmed accounts?"])) {
|
||||
return;
|
||||
}
|
||||
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"POST",
|
||||
COMMID.baseDir + "/users/manageusers/deleteunconfirmed",
|
||||
{
|
||||
success : deleteUnconfirmedCompleted,
|
||||
failure : function() {alert(COMMID.lang['operation failed'])},
|
||||
scope : this
|
||||
},
|
||||
null);
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
|
||||
COMMID.editAccountInfo = function() {
|
||||
|
||||
return {
|
||||
save: function() {
|
||||
YAHOO.util.Connect.setForm("accountInfoForm", true);
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
'POST',
|
||||
'profilegeneral/saveaccountinfo?userid=' + COMMID.targetUserId,
|
||||
{
|
||||
upload: function (responseObj) {COMMID.utils.replaceContent(responseObj, "accountInfo")}
|
||||
},
|
||||
null
|
||||
);
|
||||
},
|
||||
|
||||
cancel: function() {
|
||||
var transaction = YAHOO.util.Connect.asyncRequest(
|
||||
'GET',
|
||||
'profilegeneral/accountinfo?userid=' + COMMID.targetUserId,
|
||||
{
|
||||
success: function (responseObj) {COMMID.utils.replaceContent(responseObj, "accountInfo")},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
COMMID.stats = function() {
|
||||
return {
|
||||
loadReport: function(report, div, params) {
|
||||
if (params) {
|
||||
params = "?" + params;
|
||||
} else {
|
||||
params = "";
|
||||
}
|
||||
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"GET",
|
||||
"stats/" + report + params,
|
||||
{
|
||||
success: function (responseObj) {
|
||||
COMMID.utils.replaceContent(responseObj, div)
|
||||
},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
});
|
||||
}
|
||||
}
|
||||
}();
|
65
webdir/javascript/language.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
|
||||
* @license http://creativecommons.org/licenses/BSD/ BSD License
|
||||
* @author Keyboard Monkey Ltd
|
||||
* @since CommunityID 0.9
|
||||
* @package CommunityID
|
||||
* @packager Keyboard Monkeys
|
||||
*/
|
||||
|
||||
define('APP_DIR', realpath(dirname(__FILE__) . '/../..'));
|
||||
require APP_DIR . '/Setup.php';
|
||||
|
||||
Setup::setIncludePath();
|
||||
Setup::setAutoLoader();
|
||||
Setup::setConfig();
|
||||
Setup::setErrorReporting();
|
||||
Setup::setLogger();
|
||||
$translate = Setup::setI18N();
|
||||
|
||||
?>
|
||||
|
||||
YAHOO.namespace("commid");
|
||||
COMMID = YAHOO.commid;
|
||||
|
||||
// WARNING: DO NOT PUT A COMMA AFTER THE LAST ELEMENT (breaks IE)
|
||||
|
||||
COMMID.lang = {
|
||||
"Name": "<?= $translate->translate('Name') ?>",
|
||||
"Registration": "<?= $translate->translate('Registration') ?>",
|
||||
"Status": "<?= $translate->translate('Status') ?>",
|
||||
"profile": "<?= $translate->translate('profile') ?>",
|
||||
"delete": "<?= $translate->translate('delete') ?>",
|
||||
"Site": "<?= $translate->translate('Site') ?>",
|
||||
"view info exchanged": "<?= $translate->translate('view info exchanged') ?>",
|
||||
"deny": "<?= $translate->translate('deny') ?>",
|
||||
"allow": "<?= $translate->translate('allow') ?>",
|
||||
"Are you sure you wish to send this message to ALL users?": "<?= $translate->translate('Are you sure you wish to send this message to ALL users?') ?>",
|
||||
"Are you sure you wish to deny trust to this site?": "<?= $translate->translate('Are you sure you wish to deny trust to this site?') ?>",
|
||||
"operation failed": "<?= $translate->translate('operation failed') ?>",
|
||||
"Trust to the following site has been granted:": "<?= $translate->translate('Trust to the following site has been granted:') ?>",
|
||||
"Trust the following site has been denied:": "<?= $translate->translate('Trust the following site has been denied:') ?>",
|
||||
"ERROR. The server returned:": "<?= $translate->translate('ERROR. The server returned:') ?>",
|
||||
"Your relationship with the following site has been deleted:": "<?= $translate->translate('Your relationship with the following site has been deleted:') ?>",
|
||||
"The history log has been cleared": "<?= $translate->translate('The history log has been cleared') ?>",
|
||||
"Are you sure you wish to allow access to this site?": "<?= $translate->translate('Are you sure you wish to allow access to this site?') ?>",
|
||||
"Are you sure you wish to delete your relationship with this site?": "<?= $translate->translate('Are you sure you wish to delete your relationship with this site?') ?>",
|
||||
"Are you sure you wish to delete all the History Log?": "<?= $translate->translate('Are you sure you wish to delete all the History Log?') ?>",
|
||||
"Are you sure you wish to delete the user": "<?= $translate->translate('Are you sure you wish to delete the user') ?>",
|
||||
"Are you sure you wish to delete all the unconfirmed accounts?": "<?= $translate->translate('Are you sure you wish to delete all the unconfirmed accounts?') ?>",
|
||||
"Date": "<?= $translate->translate('Date') ?>",
|
||||
"Result": "<?= $translate->translate('Result') ?>",
|
||||
"No records found.": "<?= $translate->translate('No records found.') ?>",
|
||||
"Loading...": "<?= $translate->translate('Loading...') ?>",
|
||||
"Data error.": "<?= $translate->translate('Data error.') ?>",
|
||||
"Click to sort ascending": "<?= $translate->translate('Click to sort ascending') ?>",
|
||||
"Click to sort descending": "<?= $translate->translate('Click to sort descending') ?>",
|
||||
"Authorized": "<?= $translate->translate('Authorized') ?>",
|
||||
"Denied": "<?= $translate->translate('Denied') ?>",
|
||||
"of": "<?= $translate->translate('of') ?>",
|
||||
"next": "<?= $translate->translate('next') ?>",
|
||||
"prev": "<?= $translate->translate('prev') ?>",
|
||||
"IP": "<?= $translate->translate('IP') ?>"
|
||||
}
|
105
webdir/javascript/tools-min.js
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright (c) 2007, Dav Glass <dav.glass@yahoo.com>.
|
||||
* Code licensed under the BSD License:
|
||||
* http://blog.davglass.com/license.txt
|
||||
* All rights reserved.
|
||||
*/
|
||||
YAHOO.Tools=function(){keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";regExs={quotes:/\x22/g,startspace:/^\s+/g,endspace:/\s+$/g,striptags:/<\/?[^>]+>/gi,hasbr:/<br/i,hasp:/<p>/i,rbr:/<br>/gi,rbr2:/<br\/>/gi,rendp:/<\/p>/gi,rp:/<p>/gi,base64:/[^A-Za-z0-9\+\/\=]/g,syntaxCheck:/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/}
|
||||
jsonCodes={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'}
|
||||
return{version:'1.0'}}();YAHOO.Tools.getHeight=function(elm){var elm=$(elm);var h=$D.getStyle(elm,'height');if(h=='auto'){elm.style.zoom=1;h=elm.clientHeight+'px';}
|
||||
return h;}
|
||||
YAHOO.Tools.getCenter=function(elm){var elm=$(elm);var cX=Math.round(($D.getViewportWidth()-parseInt($D.getStyle(elm,'width')))/2);var cY=Math.round(($D.getViewportHeight()-parseInt(this.getHeight(elm)))/2);return[cX,cY];}
|
||||
YAHOO.Tools.makeTextObject=function(txt){return document.createTextNode(txt);}
|
||||
YAHOO.Tools.makeChildren=function(arr,elm){var elm=$(elm);for(var i in arr){_val=arr[i];if(typeof _val=='string'){_val=this.makeTxtObject(_val);}
|
||||
elm.appendChild(_val);}}
|
||||
YAHOO.Tools.styleToCamel=function(str){var _tmp=str.split('-');var _new_style=_tmp[0];for(var i=1;i<_tmp.length;i++){_new_style+=_tmp[i].substring(0,1).toUpperCase()+_tmp[i].substring(1,_tmp[i].length);}
|
||||
return _new_style;}
|
||||
YAHOO.Tools.removeQuotes=function(str){var checkText=new String(str);return String(checkText.replace(regExs.quotes,''));}
|
||||
YAHOO.Tools.trim=function(str){return str.replace(regExs.startspace,'').replace(regExs.endspace,'');}
|
||||
YAHOO.Tools.stripTags=function(str){return str.replace(regExs.striptags,'');}
|
||||
YAHOO.Tools.hasBRs=function(str){return str.match(regExs.hasbr)||str.match(regExs.hasp);}
|
||||
YAHOO.Tools.convertBRs2NLs=function(str){return str.replace(regExs.rbr,"\n").replace(regExs.rbr2,"\n").replace(regExs.rendp,"\n").replace(regExs.rp,"");}
|
||||
YAHOO.Tools.stringRepeat=function(str,repeat){return new Array(repeat+1).join(str);}
|
||||
YAHOO.Tools.stringReverse=function(str){var new_str='';for(i=0;i<str.length;i++){new_str=new_str+str.charAt((str.length-1)-i);}
|
||||
return new_str;}
|
||||
YAHOO.Tools.printf=function(){var num=arguments.length;var oStr=arguments[0];for(var i=1;i<num;i++){var pattern="\\{"+(i-1)+"\\}";var re=new RegExp(pattern,"g");oStr=oStr.replace(re,arguments[i]);}
|
||||
return oStr;}
|
||||
YAHOO.Tools.setStyleString=function(el,str){var _tmp=str.split(';');for(x in _tmp){if(x){__tmp=YAHOO.Tools.trim(_tmp[x]);__tmp=_tmp[x].split(':');if(__tmp[0]&&__tmp[1]){var _attr=YAHOO.Tools.trim(__tmp[0]);var _val=YAHOO.Tools.trim(__tmp[1]);if(_attr&&_val){if(_attr.indexOf('-')!=-1){_attr=YAHOO.Tools.styleToCamel(_attr);}
|
||||
$D.setStyle(el,_attr,_val);}}}}}
|
||||
YAHOO.Tools.getSelection=function(_document,_window){if(!_document){_document=document;}
|
||||
if(!_window){_window=window;}
|
||||
if(_document.selection){return _document.selection;}
|
||||
return _window.getSelection();}
|
||||
YAHOO.Tools.removeElement=function(el){if(!(el instanceof Array)){el=new Array($(el));}
|
||||
for(var i=0;i<el.length;i++){if(el[i].parentNode){el[i].parentNode.removeChild(el);}}}
|
||||
YAHOO.Tools.setCookie=function(name,value,expires,path,domain,secure){var argv=arguments;var argc=arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:'/';var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=name+"="+escape(value)+
|
||||
((expires==null)?"":("; expires="+expires.toGMTString()))+
|
||||
((path==null)?"":("; path="+path))+
|
||||
((domain==null)?"":("; domain="+domain))+
|
||||
((secure==true)?"; secure":"");}
|
||||
YAHOO.Tools.getCookie=function(name){var dc=document.cookie;var prefix=name+'=';var begin=dc.indexOf('; '+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else{begin+=2;}
|
||||
var end=document.cookie.indexOf(';',begin);if(end==-1){end=dc.length;}
|
||||
return unescape(dc.substring(begin+prefix.length,end));}
|
||||
YAHOO.Tools.deleteCookie=function(name,path,domain){if(getCookie(name)){document.cookie=name+'='+((path)?'; path='+path:'')+((domain)?'; domain='+domain:'')+'; expires=Thu, 01-Jan-70 00:00:01 GMT';}}
|
||||
YAHOO.Tools.getBrowserEngine=function(){var opera=((window.opera&&window.opera.version)?true:false);var safari=((navigator.vendor&&navigator.vendor.indexOf('Apple')!=-1)?true:false);var gecko=((document.getElementById&&!document.all&&!opera&&!safari)?true:false);var msie=((window.ActiveXObject)?true:false);var version=false;if(msie){if(typeof document.body.style.maxHeight!="undefined"){version='7';}else{version='6';}}
|
||||
if(opera){var tmp_version=window.opera.version().split('.');version=tmp_version[0]+'.'+tmp_version[1];}
|
||||
if(gecko){if(navigator.registerContentHandler){version='2';}else{version='1.5';}
|
||||
if((navigator.vendorSub)&&!version){version=navigator.vendorSub;}}
|
||||
if(safari){try{if(console){if((window.onmousewheel!=='undefined')&&(window.onmousewheel===null)){version='2';}else{version='1.3';}}}catch(e){version='1.2';}}
|
||||
var browsers={ua:navigator.userAgent,opera:opera,safari:safari,gecko:gecko,msie:msie,version:version}
|
||||
return browsers;}
|
||||
YAHOO.Tools.getBrowserAgent=function(){var ua=navigator.userAgent.toLowerCase();var opera=((ua.indexOf('opera')!=-1)?true:false);var safari=((ua.indexOf('safari')!=-1)?true:false);var firefox=((ua.indexOf('firefox')!=-1)?true:false);var msie=((ua.indexOf('msie')!=-1)?true:false);var mac=((ua.indexOf('mac')!=-1)?true:false);var unix=((ua.indexOf('x11')!=-1)?true:false);var win=((mac||unix)?false:true);var version=false;var mozilla=false;if(!firefox&&!safari&&(ua.indexOf('gecko')!=-1)){mozilla=true;var _tmp=ua.split('/');version=_tmp[_tmp.length-1].split(' ')[0];}
|
||||
if(firefox){var _tmp=ua.split('/');version=_tmp[_tmp.length-1].split(' ')[0];}
|
||||
if(msie){version=ua.substring((ua.indexOf('msie ')+5)).split(';')[0];}
|
||||
if(safari){version=this.getBrowserEngine().version;}
|
||||
if(opera){version=ua.substring((ua.indexOf('opera/')+6)).split(' ')[0];}
|
||||
var browsers={ua:navigator.userAgent,opera:opera,safari:safari,firefox:firefox,mozilla:mozilla,msie:msie,mac:mac,win:win,unix:unix,version:version}
|
||||
return browsers;}
|
||||
YAHOO.Tools.checkFlash=function(){var br=this.getBrowserEngine();if(br.msie){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var versionStr=axo.GetVariable("$version");var tempArray=versionStr.split(" ");var tempString=tempArray[1];var versionArray=tempString.split(",");var flash=versionArray[0];}catch(e){}}else{var flashObj=null;var tokens,len,curr_tok;if(navigator.mimeTypes&&navigator.mimeTypes['application/x-shockwave-flash']){flashObj=navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin;}
|
||||
if(flashObj==null){flash=false;}else{tokens=navigator.plugins['Shockwave Flash'].description.split(' ');len=tokens.length;while(len--){curr_tok=tokens[len];if(!isNaN(parseInt(curr_tok))){hasVersion=curr_tok;flash=hasVersion;break;}}}}
|
||||
return flash;}
|
||||
YAHOO.Tools.setAttr=function(attrsObj,elm){if(typeof elm=='string'){elm=$(elm);}
|
||||
for(var i in attrsObj){switch(i.toLowerCase()){case'listener':if(attrsObj[i]instanceof Array){var ev=attrsObj[i][0];var func=attrsObj[i][1];var base=attrsObj[i][2];var scope=attrsObj[i][3];$E.addListener(elm,ev,func,base,scope);}
|
||||
break;case'classname':case'class':elm.className=attrsObj[i];break;case'style':YAHOO.Tools.setStyleString(elm,attrsObj[i]);break;default:elm.setAttribute(i,attrsObj[i]);break;}}}
|
||||
YAHOO.Tools.create=function(tagName){tagName=tagName.toLowerCase();elm=document.createElement(tagName);var txt=false;var attrsObj=false;if(!elm){return false;}
|
||||
for(var i=1;i<arguments.length;i++){txt=arguments[i];if(typeof txt=='string'){_txt=YAHOO.Tools.makeTextObject(txt);elm.appendChild(_txt);}else if(txt instanceof Array){YAHOO.Tools.makeChildren(txt,elm);}else if(typeof txt=='object'){YAHOO.Tools.setAttr(txt,elm);}}
|
||||
return elm;}
|
||||
YAHOO.Tools.insertAfter=function(elm,curNode){if(curNode.nextSibling){curNode.parentNode.insertBefore(elm,curNode.nextSibling);}else{curNode.parentNode.appendChild(elm);}}
|
||||
YAHOO.Tools.inArray=function(arr,val){if(arr instanceof Array){for(var i=(arr.length-1);i>=0;i--){if(arr[i]===val){return true;}}}
|
||||
return false;}
|
||||
YAHOO.Tools.checkBoolean=function(str){return((typeof str=='boolean')?true:false);}
|
||||
YAHOO.Tools.checkNumber=function(str){return((isNaN(str))?false:true);}
|
||||
YAHOO.Tools.PixelToEm=function(size){var data={};var sSize=(size/13);data.other=(Math.round(sSize*100)/100);data.msie=(Math.round((sSize*0.9759)*100)/100);return data;}
|
||||
YAHOO.Tools.PixelToEmStyle=function(size,prop){var data='';var prop=((prop)?prop.toLowerCase():'width');var sSize=(size/13);data+=prop+':'+(Math.round(sSize*100)/100)+'em;';data+='*'+prop+':'+(Math.round((sSize*0.9759)*100)/100)+'em;';if((prop=='width')||(prop=='height')){data+='min-'+prop+':'+size+'px;';}
|
||||
return data;}
|
||||
YAHOO.Tools.base64Encode=function(str){var data="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;do{chr1=str.charCodeAt(i++);chr2=str.charCodeAt(i++);chr3=str.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
|
||||
data=data+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i<str.length);return data;}
|
||||
YAHOO.Tools.base64Decode=function(str){var data="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;str=str.replace(regExs.base64,"");do{enc1=keyStr.indexOf(str.charAt(i++));enc2=keyStr.indexOf(str.charAt(i++));enc3=keyStr.indexOf(str.charAt(i++));enc4=keyStr.indexOf(str.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;data=data+String.fromCharCode(chr1);if(enc3!=64){data=data+String.fromCharCode(chr2);}
|
||||
if(enc4!=64){data=data+String.fromCharCode(chr3);}}while(i<str.length);return data;}
|
||||
YAHOO.Tools.getQueryString=function(str){var qstr={};if(!str){var str=location.href.split('?');if(str.length!=2){str=['',location.href];}}else{var str=['',str];}
|
||||
if(str[1].match('#')){var _tmp=str[1].split('#');qstr.hash=_tmp[1];str[1]=_tmp[0];}
|
||||
if(str[1]){str=str[1].split('&');if(str.length){for(var i=0;i<str.length;i++){var part=str[i].split('=');if(part[0].indexOf('[')!=-1){if(part[0].indexOf('[]')!=-1){var arr=part[0].substring(0,part[0].length-2);if(!qstr[arr]){qstr[arr]=[];}
|
||||
qstr[arr][qstr[arr].length]=part[1];}else{var arr=part[0].substring(0,part[0].indexOf('['));var data=part[0].substring((part[0].indexOf('[')+1),part[0].indexOf(']'));if(!qstr[arr]){qstr[arr]={};}
|
||||
qstr[arr][data]=part[1];}}else{qstr[part[0]]=part[1];}}}}
|
||||
return qstr;}
|
||||
YAHOO.Tools.getQueryStringVar=function(str){var qs=this.getQueryString();if(qs[str]){return qs[str];}else{return false;}}
|
||||
YAHOO.Tools.padDate=function(n){return n<10?'0'+n:n;}
|
||||
YAHOO.Tools.encodeStr=function(str){if(/["\\\x00-\x1f]/.test(str)){return'"'+str.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=jsonCodes[b];if(c){return c;}
|
||||
c=b.charCodeAt();return'\\u00'+
|
||||
Math.floor(c/16).toString(16)+
|
||||
(c%16).toString(16);})+'"';}
|
||||
return'"'+str+'"';}
|
||||
YAHOO.Tools.encodeArr=function(arr){var a=['['],b,i,l=arr.length,v;for(i=0;i<l;i+=1){v=arr[i];switch(typeof v){case'undefined':case'function':case'unknown':break;default:if(b){a.push(',');}
|
||||
a.push(v===null?"null":YAHOO.Tools.JSONEncode(v));b=true;}}
|
||||
a.push(']');return a.join('');}
|
||||
YAHOO.Tools.encodeDate=function(d){return'"'+d.getFullYear()+'-'+YAHOO.Tools.padDate(d.getMonth()+1)+'-'+YAHOO.Tools.padDate(d.getDate())+'T'+YAHOO.Tools.padDate(d.getHours())+':'+YAHOO.Tools.padDate(d.getMinutes())+':'+YAHOO.Tools.padDate(d.getSeconds())+'"';}
|
||||
YAHOO.Tools.fixJSONDate=function(dateStr){var tmp=dateStr.split('T');var fixedDate=dateStr;if(tmp.length==2){var tmpDate=tmp[0].split('-');if(tmpDate.length==3){fixedDate=new Date(tmpDate[0],(tmpDate[1]-1),tmpDate[2]);var tmpTime=tmp[1].split(':');if(tmpTime.length==3){fixedDate.setHours(tmpTime[0],tmpTime[1],tmpTime[2]);}}}
|
||||
return fixedDate;}
|
||||
YAHOO.Tools.JSONEncode=function(o){if((typeof o=='undefined')||(o===null)){return'null';}else if(o instanceof Array){return YAHOO.Tools.encodeArr(o);}else if(o instanceof Date){return YAHOO.Tools.encodeDate(o);}else if(typeof o=='string'){return YAHOO.Tools.encodeStr(o);}else if(typeof o=='number'){return isFinite(o)?String(o):"null";}else if(typeof o=='boolean'){return String(o);}else{var a=['{'],b,i,v;for(var i in o){v=o[i];switch(typeof v){case'undefined':case'function':case'unknown':break;default:if(b){a.push(',');}
|
||||
a.push(YAHOO.Tools.JSONEncode(i),':',((v===null)?"null":YAHOO.Tools.JSONEncode(v)));b=true;}}
|
||||
a.push('}');return a.join('');}}
|
||||
YAHOO.Tools.JSONParse=function(json,autoDate){var autoDate=((autoDate)?true:false);try{if(regExs.syntaxCheck.test(json)){var j=eval('('+json+')');if(autoDate){function walk(k,v){if(v&&typeof v==='object'){for(var i in v){if(v.hasOwnProperty(i)){v[i]=walk(i,v[i]);}}}
|
||||
if(k.toLowerCase().indexOf('date')>=0){return YAHOO.Tools.fixJSONDate(v);}else{return v;}}
|
||||
return walk('',j);}else{return j;}}}catch(e){console.log(e);}
|
||||
throw new SyntaxError("parseJSON");}
|
||||
YAHOO.tools=YAHOO.Tools;YAHOO.TOOLS=YAHOO.Tools;YAHOO.util.Dom.create=YAHOO.Tools.create;$A=YAHOO.util.Anim;$E=YAHOO.util.Event;$D=YAHOO.util.Dom;$T=YAHOO.Tools;$=YAHOO.util.Dom.get;$$=YAHOO.util.Dom.getElementsByClassName;
|
71
webdir/javascript/yui/animation/README
Normal file
@ -0,0 +1,71 @@
|
||||
Animation Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
* ColorAnim updated to use getAncestorBy
|
||||
|
||||
*** version 2.5.2 ***
|
||||
* no change
|
||||
|
||||
*** version 2.5.1 ***
|
||||
* no change
|
||||
|
||||
*** version 2.5.0 ***
|
||||
* replace toString overrides with static NAME property
|
||||
|
||||
*** version 2.4.0 ***
|
||||
* calling stop() on an non-animated Anim no longer fires onComplete
|
||||
|
||||
*** version 2.3.1 ***
|
||||
* no change
|
||||
|
||||
*** version 2.3.0 ***
|
||||
|
||||
* duration of zero now executes 1 frame animation
|
||||
* added setEl() method to enable reuse
|
||||
* fixed stop() for multiple animations
|
||||
|
||||
*** version 2.3.0 ***
|
||||
* duration of zero now executes 1 frame animation
|
||||
* added setEl() method to enable reuse
|
||||
* fixed stop() for multiple animations
|
||||
|
||||
*** version 2.2.2 ***
|
||||
* no change
|
||||
|
||||
*** version 2.2.1 ***
|
||||
* no change
|
||||
|
||||
*** version 2.2.0 ***
|
||||
* Fixed AnimMgr.stop() when called without tween
|
||||
|
||||
*** version 0.12.2 ***
|
||||
* raised AnimMgr.fps to 1000
|
||||
|
||||
*** version 0.12.1 ***
|
||||
* minified version no longer strips line breaks
|
||||
|
||||
*** version 0.12.0 ***
|
||||
* added boolean finish argument to Anim.stop()
|
||||
|
||||
*** version 0.11.3 ***
|
||||
* no changes
|
||||
|
||||
*** version 0.11.1 ***
|
||||
* changed "prototype" shorthand to "proto" (workaround firefox < 1.5 scoping
|
||||
bug)
|
||||
|
||||
*** version 0.11.0 ***
|
||||
* ColorAnim subclass added
|
||||
* Motion and Scroll now inherit from ColorAnim
|
||||
* getDefaultUnit method added
|
||||
* defaultUnit and defaultUnits deprecated
|
||||
* getDefault and setDefault methods deprecated
|
||||
|
||||
*** version 0.10.0 ***
|
||||
* Scroll now handles relative ("by") animation correctly
|
||||
* Now converts "auto" values of "from" to appropriate initial values
|
||||
|
||||
*** version 0.9.0 ***
|
||||
* Initial release
|
||||
|
||||
|
1385
webdir/javascript/yui/animation/animation-debug.js
vendored
Normal file
23
webdir/javascript/yui/animation/animation-min.js
vendored
Normal file
1381
webdir/javascript/yui/animation/animation.js
vendored
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/asc.gif
Normal file
After Width: | Height: | Size: 177 B |
7
webdir/javascript/yui/assets/skins/sam/autocomplete.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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:0.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;}
|
BIN
webdir/javascript/yui/assets/skins/sam/blankimage.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
7
webdir/javascript/yui/assets/skins/sam/button.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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;*position:relative;*left:-1px;_margin:0;_position:static;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{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-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.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-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.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-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.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{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);}
|
7
webdir/javascript/yui/assets/skins/sam/calendar.css
Normal file
7
webdir/javascript/yui/assets/skins/sam/carousel.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;}.yui-carousel-element{margin:5px 0;overflow:hidden;padding:0;position:relative;width:32000px;z-index:1;}.yui-carousel-vertical .yui-carousel-element{margin:0 5px;}.yui-carousel-element li{border:1px solid #ccc;float:left;list-style:none;margin:1px;overflow:hidden;padding:0;text-align:center;*float:none;*display:inline-block;*zoom:1;*display:inline;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-carousel-vertical{height:32000px;margin:0 5px;width:auto;}.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{clear:both;content:"";display:block;}.yui-carousel-button-focus{outline:1px dotted #000;}.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{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:0px -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:0px -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;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.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{float:left;height:19px;list-style:none;}.yui-skin-sam .yui-carousel-nav ul:after{clear:both;content:"";display:block;}.yui-skin-sam .yui-carousel-nav ul li a{background:url(sprite.png) no-repeat 0 -650px;display:block;height:9px;margin:10px 0 0 5px;overflow:hidden;width:9px;}.yui-skin-sam .yui-carousel-nav ul li a em{left:-10000px;position:absolute;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected a{background-position:0 -700px;}
|
7
webdir/javascript/yui/assets/skins/sam/colorpicker.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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:none;outline:0px none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0px 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='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0px;left:0px;}.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:0px !important;}.yui-picker-controls .bd{height:100px;border-width:0px !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:0.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;}
|
7
webdir/javascript/yui/assets/skins/sam/container.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.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{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-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 .yui-panel-container.focused .yui-panel .hd{}.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:none;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:0pt -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);}
|
7
webdir/javascript/yui/assets/skins/sam/datatable.css
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/desc.gif
Normal file
After Width: | Height: | Size: 177 B |
BIN
webdir/javascript/yui/assets/skins/sam/dt-arrow-dn.png
Normal file
After Width: | Height: | Size: 116 B |
BIN
webdir/javascript/yui/assets/skins/sam/dt-arrow-up.png
Normal file
After Width: | Height: | Size: 116 B |
BIN
webdir/javascript/yui/assets/skins/sam/editor-knob.gif
Normal file
After Width: | Height: | Size: 138 B |
BIN
webdir/javascript/yui/assets/skins/sam/editor-sprite-active.gif
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
webdir/javascript/yui/assets/skins/sam/editor-sprite.gif
Normal file
After Width: | Height: | Size: 5.6 KiB |
7
webdir/javascript/yui/assets/skins/sam/editor.css
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/header_background.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
webdir/javascript/yui/assets/skins/sam/hue_bg.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
7
webdir/javascript/yui/assets/skins/sam/imagecropper.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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;}
|
7
webdir/javascript/yui/assets/skins/sam/layout.css
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/layout_sprite.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
webdir/javascript/yui/assets/skins/sam/loading.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
7
webdir/javascript/yui/assets/skins/sam/logger.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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-categoryfilters{}.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;}
|
After Width: | Height: | Size: 173 B |
BIN
webdir/javascript/yui/assets/skins/sam/menu-button-arrow.png
Normal file
After Width: | Height: | Size: 173 B |
7
webdir/javascript/yui/assets/skins/sam/menu.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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-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 .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{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 .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{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);}
|
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
BIN
webdir/javascript/yui/assets/skins/sam/menuitem_checkbox.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
7
webdir/javascript/yui/assets/skins/sam/paginator.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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:none;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;}
|
BIN
webdir/javascript/yui/assets/skins/sam/picker_mask.png
Normal file
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-skin-sam .yui-pv{background-color:#4a4a4a;font: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;}
|
7
webdir/javascript/yui/assets/skins/sam/resize.css
Normal file
7
webdir/javascript/yui/assets/skins/sam/simpleeditor.css
Normal file
26
webdir/javascript/yui/assets/skins/sam/skin.css
Normal file
7
webdir/javascript/yui/assets/skins/sam/slider.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-h-slider,.yui-v-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-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;}
|
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 185 B |
BIN
webdir/javascript/yui/assets/skins/sam/split-button-arrow.png
Normal file
After Width: | Height: | Size: 185 B |
BIN
webdir/javascript/yui/assets/skins/sam/sprite.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
webdir/javascript/yui/assets/skins/sam/sprite.psd
Normal file
7
webdir/javascript/yui/assets/skins/sam/tabview.css
Normal file
BIN
webdir/javascript/yui/assets/skins/sam/treeview-loading.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
webdir/javascript/yui/assets/skins/sam/treeview-sprite.gif
Normal file
After Width: | Height: | Size: 4.2 KiB |
7
webdir/javascript/yui/assets/skins/sam/treeview.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.ygtvitem{}.ygtvitem table{margin-bottom:0;border:none;}.ygtvrow td{border:none;padding:0;}.ygtvrow td a{text-decoration:none;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;}.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;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0px 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;}.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;}.ygtvchildren{}* 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:12px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a,.ygtvrow td 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:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}
|
BIN
webdir/javascript/yui/assets/skins/sam/wait.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |
7
webdir/javascript/yui/assets/skins/sam/yuitest.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
|
212
webdir/javascript/yui/autocomplete/README
Normal file
@ -0,0 +1,212 @@
|
||||
AutoComplete Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
|
||||
* AutoComplete has a new required dependency on YAHOO.util.DataSource,
|
||||
and the class YAHOO.widget.DataSource has been deprecated. As a result,
|
||||
the following YAHOO.widget.DataSource properties have been ported to YAHOO.widget.AutoComplete:
|
||||
- queryMatchCase
|
||||
- queryMatchContains
|
||||
- queryMatchSubset
|
||||
|
||||
* The following YAHOO.widget.DS_XHR properties have been deprecated in favor of
|
||||
the new customizeable YAHOO.widget.AutoComplete method generateRequest:
|
||||
- scriptQueryParam
|
||||
- scriptQueryAppend
|
||||
|
||||
* The YAHOO.widget.DS_XHR property responseStripAfter has been deprecated in favor
|
||||
of the new customizeable YAHOO.util.DataSource method doBeforeParseData.
|
||||
|
||||
* Now always fires either dataReturnEvent or dataErrorEvent upon a DataSource
|
||||
response, whether container opens or not due to instance losing focus.
|
||||
|
||||
* Added textboxChangeEvent and containerPopulateEvent Custom Events.
|
||||
|
||||
* As a convenience, the formatResult() method now receives a third parameter which
|
||||
is the query matching string for the result.
|
||||
|
||||
* In order to eliminate certain race conditions with the typeAhead feature, added
|
||||
typeAheadDelay of default 0.5.
|
||||
|
||||
* Added new method filterResults() for an easily customizeable local string-
|
||||
matching algorithm.
|
||||
|
||||
* The dataRequestEvent now passes along the request as well as the query string.
|
||||
|
||||
* The style list-style:none has been set in the default CSS.
|
||||
|
||||
|
||||
*** version 2.5.2 ***
|
||||
|
||||
* Empty responses of TYPE_FLAT no longer open empty container.
|
||||
|
||||
* Mac FF no longer submits form on enter-to-select suggestion.
|
||||
|
||||
|
||||
|
||||
*** version 2.5.1 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 2.5.0 ***
|
||||
|
||||
* Fixed bug where Mac users were not able to input "&" or "(" characters.
|
||||
|
||||
|
||||
|
||||
*** version 2.4.0 ***
|
||||
|
||||
* Support for YUI JSON Utility.
|
||||
|
||||
* The allowBrowserAutocomplete property now supports cases when the user navigates
|
||||
away from page via mean other than a form submission.
|
||||
|
||||
* Added support for integration with the Get Utility, for proxyless data
|
||||
retrieval from dynamically loaded script nodes.
|
||||
|
||||
* Typing 'Enter' to select item no longer causes automatic form submission on
|
||||
Mac browsers.
|
||||
|
||||
|
||||
|
||||
*** version 2.3.1 ***
|
||||
|
||||
* AutoComplete no longer throw a JavaScript error due to an invalid or
|
||||
non-existent parent container. While a wrapper DIV element is still expected in
|
||||
order to enable skinning (see 2.3.0 release note), a lack of such will not
|
||||
cause an error.
|
||||
|
||||
* When suggestion container is collapsed, Mac users no longer need to type
|
||||
Enter twice to submit input.
|
||||
|
||||
|
||||
|
||||
*** version 2.3.0 ***
|
||||
|
||||
* Applied new skinning model. Please note that in order to enable skinning,
|
||||
AutoComplete now expects a wrapper DIV element around the INPUT element and the
|
||||
container DIV element, in this fashion:
|
||||
|
||||
<div id="myAutoComplete">
|
||||
<input type="text" id="myInput">
|
||||
<div id="myContainer"></div>
|
||||
</div>
|
||||
|
||||
* The default queryDelay value has been changed to 0.2. In low-latency
|
||||
implementations (e.g., when queryDelay is set to 0 against a local
|
||||
JavaScript DataSource), typeAhead functionality may experience a race condition
|
||||
when retrieving the value of the textbox. To avoid this problem, implementers
|
||||
are advised not to set the queryDelay value too low.
|
||||
|
||||
* Fixed runtime property value validation.
|
||||
|
||||
* Implemented new method doBeforeSendQuery().
|
||||
|
||||
* Implemented new method destroy().
|
||||
|
||||
* Added support for latest JSON lib http://www.json.org/json.js.
|
||||
|
||||
* Fixed forceSelection issues with matched selections and multiple selections.
|
||||
|
||||
* No longer create var oAnim in global scope.
|
||||
|
||||
* The properties alwaysShowContainer and useShadow should not be enabled together.
|
||||
|
||||
* There is a known issue in Firefox where the native browser autocomplete
|
||||
attribute cannot be disabled programmatically on input boxes that are in use.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
**** version 2.2.2 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 2.2.1 ***
|
||||
|
||||
* Fixed form submission in Safari bug.
|
||||
* Fixed broken DS_JSArray support for minQueryLength=0.
|
||||
* Improved type checking with YAHOO.lang.
|
||||
|
||||
|
||||
|
||||
*** version 2.2.0 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 0.12.2 ***
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
|
||||
*** version 0.12.1 ***
|
||||
|
||||
* No longer trigger typeAhead feature when user is backspacing on input text.
|
||||
|
||||
|
||||
|
||||
*** version 0.12.0 ***
|
||||
|
||||
* The following constants must be defined as static class properties and are no longer
|
||||
available as instance properties:
|
||||
|
||||
YAHOO.widget.DataSource.ERROR_DATANULL
|
||||
YAHOO.widget.DataSource.ERROR_DATAPARSE
|
||||
YAHOO.widget.DS_XHR.TYPE_JSON
|
||||
YAHOO.widget.DS_XHR.TYPE_XML
|
||||
YAHOO.widget.DS_XHR.TYPE_FLAT
|
||||
YAHOO.widget.DS_XHR.ERROR_DATAXHR
|
||||
|
||||
* The property minQueryLength now supports zero and negative number values for
|
||||
DS_JSFunction and DS_XHR objects, to enable null or empty string queries and to disable
|
||||
AutoComplete functionality altogether, respectively.
|
||||
|
||||
* Enabling the alwaysShowContainer feature will no longer send containerExpandEvent or
|
||||
containerCollapseEvent.
|
||||
|
||||
|
||||
|
||||
**** version 0.11.3 ***
|
||||
|
||||
* The iFrameSrc property has been deprecated. Implementers no longer need to
|
||||
specify an https URL to avoid IE security warnings when working with sites over
|
||||
SSL.
|
||||
|
||||
|
||||
|
||||
*** version 0.11.0 ***
|
||||
|
||||
* The method getListIds() has been deprecated for getListItems(), which returns
|
||||
an array of DOM references.
|
||||
|
||||
* All classnames have been prefixed with "yui-ac-".
|
||||
|
||||
* Container elements should no longer have CSS property "display" set to "none".
|
||||
|
||||
* The useIFrame property can now be set after instantiation.
|
||||
|
||||
* On some browsers, the unmatchedItemSelectEvent may not be fired properly when
|
||||
delimiter characters are defined.
|
||||
|
||||
* On some browsers, defining delimiter characters while enabling forceSelection
|
||||
may result in unexpected behavior.
|
||||
|
||||
|
||||
|
||||
*** version 0.10.0 ***
|
||||
|
||||
* Initial release
|
||||
|
||||
* In order to enable the useIFrame property, it should be set in the
|
||||
constructor.
|
||||
|
||||
* On some browsers, defining delimiter characters while enabling forceSelection
|
||||
may result in unexpected behavior.
|
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
/* This file intentionally left blank */
|
@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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:0.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;}
|
2917
webdir/javascript/yui/autocomplete/autocomplete-debug.js
vendored
Normal file
12
webdir/javascript/yui/autocomplete/autocomplete-min.js
vendored
Normal file
2873
webdir/javascript/yui/autocomplete/autocomplete.js
vendored
Normal file
29
webdir/javascript/yui/base/README
Normal file
@ -0,0 +1,29 @@
|
||||
YUI Library - Base - Release Notes
|
||||
|
||||
Version 2.6.0
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.5.2
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.5.1
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.5.0
|
||||
|
||||
* No changes.
|
||||
|
||||
Version 2.4.0
|
||||
|
||||
* Fixed typo in comments.
|
||||
* Added margin-bottom:1em; for PRE element to match P
|
||||
* Added color:#000 for legend element, accomodation for IE
|
||||
* Added set width (equivilant to 160px but set in EMs) for input's
|
||||
width type = text or password, and for textareas.
|
||||
|
||||
Version 2.3.0
|
||||
|
||||
* Initial release.
|
7
webdir/javascript/yui/base/base-min.css
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
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{font-weight:bold;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;} em{font-style:italic;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{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;}p,fieldset,table,pre{margin-bottom:1em;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
|
82
webdir/javascript/yui/base/base.css
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
/* base.css, part of YUI's CSS Foundation */
|
||||
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 {
|
||||
/*bringing boldness back to headers and the strong element*/
|
||||
font-weight:bold;
|
||||
}
|
||||
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 {
|
||||
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 li {
|
||||
/*giving OL's LIs generated numbers*/
|
||||
list-style: decimal outside;
|
||||
}
|
||||
ul li {
|
||||
/*giving UL's LIs generated disc markers*/
|
||||
list-style: disc outside;
|
||||
}
|
||||
dl dd {
|
||||
/*giving UL's LIs generated numbers*/
|
||||
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;
|
||||
}
|
||||
p,fieldset,table,pre {
|
||||
/*so things don't run into each other*/
|
||||
margin-bottom:1em;
|
||||
}
|
||||
/* setting a consistent width, 160px;
|
||||
control of type=file still not possible */
|
||||
input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
|
436
webdir/javascript/yui/button/README
Normal file
@ -0,0 +1,436 @@
|
||||
*** version 2.6.0 ***
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Clicking on the option region of a Button of "type" split will fire the "option" event, but not
|
||||
"mousedown," "mouseup," "click," or "dblclick".
|
||||
|
||||
+ Buttons of type "radio" and "checkbox" will not override a value provided for the title attribute.
|
||||
|
||||
+ Returning false in an inline "submit" event handler for a form will now prevent the form
|
||||
from being submitted when the form contains Button instances.
|
||||
|
||||
+ Pressing the enter key to submit a form containing Button instances will no longer
|
||||
trigger a beep sound in Internet Explorer.
|
||||
|
||||
+ The Button widget no longer logs errors when strict error reporting is enabled in FireFox.
|
||||
|
||||
+ Button instances are now automatically clicked when their corresponding <label> is clicked.
|
||||
|
||||
+ The name and value of selected MenuItems in submenus of a Button's Menu are now part of their
|
||||
parent form's data when the form is submitted.
|
||||
|
||||
+ For Button's of type "menu" and "split" created using an existing <SELECT> element: The name and
|
||||
value of the pre-selected MenuItem in a Button's Menu are now part of their parent form's data
|
||||
when the form is submitted.
|
||||
|
||||
+ The "appendTo" event now correctly fires when the "container" attribute is set to a
|
||||
node reference.
|
||||
|
||||
+ Simple forms with two fields: a Button of type "submit" and a text field will no longer
|
||||
be submitted twice when the enter key is pressed.
|
||||
|
||||
+ Submitting a form by pressing the enter key will now result in a Button's "click" event
|
||||
handlers getting called.
|
||||
|
||||
+ Buttons of type "menu" and "split" now consistently display their Menus in Opera.
|
||||
|
||||
+ Button no longer logs a warning when a Button is created without an id.
|
||||
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added a new "menumaxheight" attribute used to set the "maxheight" configuration property of a
|
||||
Button's Menu.
|
||||
|
||||
+ Added a new "menuminscrollheight" attribute used to set the "minscrollheight" configuration
|
||||
property of a Button's Menu.
|
||||
|
||||
+ Added a "menualignment" attribute attribute used to control how a Menu is aligned to its
|
||||
corresponding Button.
|
||||
|
||||
+ Added a "yui-split-button-hoveroption" CSS class that is applied when the user hovers the mouse
|
||||
over the "option" section of a split button.
|
||||
|
||||
|
||||
Changes:
|
||||
--------
|
||||
|
||||
+ Removed the rounded corners for IE 6 Quirks Mode and Strict Mode and IE 7 Quirks Mode.
|
||||
|
||||
+ Changed the keyboard shortcut used to display the Menu for Button's of type "split" to the down
|
||||
arrow key.
|
||||
|
||||
+ Passing a DOM element reference to the "container" attribute will no longer result in the Button
|
||||
being appended to the container immediately. Use the "appendTo" event to listen for when
|
||||
the Button will be appended to the element specified as its container. To append a Button to
|
||||
an element in the DOM immediately, use the "appendTo" method rather than the "container"
|
||||
attribute.
|
||||
|
||||
|
||||
*** Version 2.5.2 ***
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Button instances no longer flicker in Firefox 3 when their "label" attributed is updated.
|
||||
|
||||
+ Scrolled Menus of Buttons whose type attribute is set to "menu" or "split" no longer appear
|
||||
on top of their corresponding Button instance.
|
||||
|
||||
+ The keyboard shortcut responsible for triggering the display of the Menu for Button instances of
|
||||
type "split" will no longer trigger the display of the browser's default context menu in Opera.
|
||||
|
||||
|
||||
|
||||
*** Version 2.5.1 ***
|
||||
|
||||
+ No changes.
|
||||
|
||||
|
||||
|
||||
*** Version 2.5.0 ***
|
||||
|
||||
+ Fixed issue where returning false inside the scope of a listener for attribute "before"
|
||||
events (i.e "beforeCheckedChange") would not cancel the attribute's default setter.
|
||||
|
||||
|
||||
|
||||
*** Version 2.4.1 ***
|
||||
|
||||
+ No changes.
|
||||
|
||||
|
||||
|
||||
*** Version 2.4.0 ***
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added a static method "YAHOO.widget.Button.getButton" that returns a Button
|
||||
instance with the specified HTML element id.
|
||||
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Removed the ".yui-skin-sam" CSS class name from style rules in the core
|
||||
stylesheet so that it is now truly skin agnostic.
|
||||
|
||||
+ Updated the default text for tooltips for Buttons of type "radio" so that
|
||||
they offer the correct instructional text.
|
||||
|
||||
+ Menus with grouped YAHOO.widget.MenuItem instances will now highlight
|
||||
correctly when used with Button.
|
||||
|
||||
+ Buttons of type "link" now have the same default height as other Button
|
||||
types in Internet Explorer.
|
||||
|
||||
+ Buttons of various types now line up correctly on the same line.
|
||||
|
||||
+ Menu is now truly an optional dependancy of Button.
|
||||
|
||||
+ Menus now render with the correct width when the "yui-skin-sam" CSS class
|
||||
name is applied to an element other than the <BODY>.
|
||||
|
||||
|
||||
|
||||
*** Version 2.3.1 ***
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
+ Purged the old 2.2.2 Button stylesheet and related image assets that was
|
||||
mistakenly included in the 2.3.0 build.
|
||||
|
||||
+ Fixed an issue in Gecko where changing a Button instance's "label" attribute
|
||||
after the Button had been created would not result in the Button redrawing at
|
||||
a width to fit its content.
|
||||
|
||||
+ Fixed an issue where the singleton keypress event handler
|
||||
(YAHOO.widget.Button.onFormKeyPress) registered for forms containing
|
||||
Button instances of type "submit" was not removed from the form once all of
|
||||
its child Button instances are destroyed.
|
||||
|
||||
+ Submitting a form by clicking on a MenuItem of a SplitButton's or MenuButton's
|
||||
Menu will no longer result in a JavaScript error.
|
||||
|
||||
+ Modified how element tag names are compared to support XHTML applications.
|
||||
|
||||
+ Added code to remove the CSS class names representing the "hover," "focus,"
|
||||
and "active" states when a Button instance is disabled.
|
||||
|
||||
|
||||
*** Version 2.3 ***
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added a "focusmenu" configuration attribute that controls whether or not a
|
||||
Button instance's menu will automatically be focused when made visible.
|
||||
|
||||
+ Added a "lazyloadmenu" configuration attribute that controls the value of
|
||||
the "lazyload" configuration property of a Button's menu.
|
||||
|
||||
+ Added "menuclassname" configuration attribute that defines a CSS class name
|
||||
to be applied to the root HTML element of a button's menu.
|
||||
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Setting the "label" attribute of a Button of type "link" to a string with
|
||||
a "www." prefix will no longer result in the value of the "href" property
|
||||
being used for the "label" in IE.
|
||||
|
||||
+ Disabling a Button when its menu is visible will now result in the menu
|
||||
being hidden.
|
||||
|
||||
+ Hidden field(s) created by a Button instance are now removed if the
|
||||
submission of its parent form is cancelled.
|
||||
|
||||
+ If a Button instance is preceeded by another enabled HTML submit button
|
||||
(<input type="submit" ...> or <button type="submit" ...>), it will no longer
|
||||
create a hidden field representing its name and value when its parent form
|
||||
is submitted.
|
||||
|
||||
+ If an HTML form contains a mix of YUI Buttons of type "submit" and standard
|
||||
HTML submit buttons (<input type="submit" ...> or <button type="submit" ...>)
|
||||
its "submit" event will no longer fire twice when it is submitted by the user
|
||||
pressing the enter key while focus inside another HTML form control.
|
||||
|
||||
+ If all Button instances in a form are disabled, the form will no longer be
|
||||
submitted when the user presses the enter key while focused inside another
|
||||
HTML form control.
|
||||
|
||||
+ The first enabled Button instance in a form now correctly adds its name and
|
||||
value to the form's data set when the form is submitted by the user pressing
|
||||
the enter key while focused inside another form control.
|
||||
|
||||
+ Fixed typo in the source file for the ButtonGroup class that was causing the
|
||||
private variable "m_oButtons" to be declared as a global.
|
||||
|
||||
+ Switched to use of the CSS display type "-moz-inline-box" from
|
||||
"-moz-inline-stack" for Gecko-based browsers so that the entire area of a
|
||||
Button instance is clickable when it is rendered inside another inline
|
||||
element.
|
||||
|
||||
+ Added "yui-button" and "yui-[button type]-button" prefix to CSS classes to
|
||||
sandbox Button styles.
|
||||
|
||||
|
||||
Changes:
|
||||
--------
|
||||
|
||||
+ Default value of "type" configuration attribute now "push" (was "button").
|
||||
|
||||
+ Type "menubutton" now "menu."
|
||||
|
||||
+ Type "splitbuton" now "split."
|
||||
|
||||
+ Added "addStateCSSClasses" method.
|
||||
|
||||
+ Added "removeStateCSSClasses" method.
|
||||
|
||||
+ Renamed protected property "_hiddenField" to "_hiddenFields."
|
||||
|
||||
+ Removed protected "submit" event handler named "_onFormSubmit."
|
||||
|
||||
+ Renamed public method "createHiddenField" to "createHiddenFields."
|
||||
|
||||
+ Added new "removeHiddenFields" method.
|
||||
|
||||
+ Renamed static method "YAHOO.widget.Button.onFormKeyDown"
|
||||
to "YAHOO.widget.Button.onFormKeyPress."
|
||||
|
||||
+ Renamed "TAG_NAME" constant (YAHOO.widget.Button.prototype.TAG_NAME and
|
||||
YAHOO.widget.ButtonGroup.prototype.TAG_NAME) to
|
||||
"NODE_NAME" (YAHOO.widget.Button.prototype.NODE_NAME and
|
||||
YAHOO.widget.ButtonGroup.prototype.NODE_NAME).
|
||||
|
||||
+ The "selectedMenuItem" configuration attribute now correctly gets/sets the
|
||||
index of the selected MenuItem instance of the button's menu, rather than a
|
||||
MenuItem instance.
|
||||
|
||||
+ The "container" configuration attribute is now writeonce
|
||||
|
||||
+ The "menu" configuration attribute is now writeonce
|
||||
|
||||
+ The root element of each button's menu now will have two CSS classes
|
||||
appended to it:
|
||||
- The CSS class name specified by the "menuclassname" configuration
|
||||
attribute (by default is "yui-button-menu")
|
||||
- A type-specific class name (either "yui-split-button-menu"
|
||||
or "yui-menu-button-menu")
|
||||
|
||||
+ "menu" configuration attribute now supports creation or use of
|
||||
YAHOO.widget.Overlay in addition to previously supported
|
||||
YAHOO.widget.Menu:
|
||||
|
||||
- To create a menu from existing markup using YAHOO.widget.Overlay, pass the
|
||||
id or node reference of the HTML element to be used to create the Overlay
|
||||
as the value of the "menu" configuration attribute.
|
||||
|
||||
- YAHOO.widget.Overlay instances passed as a value for the "menu"
|
||||
configuration attribute need to be fully rendered.
|
||||
|
||||
- To create a menu from existing markup using YAHOO.widget.Menu, pass the
|
||||
id or node reference of the HTML element to be used to create the menu
|
||||
as the value of the "menu" configuration attribute and give the
|
||||
HTML element the same class name as specified by
|
||||
YAHOO.widget.Menu.prototype.CSS_CLASS_NAME.
|
||||
|
||||
- YAHOO.widget.Overlay instances used as a menu are by default not rendered
|
||||
until they are are made visible for the first time. This behavior
|
||||
can be changed so that they are rendered immediately by setting the value
|
||||
of the "lazyloadmenu" configuration attribute to "false."
|
||||
|
||||
+ If you pass an element id for the value of the "menu" configuration
|
||||
attribute, that node is now accessed immediately via the "get" method of the
|
||||
Dom utility (YAHOO.util.Dom) as opposed to the "onContentReady" method of the
|
||||
Event utility (YAHOO.util.Event).
|
||||
|
||||
+ Modified code to support a more generic markup format. Now any number of
|
||||
HTML elements can exist between a Button's root HTML element and its button
|
||||
node (be it an <A> or <BUTTON> element):
|
||||
|
||||
<ROOT_NODE> ... <BUTTON_NODE /> ... </ROOT_NODE>
|
||||
|
||||
+ A Button can now be initialized using any of the following six HTML patterns:
|
||||
|
||||
- <A> TEXT/HTML </A>
|
||||
- <BUTTON> TEXT/HTML </BUTTON>
|
||||
- <INPUT />
|
||||
- <ROOT_NODE> ... <A> TEXT/HTML </A> ... </ROOT_NODE>
|
||||
- <ROOT_NODE> ... <BUTTON> TEXT/HTML </BUTTON> ... </ROOT_NODE>
|
||||
- <ROOT_NODE> ... <INPUT /> ... </ROOT_NODE>
|
||||
|
||||
+ The id of a Button instance can now match that of its source element.
|
||||
|
||||
+ CSS changes:
|
||||
|
||||
1) All Buttons have a "yui-" prefix as opposed to "yui":
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------
|
||||
.yuibutton | .yui-button
|
||||
|
||||
|
||||
2) Each Button type has its own class name with a "yui-" prefix and
|
||||
"-button" suffix IN ADDITION TO the default "yui-button" class name:
|
||||
|
||||
2.2.2 | 2.3
|
||||
------------------------------------------
|
||||
.yuibutton.splitbutton | .yui-split-button
|
||||
.yuibutton.menubutton | .yui-menu-button
|
||||
|
||||
* Allows for the definition of generic styles that apply to all buttons,
|
||||
while providing a means for uniquely styling buttons of a specific type.
|
||||
|
||||
|
||||
3) For states that are common to all Buttons, two classes are applied: a
|
||||
generic class name (i.e. yui-button-[state]) and a type-specific state class
|
||||
name (yui-[type]-button-[state]):
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------------------------
|
||||
.yuibutton.focus | .yui-button-focus
|
||||
.yuibutton.radio.focus | .yui-radio-button-focus
|
||||
|
||||
* States common to all Button types are:
|
||||
+ focus
|
||||
+ hover
|
||||
+ active
|
||||
+ disabled
|
||||
|
||||
** Allows for the definition of generic styles that apply to all states of
|
||||
all buttons, while providing a means for uniquely styling states for
|
||||
buttons of a specific type.
|
||||
|
||||
|
||||
4) Buttons of type "radio" and "checkbox" have two classes applied to
|
||||
represent their "checked" state: a generic class name
|
||||
(i.e. yui-button-checked) and a type-specific class
|
||||
name (yui-[type]-button-checked):
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------------------------
|
||||
.yuibutton.checked | .yui-button-checked
|
||||
.yuibutton.radio.checked | .yui-radio-button-checked
|
||||
.yuibutton.checkbox.checked | .yui-checkbox-button-checked
|
||||
|
||||
** This allows for the definition of a universal style for all Buttons that
|
||||
have a "checked" state or the ability to define a type-specific style for
|
||||
the "checked" state.
|
||||
|
||||
|
||||
5) States that are specific to a particular type only get a type-specific
|
||||
state class name. Currently this only applies to the "splitbutton" type:
|
||||
|
||||
2.2.2 | 2.3
|
||||
-------------------------------------------
|
||||
.yuibutton.activeoption | .yui-split-button-activeoption
|
||||
|
||||
|
||||
6) The "ie6" class name is removed.
|
||||
|
||||
|
||||
*** Version 2.2.2 ***
|
||||
|
||||
+ No changes
|
||||
|
||||
|
||||
*** Version 2.2.1 ***
|
||||
|
||||
Added the following features:
|
||||
-----------------------------
|
||||
|
||||
+ Added "getHiddenField" method to YAHOO.widget.Button.
|
||||
|
||||
|
||||
Fixed the following bugs:
|
||||
-------------------------
|
||||
|
||||
+ Removed built-in use of the Event utility's "onAvailable" method from the
|
||||
constructor of Button and ButtonGroup as it was preventing the addition of
|
||||
event listeners on instances created from existing markup. Going forward
|
||||
Button and ButtonGroup instances created from existing markup can only be
|
||||
instantiated once their source HTML element is available in the DOM. The
|
||||
Button examples illustrate how this can be accomplished.
|
||||
|
||||
+ Modified code so that disabled Button instances no longer fire DOM events.
|
||||
|
||||
+ Pressing the enter key while focused on a form field whose parent form
|
||||
contains a Button instance of type "submit" will now automatically submit
|
||||
the form using the first Button instance of type "submit".
|
||||
|
||||
+ Clicking a Button instance of type="submit" will now cause the Button's
|
||||
parent form's "submit" event to fire.
|
||||
|
||||
+ Modified Button CSS so that the filter used to apply alpha transparency to
|
||||
a Button's background PNG is only used by IE 6. The previous code was
|
||||
enabling IE's Alpha image loader for IE 7 in Quirks mode.
|
||||
|
||||
+ Fixed documentation error for "getForm" method.
|
||||
|
||||
|
||||
Changes:
|
||||
--------
|
||||
|
||||
+ Made the "submitForm" method of YAHOO.widget.Button public (was
|
||||
previously protected).
|
||||
|
||||
+ Removed "init" event and corresponding "oninit" configuration attribute
|
||||
from YAHOO.widget.Button and YAHOO.widget.ButtonGroup.
|
||||
|
||||
+ Added the CSS class "ie6" to button.css. This classname is append to root
|
||||
DOM element of Button instances created with IE 6. By default this class
|
||||
is used to apply a filter that gives alpha transparency to a Button's
|
||||
background PNG.
|
||||
|
||||
|
||||
|
||||
*** Version 2.2.0 ***
|
||||
|
||||
* Button Control introduced
|
44
webdir/javascript/yui/button/assets/button-core.css
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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;
|
||||
|
||||
}
|
240
webdir/javascript/yui/button/assets/skins/sam/button-skin.css
Normal file
@ -0,0 +1,240 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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;
|
||||
*position: relative; /* Necessary to get negative margins working in IE */
|
||||
*left: -1px;
|
||||
|
||||
/*
|
||||
Don't apply rounded corners for IE 6 (Quirks and Standards Mode) and IE 7 Quirks Mode
|
||||
since it causes more problems than its worth.
|
||||
*/
|
||||
_margin: 0;
|
||||
_position: static;
|
||||
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-button button,
|
||||
.yui-skin-sam .yui-button a {
|
||||
|
||||
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-button-focus button,
|
||||
.yui-skin-sam .yui-button-focus a {
|
||||
|
||||
color: #000;
|
||||
|
||||
}
|
||||
|
||||
.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-button-hover button,
|
||||
.yui-skin-sam .yui-button-hover a {
|
||||
|
||||
color: #000;
|
||||
|
||||
}
|
||||
|
||||
.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-button-active button,
|
||||
.yui-skin-sam .yui-button-active a {
|
||||
|
||||
color: #000;
|
||||
|
||||
}
|
||||
|
||||
.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 {
|
||||
|
||||
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);
|
||||
|
||||
}
|
7
webdir/javascript/yui/button/assets/skins/sam/button.css
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.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;*position:relative;*left:-1px;_margin:0;_position:static;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{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-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.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-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.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-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.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{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);}
|
After Width: | Height: | Size: 173 B |
After Width: | Height: | Size: 173 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 185 B |
4859
webdir/javascript/yui/button/button-debug.js
vendored
Normal file
11
webdir/javascript/yui/button/button-min.js
vendored
Normal file
4798
webdir/javascript/yui/button/button.js
vendored
Normal file
421
webdir/javascript/yui/calendar/README
Normal file
@ -0,0 +1,421 @@
|
||||
Calendar Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
|
||||
+ Fixed incorrect cell index parsing from cell id attribute, when
|
||||
Calendar id contained "cell".
|
||||
|
||||
+ Added text to previous month, next month and close icons, to
|
||||
enhance accessibility for screen-readers.
|
||||
|
||||
+ Fixed issue with bubbled previous month, next month click events
|
||||
missing target information in certain browsers (due to replaced HTML),
|
||||
by delaying click event handling through a setTimeout.
|
||||
|
||||
+ Added destroy method to Calendar/CalendarGroup
|
||||
|
||||
+ Fixed incorrect clear method behavior for CalendarGroup where all
|
||||
pages would be set to the same month.
|
||||
|
||||
+ Refactored code to reduce minified Kweight.
|
||||
|
||||
*** version 2.5.2 ***
|
||||
|
||||
+ CalendarGroup toDate method no longer throws javascript exception
|
||||
|
||||
*** version 2.5.1 ***
|
||||
|
||||
+ Fixed bug with mindate, maxdate being applied incorrectly if
|
||||
set to a day on which time change took place (DST, E.U Summertime)
|
||||
and the day is not the first day of the week.
|
||||
|
||||
+ Fixed DateMath.getWeekNumber implementation to return correct
|
||||
week numbers. The older implementation would return Week 0 for
|
||||
certain weeks (e.g. the week starting Sun Dec 28th 2008)
|
||||
|
||||
To suppor the fix, DateMath.getWeekNumber has a signature
|
||||
change in 2.5.1 and can now support U.S Week calculations based
|
||||
on Jan 1st identifying the first week of the year, as well as
|
||||
ISO8601 week calculations based on Jan 4th identifying the first
|
||||
week of the year
|
||||
|
||||
The arguments which the method expected prior to 2.5.1 were not
|
||||
being used in calculating the week number. The new signature is:
|
||||
|
||||
DateMath.getWeekNumber(Date dt, Number firstDayOfWeek, Number janDate)
|
||||
|
||||
Where:
|
||||
|
||||
dt is the date for which week number is required
|
||||
|
||||
firstDayOfWeek is the day index identifying the first
|
||||
day of the week. Default is 0 (Sunday).
|
||||
|
||||
janDate is the date in the first week of January, which
|
||||
identifies the first week of the year.
|
||||
Default is YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE (1)
|
||||
|
||||
NOTE: Calendar instances themselves do not currently expose a
|
||||
configuration property to change the week numbering system
|
||||
used. A "janDate" value is not passed to the getWeekNumber
|
||||
method, when used by Calendar, resulting in it using the default value.
|
||||
|
||||
Therefore, ISO8601 week numbering can be generated for Calendars
|
||||
by setting the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE
|
||||
to 4.
|
||||
|
||||
*** version 2.5.0 ***
|
||||
|
||||
+ Prevent default event handling in CalendarNavigator enter key
|
||||
listener, to prevent automatic form submission when using Calendar
|
||||
inside a form.
|
||||
|
||||
+ Added workaround to DateMath.add and subtract for Safari 2 (webkit)
|
||||
bug in Date.setDate(n) which doesn't handle value of n less than -128
|
||||
or greater than 127 correctly.
|
||||
|
||||
See: http://brianary.blogspot.com/2006/03/safari-date-bug.html
|
||||
|
||||
+ Added border, padding and margin rules to Calendar Sam Skin to
|
||||
protect Sam Skin's look and feel when Calendar is used with
|
||||
YUI base.css
|
||||
|
||||
*** version 2.4.0 ***
|
||||
|
||||
+ Added CalendarNavigator (year selector) feature to allow the user to
|
||||
jump to a year/month directly without having to scroll through months
|
||||
sequentially.
|
||||
|
||||
The feature is enabled/configured using the "navigator" configuration
|
||||
property.
|
||||
|
||||
+ Added Custom Events:
|
||||
|
||||
showNav/beforeShowNav
|
||||
hideNav/beforeHideNav,
|
||||
renderNav/beforeRenderNav
|
||||
|
||||
To Calendar/CalendarGroup, in support of the CalendarNavigator
|
||||
functionality.
|
||||
|
||||
+ Added Custom Events:
|
||||
|
||||
show/beforeShow
|
||||
hide/beforeHide
|
||||
|
||||
To Calendar and CalendarGroup. Returning false from a
|
||||
beforeShow/beforeHide listener can be used to prevent the Calendar
|
||||
from being shown/hidden respectively.
|
||||
|
||||
+ Added Public Methods:
|
||||
|
||||
getCellIndex(date) [ Calendar ]
|
||||
getCalendarPage(date) [ CalendarGroup ]
|
||||
toDate(dateArray) [ Calendar/CalendarGroup ]
|
||||
removeRenderers() [ Calendar/CalendarGroup ]
|
||||
|
||||
+ The Calendar/CalendarGroup constructor is now more flexible:
|
||||
|
||||
* It no longer requires an "id" argument.
|
||||
|
||||
In it's simplest form, a Calendar/CalendarGroup can be
|
||||
constructed by simply providing a container id or reference.
|
||||
|
||||
var cal = new YAHOO.widget.Calendar("container");
|
||||
-or-
|
||||
var containerDiv = YAHOO.util.Dom.get("container");
|
||||
var cal = new YAHOO.widget.Calendar(containerDiv);
|
||||
|
||||
An id for the Calendar does not need to be provided, and will be
|
||||
generated from the container id by appending an "_t" suffix to the
|
||||
container id if only the container is provided.
|
||||
|
||||
* The container argument can be either a string, representing the
|
||||
id of the container, or an HTMLElement referring to the container
|
||||
element itself, as suggested in the example above.
|
||||
|
||||
* If an HTMLElement is provided for the container argument and the
|
||||
element does not have an id, one will be generated for it using
|
||||
YAHOO.util.Dom.generateId().
|
||||
|
||||
* The older form of Calendar/CalendarGroup signature, expecting
|
||||
both an id and containerId is still supported and works as it did
|
||||
prior to 2.4.0.
|
||||
|
||||
+ Fixed performance issue, where the same custom renderer was being
|
||||
applied multiple times to the same cell.
|
||||
|
||||
+ Added getDate(year, month, date) factory method to the DateMath utility,
|
||||
which can be used to create JavaScript Date instances for years less
|
||||
than 100.
|
||||
|
||||
The default Date(year, month, date) constructor implementations across
|
||||
browsers, assume that if year < 100, the caller is referring to the
|
||||
nineteen hundreds, and the year is set to 19xx instead of xx (as with
|
||||
the deprecated setYear method). However Date.setFullYear(xx) can
|
||||
be used to set dates below 100. The above factory method provides a
|
||||
construction mechanism consistent with setFullYear.
|
||||
|
||||
+ Changed Calendar/CalendarGroup/DateMath code to use the DateMath.getDate
|
||||
method, so that 2 digit years are not assumed to be in the 1900's.
|
||||
|
||||
NOTE: Calendar's API already expects 4 digit date strings when referring
|
||||
to years after 999.
|
||||
|
||||
*** version 2.3.1 ***
|
||||
|
||||
+ Changed Calendar/CalendarGroup to render an empty title bar element
|
||||
when "close" is set to true, but "title" has not been set, to allow Sam
|
||||
Skin to render a title bar correctly.
|
||||
|
||||
*** version 2.3.0 ***
|
||||
|
||||
+ Added checks to select, selectCell, deselect and deselectCell methods
|
||||
to ensure the Calendar/Calendar group was not set to an invalid state
|
||||
by programmatically selecting unselectable dates or cells.
|
||||
|
||||
+ Added new locale configuration properties for the Month/Year label
|
||||
used in the Calendar header (MY_LABEL_MONTH_POSITION,
|
||||
MY_LABEL_YEAR_POSITION, MY_LABEL_YEAR_SUFFIX, MY_LABEL_MONTH_SUFFIX).
|
||||
Japan is an example locale, where customization of the Month/Year
|
||||
label is required.
|
||||
|
||||
+ Changed "first", "last" class names to "first-of-type", "last-of-type",
|
||||
to avoid collision with YUI Grids' use of the "first" class name.
|
||||
|
||||
+ Added public isDateOOB method, to check if a given date is outside of
|
||||
the minimum/maximum configuration dates of the Calendar.
|
||||
|
||||
+ Deprecated YAHOO.widget.Calendar.browser, refactored to use
|
||||
YAHOO.env.ua instead.
|
||||
|
||||
+ Removed overflow:hidden from default Calendar/CalendarGroup container
|
||||
for non-IE6 browsers to fix clipping issue with IE7 when CalendarGroup
|
||||
was inside a box with a specific width. overflow:hidden is still
|
||||
required for IE6 with an iframe shim.
|
||||
|
||||
+ Added Opera container width calculation fix to CalendarGroup.show
|
||||
method, to fix incorrect wrapping when using a CalendarGroup which is
|
||||
initially rendered hidden (display:none). Previously this fix was
|
||||
only applied on render.
|
||||
|
||||
*** version 2.2.2 ***
|
||||
|
||||
+ Fixed problem with selected dates being shared across instances, when
|
||||
more than one Calendar/CalendarGroup was on the page
|
||||
|
||||
*** version 2.2.1 ***
|
||||
|
||||
+ Fixed problem with selectCell adding duplicate selected date entries
|
||||
for dates which were already selected
|
||||
|
||||
+ Fixed problem with CalendarGroup iframe shim not covering the
|
||||
CalendarGroup title area
|
||||
|
||||
+ Removed javascript:void(null) from close button and cell links which
|
||||
was interrupting form submission and firing onbeforeunload in IE
|
||||
|
||||
+ Fixed problem with CalendarGroup getSelectedDates returning invalid
|
||||
results, when used in conjunction with the "selected" Config property
|
||||
(either passed in the constructor config argument or set seperately
|
||||
after construction)
|
||||
|
||||
+ Refactored Calendar and CalendarGroup to improve performance,
|
||||
especially when working with a large number of instances in
|
||||
IE6
|
||||
|
||||
*** version 2.2.0 ***
|
||||
|
||||
+ Image customization can now be done through CSS. Images for Close,
|
||||
Left and Right Arrows are now pulled in using CSS defined in
|
||||
calendar.css and by default use relative paths to the images in
|
||||
the same directory as calendar.css.
|
||||
|
||||
+ Deprecated Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT
|
||||
configuration properties. Customizations based on older releases
|
||||
which set these properties will still function as expected.
|
||||
|
||||
+ Deprecated CalendarGroup.CSS_2UPCLOSE. Calendar's Style.CSS_CLOSE
|
||||
property now represents the new default CSS class (calclose) for
|
||||
the close button. CSS_2UPCLOSE is still applied along with
|
||||
CSS_CLOSE to the new markup for the close button to support existing
|
||||
customizations of the CSS_2UPCLOSE CSS class (close-icon)
|
||||
|
||||
+ Fixed problem with Safari setting Calendar pages to incorrect dates
|
||||
if the pages spanned a year boundary in CalendarGroups with 3 or more
|
||||
pages, due to a bug in Safari's implementation of Date setMonth
|
||||
|
||||
+ Fixed problem with CalendarGroup setMonth rendering Calendar pages
|
||||
with incorrect dates in all browsers if current pages spanned year
|
||||
boundary
|
||||
|
||||
+ Fixed incorrect CalendarGroup logging statement in calendar-debug.js
|
||||
|
||||
+ Fixed domEventMap support for Safari versions prior to 2.0.2,
|
||||
caused by hasOwnProperty not being supported
|
||||
|
||||
+ Removed unused private property : _pageDate from Calendar class
|
||||
|
||||
*** version 0.12.2 ***
|
||||
|
||||
+ Corrected documentation for clearTime function to reflect the
|
||||
change from midnight to noon
|
||||
|
||||
*** version 0.12.1 ***
|
||||
|
||||
+ Calendar and CalendarGroup now automatically parse the argument
|
||||
passed to setMonth and setYear into an integer, eliminating
|
||||
potential concatenation bugs.
|
||||
|
||||
*** version 0.12 ***
|
||||
|
||||
+ New documentation format implemented
|
||||
|
||||
+ Calendar2up and Calendar_Core are now deprecated. Now, Calendar alone
|
||||
represents the single Calendar instance, and CalendarGroup represents
|
||||
an n-up instance, defaulting to 2up
|
||||
|
||||
+ Added semantic style classes to Calendar elements to allow for
|
||||
custom styling solely using CSS.
|
||||
|
||||
+ Remapped all configuration properties to use the Config object
|
||||
(familiar to those who use the Container collection of controls).
|
||||
Property names are the same as their previous counterparts, but
|
||||
wrapped into Calendar.cfg, allowing for runtime reconfiguration of
|
||||
most properties
|
||||
|
||||
+ Added "title" property for setting the Calendar title
|
||||
|
||||
+ Added "close" property for enabling and disabling the close icon
|
||||
|
||||
+ Added "iframe" property for enabling an iframe shim in Internet
|
||||
Explorer 6 and below to fix the select bleed-through bug
|
||||
|
||||
+ pageDate moved to property: "pagedate"
|
||||
|
||||
+ selectedDates moved to property: "selected"
|
||||
|
||||
+ minDate moved to property : "mindate", which accepts a JavaScript
|
||||
Date object like its predecessor, but also supports string dates
|
||||
|
||||
+ maxDate moved to property : "maxdate", which accepts a JavaScript
|
||||
Date object like its predecessor, but also supports string dates
|
||||
|
||||
+ Moved style declarations to initStyles function
|
||||
|
||||
+ Optimized event handling in doSelectCell/doCellMouseOver/
|
||||
doCellMouseOut by only attaching the listener to the outer
|
||||
Calendar container, and only reacting to events on cells with
|
||||
the "selectable" CSS class.
|
||||
|
||||
+ Added domEventMap field for applying DOM event listeners to cells
|
||||
containing specific class and tag combinations.
|
||||
|
||||
+ Moved all cell DOM event attachment to applyListeners function
|
||||
|
||||
+ Added getDateByCellId / getDateFieldsByCellId helper functions
|
||||
|
||||
+ Corrected DateMath.getWeekNumber to comply with ISO week number
|
||||
handling
|
||||
|
||||
+ Separated renderCellDefault style portions into styleCellDefault
|
||||
function for easy extension
|
||||
|
||||
+ Deprecated onBeforeSelect. Created beforeSelectEvent which
|
||||
automatically subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onSelect. Created selectEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onBeforeDeselect. Created beforeSelectEvent which
|
||||
automatically subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onDeselect. Created beforeDeselectEvent, which
|
||||
automatically subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onChangePage. Created changePageEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onRender. Created renderEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onReset. Created resetEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Deprecated onClear. Created clearEvent, which automatically
|
||||
subscribes to its deprecated predecessor.
|
||||
|
||||
+ Corrected setMonth documentation to refer to 0-11 indexed months.
|
||||
|
||||
+ Added show and hide methods to Calendar for setting the Calendar's
|
||||
display property.
|
||||
|
||||
+ Optimized internal render classes to use innerHTML and string buffers
|
||||
|
||||
+ Removed wireCustomEvents function
|
||||
|
||||
+ Removed wireDefaultEvents function
|
||||
|
||||
+ Removed doNextMonth / doPreviousMonth
|
||||
|
||||
+ Removed all buildShell (header, body, footer) functions, since
|
||||
the Calendar shell is now built dynamically on each render
|
||||
|
||||
+ Wired all CalendarGroup events and configuration properties to
|
||||
be properly delegated to Calendar
|
||||
|
||||
+ Augmented CalendarGroup with all built-in renderers, label functions,
|
||||
hide, show, and initStyles, creating API transparency between Calendar
|
||||
and CalendarGroup.
|
||||
|
||||
+ Made all tagName, createElement, and entity references XHTML compliant
|
||||
|
||||
+ Fixed Daylight Saving Time bug for Brazilian time zone
|
||||
|
||||
*** version 0.11.3 ***
|
||||
|
||||
+ Calendar_Core: Added arguments for selected/deselected dates to
|
||||
onSelect/onDeselect
|
||||
|
||||
+ CalendarGroup: Fixed bug where selected dates passed to constructor
|
||||
were not represented in selectedDates
|
||||
|
||||
+ Calendar2up: Now displays correctly in Opera 9
|
||||
|
||||
*** version 0.11.0 ***
|
||||
|
||||
+ DateMath: DateMath.add now properly adds weeks
|
||||
|
||||
+ DateMath: between() function added
|
||||
|
||||
+ DateMath: getWeekNumber() fixed to take starting day of week into
|
||||
account
|
||||
|
||||
+ All references to Calendar's built in CSS class handlers are
|
||||
removed, replaced with calls to Dom utility (addClass, removeClass)
|
||||
|
||||
+ Several CSS class constants now have clearer names
|
||||
|
||||
+ All CSS classes are now properly namespaced to avoid CSS conflicts
|
||||
|
||||
+ Fixed table:hover bug in CSS
|
||||
|
||||
+ Calendar no longer requires the container ID and variable name to
|
||||
match in order for month navigation to function properly
|
||||
|
||||
+ Calendar month navigation arrows are now represented as
|
||||
background images
|
||||
|
||||
*** version 0.10.0 ***
|
||||
|
||||
+ Major performance improvements from attaching DOM events to
|
||||
associated table cells only once, when the Calendar shell is built
|
||||
|
||||
+ DOM events for mouseover/mouseout are now fired for all browsers
|
||||
(not just Internet Explorer)
|
||||
|
||||
+ Reset functionality bug fixed for 2-up Calendar view
|
||||
|
||||
*** version 0.9.0 ***
|
||||
|
||||
* Initial release
|
132
webdir/javascript/yui/calendar/assets/calendar-core.css
Normal file
@ -0,0 +1,132 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
/**
|
||||
* CORE
|
||||
*
|
||||
* This is the set of CSS rules required by Calendar to drive core functionality and structure.
|
||||
* Changes to these rules may result in the Calendar not functioning or rendering correctly.
|
||||
*
|
||||
* They should not be modified for skinning.
|
||||
**/
|
||||
|
||||
/* CALENDAR BOUNDING BOX */
|
||||
.yui-calcontainer {
|
||||
position:relative;
|
||||
float:left;
|
||||
_overflow:hidden; /* IE6 only, to clip iframe shim */
|
||||
}
|
||||
|
||||
/* IFRAME SHIM */
|
||||
.yui-calcontainer iframe {
|
||||
position:absolute;
|
||||
border:none;
|
||||
margin:0;padding:0;
|
||||
z-index:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
left:0px;
|
||||
top:0px;
|
||||
}
|
||||
|
||||
/* IFRAME SHIM IE6 only */
|
||||
.yui-calcontainer iframe.fixedsize {
|
||||
width:50em;
|
||||
height:50em;
|
||||
top:-1px;
|
||||
left:-1px;
|
||||
}
|
||||
|
||||
/* BOUNDING BOX FOR EACH CALENDAR GROUP PAGE */
|
||||
.yui-calcontainer.multi .groupcal {
|
||||
z-index:1;
|
||||
float:left;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
/* TITLE BAR */
|
||||
.yui-calcontainer .title {
|
||||
position:relative;
|
||||
z-index:1;
|
||||
}
|
||||
|
||||
/* CLOSE ICON CONTAINER */
|
||||
.yui-calcontainer .close-icon {
|
||||
position:absolute;
|
||||
z-index:1;
|
||||
text-indent:-10000em;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
/* CALENDAR TABLE */
|
||||
.yui-calendar {
|
||||
position:relative;
|
||||
}
|
||||
|
||||
/* NAVBAR LEFT ARROW CONTAINER */
|
||||
.yui-calendar .calnavleft {
|
||||
position:absolute;
|
||||
z-index:1;
|
||||
text-indent:-10000em;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
/* NAVBAR RIGHT ARROW CONTAINER */
|
||||
.yui-calendar .calnavright {
|
||||
position:absolute;
|
||||
z-index:1;
|
||||
text-indent:-10000em;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
/* NAVBAR TEXT CONTAINER */
|
||||
.yui-calendar .calheader {
|
||||
position:relative;
|
||||
width:100%;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
/* CalendarNavigator */
|
||||
.yui-calcontainer .yui-cal-nav-mask {
|
||||
position:absolute;
|
||||
z-index:2;
|
||||
margin:0;
|
||||
padding:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
_width:0; /* IE6, IE7 quirks - width/height set programmatically to match container */
|
||||
_height:0;
|
||||
left:0;
|
||||
top:0;
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* NAVIGATOR BOUNDING BOX */
|
||||
.yui-calcontainer .yui-cal-nav {
|
||||
position:absolute;
|
||||
z-index:3;
|
||||
top:0;
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* NAVIGATOR BUTTONS (based on button-core.css) */
|
||||
.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn {
|
||||
display: -moz-inline-box; /* Gecko */
|
||||
display: inline-block; /* IE, Opera and Safari */
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button {
|
||||
display: block;
|
||||
*display: inline-block; /* IE */
|
||||
*overflow: visible; /* Remove superfluous padding for IE */
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Specific changes for calendar running under fonts/reset */
|
||||
.yui-calendar .calbody a:hover {background:inherit;}
|
||||
p#clear {clear:left; padding-top:10px;}
|
320
webdir/javascript/yui/calendar/assets/calendar.css
Normal file
@ -0,0 +1,320 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-calcontainer {
|
||||
position:relative;
|
||||
padding:5px;
|
||||
background-color:#F7F9FB;
|
||||
border:1px solid #7B9EBD;
|
||||
float:left;
|
||||
_overflow:hidden; /* IE6 only, to clip iframe shim */
|
||||
}
|
||||
|
||||
.yui-calcontainer iframe {
|
||||
position:absolute;
|
||||
border:none;
|
||||
margin:0;padding:0;
|
||||
z-index:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
left:0px;
|
||||
top:0px;
|
||||
}
|
||||
|
||||
/* IE6 only */
|
||||
.yui-calcontainer iframe.fixedsize {
|
||||
width:50em;
|
||||
height:50em;
|
||||
top:-1px;
|
||||
left:-1px;
|
||||
}
|
||||
|
||||
.yui-calcontainer.multi {
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.yui-calcontainer.multi .groupcal {
|
||||
padding:5px;
|
||||
background-color:transparent;
|
||||
z-index:1;
|
||||
float:left;
|
||||
position:relative;
|
||||
border:none;
|
||||
}
|
||||
|
||||
.yui-calcontainer .title {
|
||||
font:100% sans-serif;
|
||||
color:#000;
|
||||
font-weight:bold;
|
||||
margin-bottom:5px;
|
||||
height:25px;
|
||||
position:absolute;
|
||||
top:3px;left:5px;
|
||||
z-index:1;
|
||||
}
|
||||
|
||||
.yui-calcontainer .close-icon {
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
text-indent:-10000em;
|
||||
right:3px;
|
||||
top:3px;
|
||||
border:none;
|
||||
z-index:1;
|
||||
}
|
||||
|
||||
.yui-calcontainer .calclose {
|
||||
background: url("calx.gif") no-repeat;
|
||||
width:17px;
|
||||
height:13px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* Calendar element styles */
|
||||
|
||||
.yui-calendar {
|
||||
font:100% sans-serif;
|
||||
text-align:center;
|
||||
border-spacing:0;
|
||||
border-collapse:separate;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.yui-calcontainer.withtitle {
|
||||
padding-top:1.5em;
|
||||
}
|
||||
|
||||
.yui-calendar .calnavleft {
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
text-indent:-10000em;
|
||||
cursor:pointer;
|
||||
top:2px;
|
||||
bottom:0;
|
||||
width:9px;
|
||||
height:12px;
|
||||
left:2px;
|
||||
z-index:1;
|
||||
background: url("callt.gif") no-repeat;
|
||||
}
|
||||
|
||||
.yui-calendar .calnavright {
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
text-indent:-10000em;
|
||||
cursor:pointer;
|
||||
top:2px;
|
||||
bottom:0;
|
||||
width:9px;
|
||||
height:12px;
|
||||
right:2px;
|
||||
z-index:1;
|
||||
background: url("calrt.gif") no-repeat;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell {
|
||||
padding:.1em .2em;
|
||||
border:1px solid #E0E0E0;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell a {
|
||||
color:#003DB8;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.today {
|
||||
border:1px solid #000;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.oom {
|
||||
cursor:default;
|
||||
color:#999;
|
||||
background-color:#EEE;
|
||||
border:1px solid #E0E0E0;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.selected {
|
||||
color:#003DB8;
|
||||
background-color:#FFF19F;
|
||||
border:1px solid #FF9900;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.calcellhover {
|
||||
cursor:pointer;
|
||||
color:#FFF;
|
||||
background-color:#FF9900;
|
||||
border:1px solid #FF9900;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.calcellhover a {
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.restricted {
|
||||
text-decoration:line-through;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.previous {
|
||||
color:#CCC;
|
||||
}
|
||||
|
||||
.yui-calendar td.calcell.highlight1 { background-color:#CCFF99; }
|
||||
.yui-calendar td.calcell.highlight2 { background-color:#99CCFF; }
|
||||
.yui-calendar td.calcell.highlight3 { background-color:#FFCCCC; }
|
||||
.yui-calendar td.calcell.highlight4 { background-color:#CCFF99; }
|
||||
|
||||
.yui-calendar .calhead {
|
||||
border:1px solid #E0E0E0;
|
||||
vertical-align:middle;
|
||||
background-color:#FFF;
|
||||
}
|
||||
|
||||
.yui-calendar .calheader {
|
||||
position:relative;
|
||||
width:100%;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.yui-calendar .calheader img {
|
||||
border:none;
|
||||
}
|
||||
|
||||
.yui-calendar .calweekdaycell {
|
||||
color:#666;
|
||||
font-weight:normal;
|
||||
text-align:center;
|
||||
width:1.5em;
|
||||
}
|
||||
|
||||
.yui-calendar .calfoot {
|
||||
background-color:#EEE;
|
||||
}
|
||||
|
||||
.yui-calendar .calrowhead, .yui-calendar .calrowfoot {
|
||||
color:#666;
|
||||
font-size:9px;
|
||||
font-style:italic;
|
||||
font-weight:normal;
|
||||
width:15px;
|
||||
}
|
||||
|
||||
.yui-calendar .calrowhead {
|
||||
border-right-width:2px;
|
||||
}
|
||||
|
||||
/* CalendarNavigator */
|
||||
.yui-calendar a.calnav {
|
||||
_position:relative;
|
||||
padding-left:2px;
|
||||
padding-right:2px;
|
||||
text-decoration:none;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.yui-calendar a.calnav:hover {
|
||||
border:1px solid #003366;
|
||||
background-color:#6699cc;
|
||||
background: url(calgrad.png) repeat-x;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-mask {
|
||||
position:absolute;
|
||||
z-index:2;
|
||||
display:none;
|
||||
|
||||
margin:0;
|
||||
padding:0;
|
||||
|
||||
left:0;
|
||||
top:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
_width:0; /* IE6, IE7 Quirks - width/height set programmatically to match container */
|
||||
_height:0;
|
||||
|
||||
background-color:#000;
|
||||
opacity:0.25;
|
||||
*filter:alpha(opacity=25);
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav {
|
||||
position:absolute;
|
||||
z-index:3;
|
||||
display:none;
|
||||
|
||||
padding:0;
|
||||
top:1.5em;
|
||||
left:50%;
|
||||
width:12em;
|
||||
margin-left:-6em;
|
||||
|
||||
border:1px solid #7B9EBD;
|
||||
background-color:#F7F9FB;
|
||||
font-size:93%;
|
||||
}
|
||||
|
||||
.yui-calcontainer.withtitle .yui-cal-nav {
|
||||
top:3.5em;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-y,
|
||||
.yui-calcontainer .yui-cal-nav-m,
|
||||
.yui-calcontainer .yui-cal-nav-b {
|
||||
padding:2px 5px 2px 5px;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-b {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-e {
|
||||
margin-top:2px;
|
||||
padding:2px;
|
||||
background-color:#EDF5FF;
|
||||
border-top:1px solid black;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav label {
|
||||
display:block;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-mc {
|
||||
width:100%;
|
||||
_width:auto; /* IE6 doesn't like width 100% */
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-y input.yui-invalid {
|
||||
background-color:#FFEE69;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-yc {
|
||||
width:3em;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-b button {
|
||||
font-size:93%;
|
||||
text-decoration:none;
|
||||
cursor: pointer;
|
||||
background-color: #79b2ea;
|
||||
border: 1px solid #003366;
|
||||
border-top-color:#FFF;
|
||||
border-left-color:#FFF;
|
||||
margin:1px;
|
||||
}
|
||||
|
||||
.yui-calcontainer .yui-cal-nav-b .yui-default button {
|
||||
/* not implemented */
|
||||
}
|
||||
|
||||
/* Specific changes for calendar running under fonts/reset */
|
||||
.yui-calendar .calbody a:hover {background:inherit;}
|
||||
p#clear {clear:left; padding-top:10px;}
|
BIN
webdir/javascript/yui/calendar/assets/calgrad.png
Normal file
After Width: | Height: | Size: 497 B |
BIN
webdir/javascript/yui/calendar/assets/callt.gif
Normal file
After Width: | Height: | Size: 93 B |
BIN
webdir/javascript/yui/calendar/assets/calrt.gif
Normal file
After Width: | Height: | Size: 94 B |
BIN
webdir/javascript/yui/calendar/assets/calx.gif
Normal file
After Width: | Height: | Size: 88 B |
@ -0,0 +1,361 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
/**
|
||||
* SAM
|
||||
*
|
||||
* Skin colors used:
|
||||
*
|
||||
* - Control Border : 808080
|
||||
* - Control Chrome : f2f2f2
|
||||
* - Cell Borders : cccccc
|
||||
* - Normal Cell BG : ffffff
|
||||
* - Date Links : 0066cc
|
||||
* - Selected Cells BG : b3d4ff
|
||||
* - Cell Hover BG : 426fd9
|
||||
* - Disabled BG : cccccc
|
||||
* - Disabled Text Color : a6a6a6
|
||||
**/
|
||||
|
||||
/* CALENDAR BOUNDING BOX */
|
||||
.yui-skin-sam .yui-calcontainer {
|
||||
background-color:#f2f2f2;
|
||||
border:1px solid #808080;
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
/* CALENDARGROUP BOUNDING BOX */
|
||||
.yui-skin-sam .yui-calcontainer.multi {
|
||||
padding:0 5px 0 5px;
|
||||
}
|
||||
|
||||
/* BOUNDING BOX FOR EACH CALENDAR GROUP PAGE */
|
||||
.yui-skin-sam .yui-calcontainer.multi .groupcal {
|
||||
background-color:transparent;
|
||||
border:none;
|
||||
padding:10px 5px 10px 5px;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
/* TITLE BAR */
|
||||
.yui-skin-sam .yui-calcontainer .title {
|
||||
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
|
||||
border-bottom:1px solid #cccccc;
|
||||
font:100% sans-serif;
|
||||
color:#000;
|
||||
font-weight:bold;
|
||||
height:auto;
|
||||
padding:.4em;
|
||||
margin:0 -10px 10px -10px;
|
||||
top:0;
|
||||
left:0;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calcontainer.multi .title {
|
||||
margin:0 -5px 0 -5px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calcontainer.withtitle {
|
||||
padding-top:0;
|
||||
}
|
||||
|
||||
/* CLOSE BUTTON */
|
||||
.yui-skin-sam .yui-calcontainer .calclose {
|
||||
background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
|
||||
width:25px;
|
||||
height:15px;
|
||||
top:.4em;
|
||||
right:.4em;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* CALENDAR TABLE */
|
||||
.yui-skin-sam .yui-calendar {
|
||||
border-spacing:0;
|
||||
border-collapse:collapse;
|
||||
font:100% sans-serif;
|
||||
text-align:center;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
/* NAVBAR BOUNDING BOX */
|
||||
.yui-skin-sam .yui-calendar .calhead {
|
||||
background:transparent;
|
||||
border:none;
|
||||
vertical-align:middle;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
/* NAVBAR TEXT CONTAINER */
|
||||
.yui-skin-sam .yui-calendar .calheader {
|
||||
background:transparent;
|
||||
font-weight:bold;
|
||||
padding:0 0 .6em 0;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar .calheader img {
|
||||
border:none;
|
||||
}
|
||||
|
||||
/* NAVBAR LEFT ARROW */
|
||||
.yui-skin-sam .yui-calendar .calnavleft {
|
||||
background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -450px;
|
||||
width:25px;
|
||||
height:15px;
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:-10px;
|
||||
margin-left:.4em;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* NAVBAR RIGHT ARROW */
|
||||
.yui-skin-sam .yui-calendar .calnavright {
|
||||
background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -500px;
|
||||
width:25px;
|
||||
height:15px;
|
||||
top:0;
|
||||
bottom:0;
|
||||
right:-10px;
|
||||
margin-right:.4em;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* WEEKDAY HEADER ROW */
|
||||
.yui-skin-sam .yui-calendar .calweekdayrow {
|
||||
height:2em;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar .calweekdayrow th {
|
||||
padding:0;
|
||||
border:none;
|
||||
}
|
||||
|
||||
/* WEEKDAY (Su, Mo, Tu...) HEADER CELLS */
|
||||
.yui-skin-sam .yui-calendar .calweekdaycell {
|
||||
color:#000;
|
||||
font-weight:bold;
|
||||
text-align:center;
|
||||
width:2em;
|
||||
}
|
||||
|
||||
/* CALENDAR FOOTER. NOT IMPLEMENTED BY DEFAULT */
|
||||
.yui-skin-sam .yui-calendar .calfoot {
|
||||
background-color:#f2f2f2;
|
||||
}
|
||||
|
||||
/* WEEK NUMBERS (ROW HEADERS/FOOTERS) */
|
||||
.yui-skin-sam .yui-calendar .calrowhead, .yui-skin-sam .yui-calendar .calrowfoot {
|
||||
color:#a6a6a6;
|
||||
font-size:85%;
|
||||
font-style:normal;
|
||||
font-weight:normal;
|
||||
border:none;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar .calrowhead {
|
||||
text-align:right;
|
||||
padding:0 2px 0 0;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar .calrowfoot {
|
||||
text-align:left;
|
||||
padding:0 0 0 2px;
|
||||
}
|
||||
|
||||
/* NORMAL CELLS */
|
||||
.yui-skin-sam .yui-calendar td.calcell {
|
||||
border:1px solid #cccccc;
|
||||
background:#fff;
|
||||
padding:1px;
|
||||
height:1.6em;
|
||||
line-height:1.6em; /* set line height equal to cell height to center vertically */
|
||||
text-align:center;
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
||||
/* LINK INSIDE NORMAL CELLS */
|
||||
.yui-skin-sam .yui-calendar td.calcell a {
|
||||
color:#0066cc;
|
||||
display:block;
|
||||
height:100%;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
/* TODAY'S DATE */
|
||||
.yui-skin-sam .yui-calendar td.calcell.today {
|
||||
background-color:#000;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar td.calcell.today a {
|
||||
background-color:#fff;
|
||||
}
|
||||
|
||||
/* OOM DATES */
|
||||
.yui-skin-sam .yui-calendar td.calcell.oom {
|
||||
background-color:#cccccc;
|
||||
color:#a6a6a6;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
/* SELECTED DATE */
|
||||
.yui-skin-sam .yui-calendar td.calcell.selected {
|
||||
background-color:#fff;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar td.calcell.selected a {
|
||||
background-color:#b3d4ff;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
/* HOVER DATE */
|
||||
.yui-skin-sam .yui-calendar td.calcell.calcellhover {
|
||||
background-color:#426fd9;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar td.calcell.calcellhover a {
|
||||
background-color:#426fd9;
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
/* DEFAULT OOB DATES */
|
||||
.yui-skin-sam .yui-calendar td.calcell.previous {
|
||||
color:#e0e0e0;
|
||||
}
|
||||
|
||||
/* CUSTOM RENDERERS */
|
||||
.yui-skin-sam .yui-calendar td.calcell.restricted { text-decoration:line-through; }
|
||||
.yui-skin-sam .yui-calendar td.calcell.highlight1 { background-color:#ccff99; }
|
||||
.yui-skin-sam .yui-calendar td.calcell.highlight2 { background-color:#99ccff; }
|
||||
.yui-skin-sam .yui-calendar td.calcell.highlight3 { background-color:#ffcccc; }
|
||||
.yui-skin-sam .yui-calendar td.calcell.highlight4 { background-color:#ccff99; }
|
||||
|
||||
/* CalendarNavigator */
|
||||
|
||||
/* MONTH/YEAR LABEL */
|
||||
.yui-skin-sam .yui-calendar a.calnav {
|
||||
border: 1px solid #f2f2f2;
|
||||
padding:0 4px;
|
||||
text-decoration:none;
|
||||
color:#000;
|
||||
zoom:1;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calendar a.calnav:hover {
|
||||
background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
|
||||
border-color:#A0A0A0;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* NAVIGATOR MASK */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask {
|
||||
background-color:#000;
|
||||
opacity:0.25;
|
||||
*filter:alpha(opacity=25); /* IE */
|
||||
}
|
||||
|
||||
/* NAVIGATOR BOUNDING BOX */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav {
|
||||
font-family:arial,helvetica,clean,sans-serif;
|
||||
font-size:93%;
|
||||
border:1px solid #808080;
|
||||
left:50%;
|
||||
margin-left:-7em;
|
||||
width:14em;
|
||||
padding:0;
|
||||
top:2.5em;
|
||||
background-color:#f2f2f2;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav {
|
||||
top:4.5em;
|
||||
}
|
||||
|
||||
/* NAVIGATOR BOUNDING BOX */
|
||||
.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav {
|
||||
width:16em;
|
||||
margin-left:-8em;
|
||||
}
|
||||
|
||||
/* NAVIGATOR YEAR/MONTH/BUTTON/ERROR BOUNDING BLOCKS */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-b {
|
||||
padding:5px 10px 5px 10px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-b {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-e {
|
||||
margin-top:5px;
|
||||
padding:5px;
|
||||
background-color:#EDF5FF;
|
||||
border-top:1px solid black;
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* NAVIGATOR LABELS */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav label {
|
||||
display:block;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
/* NAVIGATOR MONTH CONTROL */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc {
|
||||
width:100%;
|
||||
_width:auto; /* IE6, IE7 Quirks don't handle 100% well */
|
||||
}
|
||||
|
||||
/* NAVIGATOR MONTH CONTROL, VALIDATION ERROR */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid {
|
||||
background-color:#FFEE69;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
/* NAVIGATOR YEAR CONTROL */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc {
|
||||
width:4em;
|
||||
}
|
||||
|
||||
/* NAVIGATOR BUTTONS */
|
||||
|
||||
/* BUTTON WRAPPER */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn {
|
||||
border:1px solid #808080;
|
||||
background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
|
||||
background-color:#ccc;
|
||||
margin: auto .15em;
|
||||
}
|
||||
|
||||
/* BUTTON (based on button-skin.css) */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button {
|
||||
padding:0 8px;
|
||||
font-size:93%;
|
||||
line-height: 2; /* ~24px */
|
||||
*line-height: 1.7; /* For IE */
|
||||
min-height: 2em; /* For Gecko */
|
||||
*min-height: auto; /* For IE */
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* DEFAULT BUTTONS */
|
||||
/* NOTE: IE6 will only pickup the yui-default specifier from the multiple class specifier */
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default {
|
||||
border:1px solid #304369;
|
||||
background-color: #426fd9;
|
||||
background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button {
|
||||
color:#fff;
|
||||
}
|
7168
webdir/javascript/yui/calendar/calendar-debug.js
vendored
Normal file
18
webdir/javascript/yui/calendar/calendar-min.js
vendored
Normal file
7138
webdir/javascript/yui/calendar/calendar.js
vendored
Normal file
5
webdir/javascript/yui/carousel/README
Normal file
@ -0,0 +1,5 @@
|
||||
Carousel Release Notes
|
||||
|
||||
*** version 2.6.0 ***
|
||||
|
||||
* Initial release.
|
BIN
webdir/javascript/yui/carousel/assets/ajax-loader.gif
Normal file
After Width: | Height: | Size: 3.1 KiB |
82
webdir/javascript/yui/carousel/assets/carousel-core.css
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-carousel {
|
||||
visibility: hidden;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.yui-carousel.yui-carousel-visible {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.yui-carousel-content {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.yui-carousel-element {
|
||||
margin: 5px 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
width: 32000px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.yui-carousel-vertical .yui-carousel-element {
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.yui-carousel-element li {
|
||||
border: 1px solid #ccc;
|
||||
float: left;
|
||||
list-style: none;
|
||||
margin: 1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
/* IE 6 & 7 fix - prevent DOM scroll for focussed elements. */
|
||||
*float: none;
|
||||
*display: inline-block;
|
||||
*zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
|
||||
.yui-carousel .yui-carousel-item-selected {
|
||||
border: 1px dashed #000;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
.yui-carousel-vertical {
|
||||
height: 32000px;
|
||||
margin: 0 5px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.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 {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.yui-carousel-button-focus {
|
||||
outline: 1px dotted #000;
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-skin-sam .yui-carousel,
|
||||
.yui-skin-sam .yui-carousel-vertical {
|
||||
border: 1px solid #808080;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav {
|
||||
background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
|
||||
padding: 3px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-button {
|
||||
background: url(../../../../assets/skins/sam/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 {
|
||||
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: 0px -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: 0px -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;
|
||||
margin: 0;
|
||||
margin-left: -220px;
|
||||
margin-right: 100px;
|
||||
*margin-left: -160px;
|
||||
*margin-right: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav select {
|
||||
position: relative;
|
||||
*right: 50px;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
.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 {
|
||||
float: left;
|
||||
height: 19px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li a {
|
||||
background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;
|
||||
display: block;
|
||||
height: 9px;
|
||||
margin: 10px 0 0 5px;
|
||||
overflow: hidden;
|
||||
width: 9px;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li a em {
|
||||
left: -10000px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected a {
|
||||
background-position: 0 -700px;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
*/
|
||||
.yui-carousel{visibility:hidden;overflow:hidden;position:relative;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;}.yui-carousel-element{margin:5px 0;overflow:hidden;padding:0;position:relative;width:32000px;z-index:1;}.yui-carousel-vertical .yui-carousel-element{margin:0 5px;}.yui-carousel-element li{border:1px solid #ccc;float:left;list-style:none;margin:1px;overflow:hidden;padding:0;text-align:center;*float:none;*display:inline-block;*zoom:1;*display:inline;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-carousel-vertical{height:32000px;margin:0 5px;width:auto;}.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{clear:both;content:"";display:block;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(../../../../assets/skins/sam/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{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:0px -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:0px -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;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.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{float:left;height:19px;list-style:none;}.yui-skin-sam .yui-carousel-nav ul:after{clear:both;content:"";display:block;}.yui-skin-sam .yui-carousel-nav ul li a{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;display:block;height:9px;margin:10px 0 0 5px;overflow:hidden;width:9px;}.yui-skin-sam .yui-carousel-nav ul li a em{left:-10000px;position:absolute;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected a{background-position:0 -700px;}
|