rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
"chrome,modal", | "chrome,titlebar,modal", | function CreateNewSubfolder(chromeWindowURL,windowTitle, preselectedMsgFolder){ var preselectedURI; if(preselectedMsgFolder) { var preselectedFolderResource = preselectedMsgFolder.QueryInterface(Components.interfaces.nsIRDFResource); if(preselectedFolderResource) preselectedURI = preselectedFolderResource.Value; dump("preselectedURI = " + preselectedURI + "\n"); } var dialog = window.openDialog( chromeWindowURL, "", "chrome,modal", {preselectedURI:preselectedURI, title:windowTitle, okCallback:NewFolder});} |
for(i = 0; i < permissionList.length; i+=2) | for(i = 1; i < permissionList.length; i+=2) | function CreatePermissionList(){ count = 0; for(i = 0; i < permissionList.length; i+=2) { permissions[count] = new Permission(); permissions[count].number = permissionList[i]; permStr = permissionList[i+1]; permissions[count].type = permStr.substring(0,1); permissions[count].domain = permStr.substring(1,permStr.length); count++; } } |
count = 0; for(i = 1; i < permissionList.length; i+=2) | var count = 0; for(var i = 1; i < permissionList.length; i+=2) | function CreatePermissionList(){ count = 0; for(i = 1; i < permissionList.length; i+=2) { permissions[count] = new Permission(); permissions[count].number = permissionList[i]; permStr = permissionList[i+1]; permissions[count].type = permStr.substring(0,1); permissions[count].domain = permStr.substring(1,permStr.length); count++; } } |
permStr = permissionList[i+1]; | var permStr = permissionList[i+1]; | function CreatePermissionList(){ count = 0; for(i = 1; i < permissionList.length; i+=2) { permissions[count] = new Permission(); permissions[count].number = permissionList[i]; permStr = permissionList[i+1]; permissions[count].type = permStr.substring(0,1); permissions[count].domain = permStr.substring(1,permStr.length); count++; } } |
case "html:td": client._popupContext.user = target.getAttribute("msg-user"); | case "html:td": var user = target.getAttribute("msg-user"); if (user) { if (user.indexOf("ME!") != -1) client._popupContext.user = "ME!"; else client._popupContext.user = user; } | function createPopupContext(event, target){ var targetType; client._popupContext = new Object(); client._popupContext.menu = event.originalTarget; if (!target) return "unknown"; switch (target.tagName.toLowerCase()) { case "html:a": var href = target.getAttribute("href"); client._popupContext.url = href; if (href.indexOf("irc://") == 0) { var obj = parseIRCUrl(href); if (obj) { if (obj.target) if (obj.isnick) { targetType="nick-ircurl"; client._popupContext.user = obj.target; } else targetType="channel-ircurl"; else targetType="untargeted-ircurl"; } else targetType="weburl"; } else targetType="weburl"; break; case "html:td": client._popupContext.user = target.getAttribute("msg-user"); targetType = target.getAttribute("msg-type"); break; } client._popupContext.targetType = targetType; client._popupContext.targetClass = target.getAttribute("class"); return targetType;} |
function CreatePrintCardUrl(escapedDirName, card) | function CreatePrintCardUrl(card) | function CreatePrintCardUrl(escapedDirName, card){ var url = ""; var email = card.primaryEmail; if (email) { url = "addbook:printone?email=" + email + "&folder=" + escapedDirName; } return url;} |
var url = ""; var email = card.primaryEmail; if (email) { url = "addbook:printone?email=" + email + "&folder=" + escapedDirName; } | var url = "data:text/xml;base64," + card.convertToBase64EncodedXML(); | function CreatePrintCardUrl(escapedDirName, card){ var url = ""; var email = card.primaryEmail; if (email) { url = "addbook:printone?email=" + email + "&folder=" + escapedDirName; } return url;} |
this.location.replace("resource:/res/profile/cpwManager.xul"); | this.location.href = "resource:/res/profile/cpwManager.xul"; | function CreateProfile(){ // Need to call CreateNewProfile xuls // var win = window.openDialog('resource://res/profile/cpwManager.xul', 'Creator', 'chrome'); dump("\ngot here\n"); //this.location.replace(this.location); this.location.replace("resource:/res/profile/cpwManager.xul"); //this.location = "resource:/res/profile/cpwManager.xul";} |
if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort) gDBView.viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay); CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, gDBView.viewFlags, gDBView.sortType, gDBView.sortOrder); | var viewFlags = gDBView.viewFlags; if (viewFlags & nsMsgViewFlagsType.kGroupBySort) viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay); CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, viewFlags, gDBView.sortType, gDBView.sortOrder); | function createQuickSearchView(){ //if not already in quick search view if (gDBView.viewType != nsMsgViewType.eShowQuickSearchResults) { var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView); //clear selection if (treeView && treeView.selection) treeView.selection.clearSelection(); gPreQuickSearchView = gDBView; if (gDBView.viewType == nsMsgViewType.eShowVirtualFolderResults) { // remove the view as a listener on the search results var saveViewSearchListener = gDBView.QueryInterface(Components.interfaces.nsIMsgSearchNotify); gSearchSession.unregisterListener(saveViewSearchListener); } // if grouped by sort, turn that off, as well as threaded, since we don't // group quick search results yet. if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort) gDBView.viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay); CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, gDBView.viewFlags, gDBView.sortType, gDBView.sortOrder); }} |
var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); | var searchTermObj = new searchTermContainer; gSearchTerms[gSearchTerms.length] = searchTermObj; | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; | searchTermObj.searchattribute = searchAttr; searchTermObj.searchoperator = searchOp; searchTermObj.searchvalue = searchVal; | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
searchAttr = searchOp = searchVal = undefined; | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
|
searchTermElement.booleanNodes = stringNodes; | searchTermObj.booleanNodes = stringNodes; | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
searchTermElement.searchScope = scope; | dump("createSearchRow: Setting searchScope = " + scope + "\n"); searchTermObj.searchScope = scope; | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
if (searchTerm) searchTermElement.searchTerm = searchTerm; | if (searchTerm) { dump("\nHave a searchterm (" + searchTerm.attrib + "/" + searchTerm.op + "/" + searchTerm.value + ")\n"); searchTermObj.searchTerm = searchTerm; } | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
searchTermElement.booleanAnd = getBooleanAnd(); | searchTermObj.booleanAnd = getBooleanAnd(); | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; // should this be done with XBL or just straight JS? // probably straight JS but I don't know how that's done. var searchTermElement = document.createElement("searchterm"); searchTermElement.id = "searchTerm" + index; gSearchTermContainer.appendChild(searchTermElement); searchTermElement = document.getElementById(searchTermElement.id); searchTermElement.searchattribute = searchAttr; searchTermElement.searchoperator = searchOp; searchTermElement.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // treecell, (note the i+=2) which will be a text label, // and set the searchTermElement's // booleanNodes to that var stringNodes = new Array; var treecells = searchrow.firstChild.childNodes; var j=0; for (var i=0; i<treecells.length; i+=2) { stringNodes[j++] = treecells[i]; } searchTermElement.booleanNodes = stringNodes; gSearchRowContainer.appendChild(searchrow); searchTermElement.searchScope = scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (searchTerm) searchTermElement.searchTerm = searchTerm; // here, we don't have a searchTerm, so it's probably a new element - // we'll initialize the .booleanAnd from the existing setting in // the UI else searchTermElement.booleanAnd = getBooleanAnd();} |
var rowdata = new Array(null, searchAttr, | var rowdata = new Array(enclosingBox, searchAttr, | function createSearchRow(index, scope, searchTerm){ var searchAttr = document.createElement("searchattribute"); var searchOp = document.createElement("searchoperator"); var searchVal = document.createElement("searchvalue"); // now set up ids: searchAttr.id = "searchAttr" + index; searchOp.id = "searchOp" + index; searchVal.id = "searchVal" + index; searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id); var rowdata = new Array(null, searchAttr, null, searchOp, null, searchVal, null); var searchrow = constructRow(rowdata); searchrow.id = "searchRow" + index; var searchTermObj = new searchTermContainer; gSearchTerms[gSearchTerms.length] = {obj:searchTermObj, scope:scope, searchTerm:searchTerm, initialized:false}; searchTermObj.searchattribute = searchAttr; searchTermObj.searchoperator = searchOp; searchTermObj.searchvalue = searchVal; // now invalidate the newly created items because they've been inserted // into the document, and XBL bindings will be inserted in their place //searchAttr = searchOp = searchVal = undefined; // and/or string handling: // this is scary - basically we want to take every other // listcell, (note the i+=2) which will be a text label, // and set the searchTermObj's // booleanNodes to that var stringNodes = new Array; var listcells = searchrow.childNodes; var j=0; for (var i=0; i<listcells.length; i+=2) { stringNodes[j++] = listcells[i]; } searchTermObj.booleanNodes = stringNodes; gSearchTermList.appendChild(searchrow);} |
return nsJSComponentManager.createInstance("component: | return nsJSComponentManager.createInstance("@mozilla.org/supports-array;1", | createSupportsArray: function () { return nsJSComponentManager.createInstance("component://netscape/supports-array", "nsISupportsArray"); }, |
return nsJSComponentManager.createInstance("component: | return nsJSComponentManager.createInstance("@mozilla.org/supports-string;1", | createSupportsString: function () { return nsJSComponentManager.createInstance("component://netscape/supports-string", "nsISupportsString"); } |
return nsJSComponentManager.createInstance("component: | return nsJSComponentManager.createInstance("@mozilla.org/supports-wstring;1", | createSupportsWString: function () { return nsJSComponentManager.createInstance("component://netscape/supports-wstring", "nsISupportsWString"); }, |
return nsJSComponentManager.createInstance("component: | return nsJSComponentManager.createInstance("@mozilla.org/widget/transferable;1", | createTransferable: function () { return nsJSComponentManager.createInstance("component://netscape/widget/transferable", "nsITransferable"); }, |
const SUPPORTSID = 'component: | const SUPPORTSID = '@mozilla.org/supports-;1'; | createType: function(type) { const SUPPORTSID = 'component://netscape/supports-'; switch(type) { case this.INT: return createInstance(SUPPORTSID + 'PRInt32', 'nsISupportsPRInt32'); case this.BOOLEAN: return createInstance(SUPPORTSID + 'PRBool', 'nsISupportsPRBool'); case this.STRING: return createInstance(SUPPORTSID + 'string', 'nsISupportsString'); case this.DOUBLE: return createInstance(SUPPORTSID + 'double', 'nsISupportsDouble'); case this.DATETIME: return createInstance(SUPPORTSID + 'PRTime', 'nsISupportsPRTime'); case this.ARRAY: return createInstance(SUPPORTSID + 'array', 'nsISupportsArray'); case this.STRUCT: return createInstance('mozilla.dictionary.1', 'nsIDictionary'); default: throw Components.Exception('Unsupported type'); } }, |
return createInstance('mozilla.dictionary.1', 'nsIDictionary'); | return createInstance('@mozilla.org/dictionary;1', '@mozilla.org/js/xpc/ID;1ictionary'); | createType: function(type) { const SUPPORTSID = 'component://netscape/supports-'; switch(type) { case this.INT: return createInstance(SUPPORTSID + 'PRInt32', 'nsISupportsPRInt32'); case this.BOOLEAN: return createInstance(SUPPORTSID + 'PRBool', 'nsISupportsPRBool'); case this.STRING: return createInstance(SUPPORTSID + 'string', 'nsISupportsString'); case this.DOUBLE: return createInstance(SUPPORTSID + 'double', 'nsISupportsDouble'); case this.DATETIME: return createInstance(SUPPORTSID + 'PRTime', 'nsISupportsPRTime'); case this.ARRAY: return createInstance(SUPPORTSID + 'array', 'nsISupportsArray'); case this.STRUCT: return createInstance('mozilla.dictionary.1', 'nsIDictionary'); default: throw Components.Exception('Unsupported type'); } }, |
function createUBHistoryMenu( aEvent ) | function createUBHistoryMenu( aParent ) | function createUBHistoryMenu( aEvent ) { var ubHistory = appCore.urlbarHistory; // dump("In createUbHistoryMenu\n"); if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http://home.netscape.com/NC-rdf#child"), true); //dump("localstore found\n"); var i= MAX_HISTORY_MENU_ITEMS; // Delete any old menu items deleteHistoryItems(aEvent); while (entries.hasMoreElements() && (i-- > 0)) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var url = entry.Value; //dump("CREATEUBHISTORYMENU menuitem = " + url + "\n"); createMenuItem(aEvent.target, i, url); } } } } |
deleteHistoryItems(aEvent); | deleteHistoryItems(aParent); | function createUBHistoryMenu( aEvent ) { var ubHistory = appCore.urlbarHistory; // dump("In createUbHistoryMenu\n"); if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http://home.netscape.com/NC-rdf#child"), true); //dump("localstore found\n"); var i= MAX_HISTORY_MENU_ITEMS; // Delete any old menu items deleteHistoryItems(aEvent); while (entries.hasMoreElements() && (i-- > 0)) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var url = entry.Value; //dump("CREATEUBHISTORYMENU menuitem = " + url + "\n"); createMenuItem(aEvent.target, i, url); } } } } |
createMenuItem(aEvent.target, i, url); | createMenuItem(aParent, i, url); | function createUBHistoryMenu( aEvent ) { var ubHistory = appCore.urlbarHistory; // dump("In createUbHistoryMenu\n"); if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http://home.netscape.com/NC-rdf#child"), true); //dump("localstore found\n"); var i= MAX_HISTORY_MENU_ITEMS; // Delete any old menu items deleteHistoryItems(aEvent); while (entries.hasMoreElements() && (i-- > 0)) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var url = entry.Value; //dump("CREATEUBHISTORYMENU menuitem = " + url + "\n"); createMenuItem(aEvent.target, i, url); } } } } |
var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http: true); | var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history")).GetElements(); | function createUBHistoryMenu( aParent ) { var ubHistory = appCore.urlbarHistory; if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http://home.netscape.com/NC-rdf#child"), true); var i= MAX_HISTORY_MENU_ITEMS; // Delete any old menu items only if there are legitimate // urls to display, otherwise we want to display the // '(Nothing Available)' item. if (entries.hasMoreElements()) deleteHistoryItems(aParent); while (entries.hasMoreElements() && (i-- > 0)) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var url = entry.Value; createMenuItem(aParent, i, url); } } } } |
if (entries.hasMoreElements()) deleteHistoryItems(aParent); | deleteHistoryItems(aParent); if (!entries.hasMoreElements()) { var na = bundle.GetStringFromName( "nothingAvailable" ); createMenuItem(aParent, "nothing_available", na); } | function createUBHistoryMenu( aParent ) { var ubHistory = appCore.urlbarHistory; if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http://home.netscape.com/NC-rdf#child"), true); var i= MAX_HISTORY_MENU_ITEMS; // Delete any old menu items only if there are legitimate // urls to display, otherwise we want to display the // '(Nothing Available)' item. if (entries.hasMoreElements()) deleteHistoryItems(aParent); while (entries.hasMoreElements() && (i-- > 0)) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var url = entry.Value; createMenuItem(aParent, i, url); } } } } |
if (gCurrentMessageUri) { SetUpToolbarButtons(gCurrentMessageUri); } else if (gCurrentFolderUri) { SetUpToolbarButtons(gCurrentFolderUri); } | var uri; if (gCurrentMessageUri) uri = gCurrentMessageUri; else if (gCurrentFolderUri) uri = gCurrentFolderUri; else uri = null; SetUpToolbarButtons(uri); var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.notifyObservers(window, "mail:setupToolbarItems", uri); | function CreateView(originalView){ var msgFolder = GetLoadedMsgFolder(); // extract the sort type, the sort order, var sortType; var sortOrder; var viewFlags; var viewType; if (originalView) { viewType = originalView.viewType; viewFlags = originalView.viewFlags; sortType = originalView.sortType; sortOrder = originalView.sortOrder; } else if (msgFolder) { var msgDatabase = msgFolder.getMsgDatabase(msgWindow); if (msgDatabase) { var dbFolderInfo = msgDatabase.dBFolderInfo; sortType = dbFolderInfo.sortType; sortOrder = dbFolderInfo.sortOrder; viewFlags = dbFolderInfo.viewFlags; viewType = dbFolderInfo.viewType; msgDatabase = null; dbFolderInfo = null; } } // create a db view CreateBareDBView(originalView, msgFolder, viewType, viewFlags, sortType, sortOrder); if (gCurrentMessageUri) { SetUpToolbarButtons(gCurrentMessageUri); } else if (gCurrentFolderUri) { SetUpToolbarButtons(gCurrentFolderUri); }} |
var promptText = gMessengerBundle.formatStringFromName("advanceNextPrompt", [ nextFolder.name ], 1); | var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); | function CrossFolderNavigation (type, supportsFolderPane ){ if (type != nsMsgNavigationType.nextUnreadMessage) { // only do cross folder navigation for "next unread message" return nsnull; } var nextMode = pref.GetIntPref("mailnews.nav_crosses_folders"); // 0: "next" goes to the next folder, without prompting // 1: "next" goes to the next folder, and prompts (the default) // 2: "next" does nothing when there are no unread messages // not crossing folders, don't find next if (nextMode == 2) return; var originalFolderURI = gDBView.msgFolder.URI; var nextFolderURI = null; var done = false; var startAtURI = originalFolderURI; var i = 0; var allServers = accountManager.allServers; var numServers = allServers.Count(); // XXX fix this // this will search the originalFolderURI server twice while (!done) { dump("start looking at " + startAtURI + "\n"); nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { if (i == numServers) { // no more servers, we're done done = true; } else { // get the uri for the next server and start there startAtURI = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer).serverURI; i++; } } else { // got a folder with unread messages, start with it done = true; } } if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: // do this unconditionally gNextMessageAfterLoad = true; if (supportsFolderPane) SelectFolder(nextFolderURI); dump("XXX we need code to select the correct type of message, after we load the folder\n"); break; case 1: var promptText = gMessengerBundle.formatStringFromName("advanceNextPrompt", [ nextFolder.name ], 1); if (commonDialogs.Confirm(window, promptText, promptText)) { gNextMessageAfterLoad = true; if (supportsFolderPane) SelectFolder(nextFolderURI); dump("XXX we need code to select the correct type of message, after we load the folder\n"); } break; default: dump("huh?"); break; } } return nextFolderURI;} |
if (commonDialogs.Confirm(window, promptText, promptText)) { | if (promptService.Confirm(window, promptText, promptText)) { | function CrossFolderNavigation(type, supportsFolderPane ){ if (type != nsMsgNavigationType.nextUnreadMessage) { // only do cross folder navigation for "next unread message" return null; } var nextMode = pref.GetIntPref("mailnews.nav_crosses_folders"); // 0: "next" goes to the next folder, without prompting // 1: "next" goes to the next folder, and prompts (the default) // 2: "next" does nothing when there are no unread messages // not crossing folders, don't find next if (nextMode == 2) return null; var originalFolderURI = gDBView.msgFolder.URI; var nextFolderURI = null; var done = false; var startAtURI = originalFolderURI; var i = 0; var allServers = accountManager.allServers; var numServers = allServers.Count(); // XXX fix this // this will search the originalFolderURI server twice while (!done) { nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { if (i == numServers) { // no more servers, we're done done = true; } else { // get the uri for the next server and start there startAtURI = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer).serverURI; i++; } } else { // got a folder with unread messages, start with it done = true; } } if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: // do this unconditionally gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); break; case 1: default: var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); if (commonDialogs.Confirm(window, promptText, promptText)) { gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); } break; } } return nextFolderURI;} |
var i = 0; var allServers = accountManager.allServers; var numServers = allServers.Count(); | var i,j; var rootFolders; | function CrossFolderNavigation(type, supportsFolderPane ){ if (type != nsMsgNavigationType.nextUnreadMessage) { // only do cross folder navigation for "next unread message" return null; } var nextMode = pref.GetIntPref("mailnews.nav_crosses_folders"); // 0: "next" goes to the next folder, without prompting // 1: "next" goes to the next folder, and prompts (the default) // 2: "next" does nothing when there are no unread messages // not crossing folders, don't find next if (nextMode == 2) return null; var originalFolderURI = gDBView.msgFolder.URI; var nextFolderURI = null; var done = false; var startAtURI = originalFolderURI; var i = 0; var allServers = accountManager.allServers; var numServers = allServers.Count(); // XXX fix this // this will search the originalFolderURI server twice while (!done) { nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { if (i == numServers) { // no more servers, we're done done = true; } else { // get the uri for the next server and start there startAtURI = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer).serverURI; i++; } } else { // got a folder with unread messages, start with it done = true; } } if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: // do this unconditionally gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); break; case 1: default: var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); if (promptService.confirm(window, promptText, promptText)) { gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); } break; } } return nextFolderURI;} |
while (!done) { nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { if (i == numServers) { done = true; } else { startAtURI = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer).serverURI; i++; } } else { done = true; | nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { rootFolders = GetRootFoldersInFolderPaneOrder(); for (i=0;i<rootFolders.length;i++) { if (rootFolders[i].URI == gDBView.msgFolder.server.serverURI) break; } for (j=i+1; j<rootFolders.length; j++) { nextFolderURI = FindNextFolder(rootFolders[j].URI); if (nextFolderURI) break; } if (!nextFolderURI) { for (j=0; j<rootFolders.length; j++) { nextFolderURI = FindNextFolder(rootFolders[j].URI); if (nextFolderURI) break; | function CrossFolderNavigation(type, supportsFolderPane ){ if (type != nsMsgNavigationType.nextUnreadMessage) { // only do cross folder navigation for "next unread message" return null; } var nextMode = pref.GetIntPref("mailnews.nav_crosses_folders"); // 0: "next" goes to the next folder, without prompting // 1: "next" goes to the next folder, and prompts (the default) // 2: "next" does nothing when there are no unread messages // not crossing folders, don't find next if (nextMode == 2) return null; var originalFolderURI = gDBView.msgFolder.URI; var nextFolderURI = null; var done = false; var startAtURI = originalFolderURI; var i = 0; var allServers = accountManager.allServers; var numServers = allServers.Count(); // XXX fix this // this will search the originalFolderURI server twice while (!done) { nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { if (i == numServers) { // no more servers, we're done done = true; } else { // get the uri for the next server and start there startAtURI = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer).serverURI; i++; } } else { // got a folder with unread messages, start with it done = true; } } if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: // do this unconditionally gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); break; case 1: default: var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); if (promptService.confirm(window, promptText, promptText)) { gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); } break; } } return nextFolderURI;} |
if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); break; case 1: default: var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); if (promptService.confirm(window, promptText, promptText)) { gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); } break; | if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); break; case 1: default: var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); if (promptService.confirm(window, promptText, promptText)) { gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); | function CrossFolderNavigation(type, supportsFolderPane ){ if (type != nsMsgNavigationType.nextUnreadMessage) { // only do cross folder navigation for "next unread message" return null; } var nextMode = pref.GetIntPref("mailnews.nav_crosses_folders"); // 0: "next" goes to the next folder, without prompting // 1: "next" goes to the next folder, and prompts (the default) // 2: "next" does nothing when there are no unread messages // not crossing folders, don't find next if (nextMode == 2) return null; var originalFolderURI = gDBView.msgFolder.URI; var nextFolderURI = null; var done = false; var startAtURI = originalFolderURI; var i = 0; var allServers = accountManager.allServers; var numServers = allServers.Count(); // XXX fix this // this will search the originalFolderURI server twice while (!done) { nextFolderURI = FindNextFolder(startAtURI); if (!nextFolderURI) { if (i == numServers) { // no more servers, we're done done = true; } else { // get the uri for the next server and start there startAtURI = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer).serverURI; i++; } } else { // got a folder with unread messages, start with it done = true; } } if (nextFolderURI && (originalFolderURI != nextFolderURI)) { var nextFolderResource = RDF.GetResource(nextFolderURI); var nextFolder = nextFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder); switch (nextMode) { case 0: // do this unconditionally gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); break; case 1: default: var promptText = gMessengerBundle.getFormattedString("advanceNextPrompt", [ nextFolder.name ], 1); if (promptService.confirm(window, promptText, promptText)) { gNextMessageAfterLoad = type; if (supportsFolderPane) SelectFolder(nextFolderURI); } break; } } return nextFolderURI;} |
return this.attr( key, value, "css" ); | return this.attr( key, value, "curCSS" ); | css: function( key, value ) { return this.attr( key, value, "css" ); }, |
line.push(item.isAllDay ? localeEn.valueTrue : localeEn.valueFalse); | line.push(item.startDate.isDate ? localeEn.valueTrue : localeEn.valueFalse); | function csv_exportToStream(aStream, aCount, aItems) { var str = ""; var headers = []; // Not using a loop here, since we need to be sure the order here matches // with the orders the field data is added later on headers.push(localeEn['headTitle']); headers.push(localeEn['headStartDate']); headers.push(localeEn['headStartTime']); headers.push(localeEn['headEndDate']); headers.push(localeEn['headEndTime']); headers.push(localeEn['headAllDayEvent']); headers.push(localeEn['headAlarm']); headers.push(localeEn['headAlarmDate']); headers.push(localeEn['headAlarmTime']); headers.push(localeEn['headCategories']); headers.push(localeEn['headDescription']); headers.push(localeEn['headLocation']); headers.push(localeEn['headPrivate']); headers.push(localeEn['headAlarmTime']); str = headers.map(function(v) {return '"'+v+'"';}).join(',')+"\n" aStream.write(str, str.length); for each (item in aItems) { var line = []; line.push(item.title); line.push(dateString(item.startDate)); line.push(timeString(item.startDate)); line.push(dateString(item.endDate)); line.push(timeString(item.endDate)); line.push(item.isAllDay ? localeEn.valueTrue : localeEn.valueFalse); line.push(""); //XXX add alarm support line.push(""); //XXX add alarm support line.push(""); //XXX add alarm support line.push(item.getProperty("CATEGORIES")); line.push(item.getProperty("LOCATION")); line.push((item.privacy=="PRIVATE") ? localeEn.valueTrue : localeEn.valueFalse); line = line.map(function(v) { v = String(v).replace(/"/,'""'); return '"'+v+'"'; }) str = line.join(',')+"\n"; aStream.write(str, str.length); } return;}; |
return; | return false; | function ctrlNumberTabSelection(event){ if (event.altKey && event.keyCode == KeyEvent.DOM_VK_RETURN) { // Don't let winxp beep on ALT+ENTER, since the URL bar uses it. event.preventDefault(); return true; } if (!event.ctrlKey) return; var index = event.charCode - 49; if (index == -1) index = 9; if (index < 0 || index > 9) return false; if (index >= gBrowser.mTabContainer.childNodes.length) return false; var oldTab = gBrowser.selectedTab; var newTab = gBrowser.mTabContainer.childNodes[index]; if (newTab != oldTab) { oldTab.selected = false; gBrowser.selectedTab = newTab; } event.preventDefault(); event.preventBubble(); event.preventCapture(); event.stopPropagation();} |
if (index >= gBrowser.mTabContainer.childNodes.length) | if (index >= gBrowser.tabContainer.childNodes.length) | function ctrlNumberTabSelection(event){ if (event.altKey && event.keyCode == KeyEvent.DOM_VK_RETURN) { // Don't let winxp beep on ALT+ENTER, since the URL bar uses it. event.preventDefault(); return; } #ifdef XP_MACOSX if (!event.metaKey)#else if (!event.ctrlKey)#endif return; var index = event.charCode - 49; if (index < 0 || index > 8) return; if (index >= gBrowser.mTabContainer.childNodes.length) return; var oldTab = gBrowser.selectedTab; var newTab = gBrowser.mTabContainer.childNodes[index]; if (newTab != oldTab) { oldTab.selected = false; gBrowser.selectedTab = newTab; } event.preventDefault(); event.preventBubble(); event.preventCapture(); event.stopPropagation();} |
var newTab = gBrowser.mTabContainer.childNodes[index]; | var newTab = gBrowser.tabContainer.childNodes[index]; | function ctrlNumberTabSelection(event){ if (event.altKey && event.keyCode == KeyEvent.DOM_VK_RETURN) { // Don't let winxp beep on ALT+ENTER, since the URL bar uses it. event.preventDefault(); return; } #ifdef XP_MACOSX if (!event.metaKey)#else if (!event.ctrlKey)#endif return; var index = event.charCode - 49; if (index < 0 || index > 8) return; if (index >= gBrowser.mTabContainer.childNodes.length) return; var oldTab = gBrowser.selectedTab; var newTab = gBrowser.mTabContainer.childNodes[index]; if (newTab != oldTab) { oldTab.selected = false; gBrowser.selectedTab = newTab; } event.preventDefault(); event.preventBubble(); event.preventCapture(); event.stopPropagation();} |
return parseFloat( jQuery.curCSS(z.el, prop) ) || z.max(); | var r = parseFloat( jQuery.curCSS(z.el, prop) ); return r && r > -10000 ? r : z.max(); | z.cur = function(){ return parseFloat( jQuery.curCSS(z.el, prop) ) || z.max(); }; |
z.cur = function(){return $.css(z.el,ty);}; | z.cur = function(){ return parseFloat( $.css(z.el,prop) ); }; | z.cur = function(){return $.css(z.el,ty);}; |
z.cur = function(){return parseInt($.getCSS(z.el,ty),10);}; | z.cur = function(){return $.css(z.el,ty);}; | z.cur = function(){return parseInt($.getCSS(z.el,ty),10);}; |
return parseFloat( jQuery.css(z.el,prop) ); | return parseFloat( jQuery.curCSS(z.el,prop) ) || z.max(); | z.cur = function(){ return parseFloat( jQuery.css(z.el,prop) ); }; |
if (prop == 'opacity' && jQuery.browser.msie) return jQuery.attr(elem.style, 'opacity'); | curCSS: function(elem, prop, force) { var ret; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); } return ret; }, |
|
} else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; | curCSS: function(elem, prop, force) { var ret; if (prop == 'opacity' && jQuery.browser.msie) return jQuery.attr(elem.style, 'opacity'); if (prop == "float" || prop == "cssFloat") prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { if (prop == "cssFloat" || prop == "styleFloat") prop = "float"; prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { var c = document.defaultView.getComputedStyle(this, ''); ret = c && c.getPropertyValue(prop) || ''; }); } return ret; }, |
|
} else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; | curCSS: function(elem, prop, force) { var ret; if (prop == 'opacity' && jQuery.browser.msie) return jQuery.attr(elem.style, 'opacity'); if (prop == "float" || prop == "cssFloat") prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { if (prop == "cssFloat" || prop == "styleFloat") prop = "float"; prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { var c = document.defaultView.getComputedStyle(this, ''); ret = c && c.getPropertyValue(prop) || ''; }); } return ret; }, |
|
if (prop == "cssFloat" || prop == "styleFloat") prop = "float"; | curCSS: function(elem, prop, force) { var ret; if (prop == 'opacity' && jQuery.browser.msie) return jQuery.attr(elem.style, 'opacity'); if (prop == "float" || prop == "cssFloat") prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); } return ret; }, |
|
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p]; | var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p] || e.currentStyle[np]; | curCSS: function(e,p,force) { var r; if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p]; } else if (document.defaultView && document.defaultView.getComputedStyle) { p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); r = s ? s.getPropertyValue(p) : null; } return r; }, |
curCSS: function(e,p,force) { var r; | curCSS: function(elem, prop, force) { var ret; | curCSS: function(e,p,force) { var r; if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p] || e.currentStyle[np]; } else if (document.defaultView && document.defaultView.getComputedStyle) { p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); r = s ? s.getPropertyValue(p) : null; } return r; }, |
if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p] || e.currentStyle[np]; | if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); ret = elem.currentStyle[prop] || elem.currentStyle[np]; | curCSS: function(e,p,force) { var r; if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p] || e.currentStyle[np]; } else if (document.defaultView && document.defaultView.getComputedStyle) { p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); r = s ? s.getPropertyValue(p) : null; } return r; }, |
p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); r = s ? s.getPropertyValue(p) : null; | prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); | curCSS: function(e,p,force) { var r; if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p] || e.currentStyle[np]; } else if (document.defaultView && document.defaultView.getComputedStyle) { p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); r = s ? s.getPropertyValue(p) : null; } return r; }, |
return r; | return ret; | curCSS: function(e,p,force) { var r; if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); r = e.currentStyle[p] || e.currentStyle[np]; } else if (document.defaultView && document.defaultView.getComputedStyle) { p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); r = s ? s.getPropertyValue(p) : null; } return r; }, |
ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); | var c = document.defaultView.getComputedStyle(this, ''); ret = c && c.getPropertyValue(prop) || ''; | curCSS: function(elem, prop, force) { var ret; if (prop == 'opacity' && jQuery.browser.msie) return jQuery.attr(elem.style, 'opacity'); if (prop == "float" || prop == "cssFloat") prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { if (prop == "cssFloat" || prop == "styleFloat") prop = "float"; prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); } return ret; }, |
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); | var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); | curCSS: function(elem, prop, force) { var ret; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); } return ret; }, |
if (prop == "float" || prop == "cssFloat") prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; | curCSS: function(elem, prop, force) { var ret; if (prop == 'opacity' && jQuery.browser.msie) return jQuery.attr(elem.style, 'opacity'); if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) { prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); } return ret; }, |
|
ret = elem.currentStyle[prop] || elem.currentStyle[np]; | ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; | curCSS: function(elem, prop, force) { var ret; if (!force && elem.style[prop]) { ret = elem.style[prop]; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); ret = elem.currentStyle[prop] || elem.currentStyle[np]; } else if (document.defaultView && document.defaultView.getComputedStyle) { prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur ) ret = cur.getPropertyValue(prop); else if ( prop == 'display' ) ret = 'none'; else jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); }); } return ret; }, |
return this.parent.parent.getURL() + this.nick + "/"; | return this.parent.parent.getURL() + escape(this.nick) + ",isnick"; | function cusr_geturl (){ return this.parent.parent.getURL() + this.nick + "/";} |
return this.parent.parent.getURL(escape(this.nick)) + ",isnick"; | return this.parent.parent.getURL(ecmaEscape(this.nick)) + ",isnick"; | function cusr_geturl (){ return this.parent.parent.getURL(escape(this.nick)) + ",isnick";} |
var modifier = " -o+b " + this.encodedName + " " + this.getBanMask() + " "; | var modifier = " -o+b " + this.encodedName + " " + fromUnicode(this.getBanMask(), server) + " "; | function cusr_kban (reason){ var server = this.parent.parent; var me = server.me; if (!this.host) return false; reason = (typeof reason != "undefined") ? reason : this.encodedName; var modifier = " -o+b " + this.encodedName + " " + this.getBanMask() + " "; server.sendData("MODE " + this.parent.encodedName + modifier + "\n" + "KICK " + this.parent.encodedName + " " + this.encodedName + " :" + reason + "\n"); return true;} |
"KICK " + this.parent.encodedName + " " + this.nick + " :" + | "KICK " + this.parent.encodedName + " " + fromUnicode(this.nick, this) + " :" + | function cusr_kban (reason){ var server = this.parent.parent; var me = server.me; if (!this.parent.users[me.nick].isOp) return false; if (!this.host) return false; reason = (typeof reason != "undefined") ? reason : this.nick; var modifier = " -o+b " + this.nick + " " + this.getHostMask() + " "; server.sendData("MODE " + this.parent.encodedName + modifier + "\n" + "KICK " + this.parent.encodedName + " " + this.nick + " :" + reason + "\n"); return true;} |
reason + "\n"); | fromUnicode(reason, this) + "\n"); | function cusr_kick (reason){ var server = this.parent.parent; var me = server.me; reason = typeof reason == "string" ? reason : ""; if (!this.parent.users[me.nick].isOp) return false; server.sendData("KICK " + this.parent.encodedName + " " + this.nick + " :" + reason + "\n"); return true;} |
modifier += this.getBanMask() + " "; | modifier += fromUnicode(this.getBanMask(), server) + " "; | function cusr_setban (f){ var server = this.parent.parent; var me = server.me; if (!this.host) return false; var modifier = (f) ? " +b " : " -b "; modifier += this.getBanMask() + " "; server.sendData("MODE " + this.parent.encodedName + modifier + "\n"); return true;} |
z.custom = function(f,t){ if(z.timer) {return null;} this.now=f;z.a();z.io=z.cur();z.s=(new Date()).getTime(); z.timer=setInterval(function(){z.step(f,t);}, 13); | z.custom = function(from,to){ z.startTime = (new Date()).getTime(); z.now = from; z.a(); z.timer = setInterval(function(){ z.step(from, to); }, 13); | z.custom = function(f,t){ if(z.timer) {return null;} this.now=f;z.a();z.io=z.cur();z.s=(new Date()).getTime(); z.timer=setInterval(function(){z.step(f,t);}, 13); }; |
var numSelected = tree.treeBoxObject.selection ? tree.treeBoxObject.selection.count : 0; | var numSelected = tree.view.selection.count; | function CustomizePanel(){ var tree = document.getElementById('current-panels'); var numSelected = tree.treeBoxObject.selection ? tree.treeBoxObject.selection.count : 0; if (numSelected == 1) { var index = tree.currentIndex; var selectedNode = tree.contentView.getItemAtIndex(index); var panel_id = selectedNode.getAttribute('id'); var customize_url = selectedNode.getAttribute('customize'); debug("url = " + customize_url); if (!customize_url) return; window.openDialog('chrome://communicator/content/sidebar/customize-panel.xul', '_blank', 'chrome,resizable,width=690,height=600,dialog=no,close', panel_id, customize_url, sidebarObj.datasource_uri, sidebarObj.resource); }} |
var numSelected = tree.selectedItems.length; | var numSelected = tree.treeBoxObject.selection ? tree.treeBoxObject.selection.count : 0; | function CustomizePanel(){ var tree = document.getElementById('current-panels'); var numSelected = tree.selectedItems.length; if (numSelected == 1) { var selectedNode = tree.selectedItems[0]; var panel_id = selectedNode.getAttribute('id'); var customize_url = selectedNode.getAttribute('customize'); debug("url = " + customize_url); if (!customize_url) return; window.openDialog('chrome://communicator/content/sidebar/customize-panel.xul', '_blank', 'chrome,resizable,width=690,height=600,dialog=no,close', panel_id, customize_url, sidebarObj.datasource_uri, sidebarObj.resource); }} |
var selectedNode = tree.selectedItems[0]; | var index = tree.currentIndex; var selectedNode = tree.contentView.getItemAtIndex(index); | function CustomizePanel(){ var tree = document.getElementById('current-panels'); var numSelected = tree.selectedItems.length; if (numSelected == 1) { var selectedNode = tree.selectedItems[0]; var panel_id = selectedNode.getAttribute('id'); var customize_url = selectedNode.getAttribute('customize'); debug("url = " + customize_url); if (!customize_url) return; window.openDialog('chrome://communicator/content/sidebar/customize-panel.xul', '_blank', 'chrome,resizable,width=690,height=600,dialog=no,close', panel_id, customize_url, sidebarObj.datasource_uri, sidebarObj.resource); }} |
var customize = window.open(customize_url, "_blank", "resizable"); | window.open(customize_url, "_blank", "resizable,width=690,height=600"); | function CustomizePanel() { var tree = document.getElementById('current-panels'); var numSelected = tree.selectedItems.length; if (numSelected == 1) { var selectedNode = tree.selectedItems[0]; var customize_url = selectedNode.getAttribute('customize'); debug("url = " + customize_url); if (!customize_url) return; var customize = window.open(customize_url, "_blank", "resizable"); } enableSave();} |
enableSave(); | enable_save(); | function CustomizePanel() { var tree = document.getElementById('current-panels'); var numSelected = tree.selectedItems.length; if (numSelected == 1) { var selectedNode = tree.selectedItems[0]; var customize_url = selectedNode.getAttribute('customize'); debug("url = " + customize_url); if (!customize_url) return; var customize = window.open(customize_url, "_blank", "resizable"); } enableSave();} |
if (!ControlToValidate) { ValidatorSucceeded (validator); return true; } | function CustomValidatorEvaluateIsValid (validator){ var InitialValue = validator.getAttribute ("initialvalue"); var ControlToValidate = validator.getAttribute ("controltovalidate"); var evaluationfunc = validator.getAttribute ("clientvalidationfunction"); var ctrl_value = ValidatorTrim (ValidatorGetValue (ControlToValidate)); var result = true; if (evaluationfunc && evaluationfunc != "") { args = {Value:ctrl_value, IsValid:false}; eval (evaluationfunc + "(validator, args)"); result = args.IsValid; } if (result) { ValidatorSucceeded (validator); return true; } else { ValidatorFailed (validator); return false; }} |
|
BookmarksUtils.removeSelection("cut", aSelection); | BookmarksUtils.removeAndCheckSelection("cut", aSelection); | cutBookmark: function (aSelection) { this.copyBookmark(aSelection); BookmarksUtils.removeSelection("cut", aSelection); }, |
if( (col.id || col) == "unifinder-todo-tree-col-completed") { | if( (typeof(col)=="object" ? col.id : col) == "unifinder-todo-tree-col-completed") { | cycleCell : function(row,col) { calendarToDo = gTaskArray[row]; if( !calendarToDo ) return; // Moz1.8 trees require column.id, moz1.7 and earlier trees use column. if( (col.id || col) == "unifinder-todo-tree-col-completed") { var completed = calendarToDo.completed.getTime(); if( completed > 0 ) checkboxClick( calendarToDo, false ) ; else checkboxClick( calendarToDo, true ) ; } }, |
if( !calendarToDo ) return false; | if( !calendarToDo ) return; | cycleCell : function(row,colId) { calendarToDo = gTaskArray[row]; if( !calendarToDo ) return false; if( colId == "unifinder-todo-tree-col-completed") { var completed = calendarToDo.completed.getTime(); if( completed > 0 ) checkboxClick( calendarToDo, false ) ; else checkboxClick( calendarToDo, true ) ; } }, |
optgroupObject.prototype.cycleCell = function cycleCell(index) { }; | cycleCell: function cycleCell(index, column) { itemArray[index].cycleCell(index); }, | optgroupObject.prototype.cycleCell = function cycleCell(index){}; |
this.selectedColumn = col.id || col; | this.selectedColumn = (typeof(col)=="object" ? col.id : col); | cycleHeader : function(col, element) // element parameter used in Moz1.7- { // not in Moz1.8+ //dump( "\nin cycle header" ); var sortActive; var treeCols; // Moz1.8 trees require column.id, moz1.7 and earlier trees use column. this.selectedColumn = col.id || col; if (!element) element = col.element; // in Moz1.8+, get element from col sortActive = element.getAttribute("sortActive"); this.sortDirection = element.getAttribute("sortDirection"); if (sortActive != "true") { treeCols = document.getElementsByTagName("treecol"); for (var i = 0; i < treeCols.length; i++) { treeCols[i].removeAttribute("sortActive"); treeCols[i].removeAttribute("sortDirection"); } sortActive = true; this.sortDirection = "ascending"; } else { sortActive = true; if (this.sortDirection == "" || this.sortDirection == "descending") { this.sortDirection = "ascending"; } else { this.sortDirection = "descending"; } } element.setAttribute("sortActive", sortActive); element.setAttribute("sortDirection", this.sortDirection); this.sortStartedTime = new Date().getTime(); // for null/0 dates in sort gEventArray.sort( compareEvents ); document.getElementById( UnifinderTreeName ).view = this; }, |
cycleHeader: function(colID, elt) {}, | cycleHeader: function(colID, elt) { var index = this.selection.currentIndex; if (colID == gSortedColumn) gSortDirection = -gSortDirection; if (colID == gSortedColumn && gFastIndex == gPrefArray.length) { gPrefArray.reverse(); if (index >= 0) index = gPrefArray.length - index - 1; } else { var pref = null; if (index >= 0) pref = gPrefArray[index]; var old = document.getElementById(gSortedColumn); old.setAttribute("sortDirection", ""); gPrefArray.sort(gSortFunction = gSortFunctions[colID]); gSortedColumn = colID; if (pref) index = getIndexOfPref(pref); } elt.setAttribute("sortDirection", gSortDirection > 0 ? "ascending" : "descending"); this.treebox.invalidate(); if (index >= 0) { this.selection.select(index); this.treebox.ensureRowIsVisible(index); } gFastIndex = gPrefArray.length; }, | cycleHeader: function(colID, elt) {}, |
this.selectedColumn = col.id || col; | this.selectedColumn = (typeof(col)=="object" ? col.id : col); | cycleHeader : function(col, element) // element parameter used in Moz1.7- { // not in Moz1.8+ var sortActive; var treeCols; // Moz1.8 trees require column.id, moz1.7 and earlier trees use column. this.selectedColumn = col.id || col; if (!element) element = col.element; // in Moz1.8+, get element from col sortActive = element.getAttribute("sortActive"); this.sortDirection = element.getAttribute("sortDirection"); if (sortActive != "true") { treeCols = document.getElementsByTagName("treecol"); for (var i = 0; i < treeCols.length; i++) { treeCols[i].removeAttribute("sortActive"); treeCols[i].removeAttribute("sortDirection"); } sortActive = true; this.sortDirection = "ascending"; } else { sortActive = true; if (this.sortDirection == "" || this.sortDirection == "descending") { this.sortDirection = "ascending"; } else { this.sortDirection = "descending"; } } element.setAttribute("sortActive", sortActive); element.setAttribute("sortDirection", this.sortDirection); this.sortStartedTime = new Date().getTime(); // for null dates during sort gTaskArray.sort( compareTasks ); document.getElementById( ToDoUnifinderTreeName ).view = this; }, |
function CycleWindow( inType, inChromeURL ) | function CycleWindow( aType, aChromeURL ) | function CycleWindow( inType, inChromeURL ){ var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); dump("got window Manager \n"); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); dump("got interface \n"); var desiredWindow = null; var topWindowOfType = windowManagerInterface.getMostRecentWindow( inType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); dump( "got windows \n"); dump( "topWindowOfType = " + topWindowOfType + "\n"); if ( topWindowOfType == null ) { if ( inType == "navigator:browser" ) OpenBrowserWindow(); else if ( inType == "composer:html" ) /* open editor window */ NewEditorWindow(); else { /* what to do here? */ } return; } if ( topWindowOfType != topWindow ) { dump( "first not top so give focus \n"); topWindowOfType.focus(); return; } var enumerator = windowManagerInterface.getEnumerator( inType ); firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( firstWindow == topWindowOfType ) { dump( "top most window is first window \n"); firstWindow = null; } else { dump("find topmost window \n"); while ( enumerator.hasMoreElements() ) { var nextWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( nextWindow == topWindowOfType ) break; } } desiredWindow = firstWindow; if ( enumerator.hasMoreElements() ) { dump( "Give focus to next window in the list \n"); desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); } if ( desiredWindow ) { desiredWindow.focus(); dump("focusing window \n"); } else { dump("open window \n"); if ( inType == "navigator:browser" ) window.OpenBrowserWindow(); else if ( inType == "composer:html" ) /* open editor window */ NewEditorWindow(); else { /* what to do here? */ } }} |
var windowManager = Components.classes['component: dump("got window Manager \n"); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); dump("got interface \n"); var desiredWindow = null; var topWindowOfType = windowManagerInterface.getMostRecentWindow( inType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); dump( "got windows \n"); dump( "topWindowOfType = " + topWindowOfType + "\n"); if ( topWindowOfType == null ) { if ( inType == "navigator:browser" ) OpenBrowserWindow(); else if ( inType == "composer:html" ) NewEditorWindow(); | var windowManager = Components.classes['component: var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); if ( topWindowOfType == null ) newWindowOfType( aType ); else if ( topWindowOfType != topWindow ) topWindowOfType.focus(); else { var enumerator = windowManagerInterface.getEnumerator( aType ); var firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); var iWindow = firstWindow; while ( iWindow != topWindow && enumerator.hasMoreElements() ) iWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); var desiredWindow = firstWindow; if ( enumerator.hasMoreElements() ) desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( desiredWindow == topWindow ) newWindowOfType( aType ); | function CycleWindow( inType, inChromeURL ){ var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); dump("got window Manager \n"); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); dump("got interface \n"); var desiredWindow = null; var topWindowOfType = windowManagerInterface.getMostRecentWindow( inType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); dump( "got windows \n"); dump( "topWindowOfType = " + topWindowOfType + "\n"); if ( topWindowOfType == null ) { if ( inType == "navigator:browser" ) OpenBrowserWindow(); else if ( inType == "composer:html" ) /* open editor window */ NewEditorWindow(); else { /* what to do here? */ } return; } if ( topWindowOfType != topWindow ) { dump( "first not top so give focus \n"); topWindowOfType.focus(); return; } var enumerator = windowManagerInterface.getEnumerator( inType ); firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( firstWindow == topWindowOfType ) { dump( "top most window is first window \n"); firstWindow = null; } else { dump("find topmost window \n"); while ( enumerator.hasMoreElements() ) { var nextWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( nextWindow == topWindowOfType ) break; } } desiredWindow = firstWindow; if ( enumerator.hasMoreElements() ) { dump( "Give focus to next window in the list \n"); desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); } if ( desiredWindow ) { desiredWindow.focus(); dump("focusing window \n"); } else { dump("open window \n"); if ( inType == "navigator:browser" ) window.OpenBrowserWindow(); else if ( inType == "composer:html" ) /* open editor window */ NewEditorWindow(); else { /* what to do here? */ } }} |
{ } return; } if ( topWindowOfType != topWindow ) { dump( "first not top so give focus \n"); topWindowOfType.focus(); return; } var enumerator = windowManagerInterface.getEnumerator( inType ); firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( firstWindow == topWindowOfType ) { dump( "top most window is first window \n"); firstWindow = null; } else { dump("find topmost window \n"); while ( enumerator.hasMoreElements() ) { var nextWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( nextWindow == topWindowOfType ) break; } } desiredWindow = firstWindow; if ( enumerator.hasMoreElements() ) { dump( "Give focus to next window in the list \n"); desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); } if ( desiredWindow ) { desiredWindow.focus(); dump("focusing window \n"); } else { dump("open window \n"); if ( inType == "navigator:browser" ) window.OpenBrowserWindow(); else if ( inType == "composer:html" ) NewEditorWindow(); else { } } | desiredWindow.focus(); } | function CycleWindow( inType, inChromeURL ){ var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); dump("got window Manager \n"); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); dump("got interface \n"); var desiredWindow = null; var topWindowOfType = windowManagerInterface.getMostRecentWindow( inType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); dump( "got windows \n"); dump( "topWindowOfType = " + topWindowOfType + "\n"); if ( topWindowOfType == null ) { if ( inType == "navigator:browser" ) OpenBrowserWindow(); else if ( inType == "composer:html" ) /* open editor window */ NewEditorWindow(); else { /* what to do here? */ } return; } if ( topWindowOfType != topWindow ) { dump( "first not top so give focus \n"); topWindowOfType.focus(); return; } var enumerator = windowManagerInterface.getEnumerator( inType ); firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( firstWindow == topWindowOfType ) { dump( "top most window is first window \n"); firstWindow = null; } else { dump("find topmost window \n"); while ( enumerator.hasMoreElements() ) { var nextWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( nextWindow == topWindowOfType ) break; } } desiredWindow = firstWindow; if ( enumerator.hasMoreElements() ) { dump( "Give focus to next window in the list \n"); desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); } if ( desiredWindow ) { desiredWindow.focus(); dump("focusing window \n"); } else { dump("open window \n"); if ( inType == "navigator:browser" ) window.OpenBrowserWindow(); else if ( inType == "composer:html" ) /* open editor window */ NewEditorWindow(); else { /* what to do here? */ } }} |
var windowManager = Components.classes['component: | var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); | function CycleWindow( aType, aChromeURL ){ var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); if ( topWindowOfType == null ) newWindowOfType( aType ); else if ( topWindowOfType != topWindow ) topWindowOfType.focus(); else { var enumerator = windowManagerInterface.getEnumerator( aType ); var firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); var iWindow = firstWindow; // ;-) while ( iWindow != topWindow && enumerator.hasMoreElements() ) iWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); var desiredWindow = firstWindow; if ( enumerator.hasMoreElements() ) desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() ); if ( desiredWindow == topWindow ) // Only one window, open a new one newWindowOfType( aType ); else desiredWindow.focus(); }} |
topWindowOfType.focus(); | toOpenWindow(topWindowOfType); | function CycleWindow( aType ){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); if ( topWindowOfType == null ) return null; if ( topWindowOfType != topWindow ) { topWindowOfType.focus(); return topWindowOfType; } var enumerator = windowManagerInterface.getEnumerator( aType ); var firstWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); var iWindow = firstWindow; while (iWindow != topWindow && enumerator.hasMoreElements()) iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); if (enumerator.hasMoreElements()) { iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); iWindow.focus(); return iWindow; } if (firstWindow == topWindow) // Only one window return null; firstWindow.focus(); return firstWindow;} |
iWindow.focus(); | toOpenWindow(iWindow); | function CycleWindow( aType ){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); if ( topWindowOfType == null ) return null; if ( topWindowOfType != topWindow ) { topWindowOfType.focus(); return topWindowOfType; } var enumerator = windowManagerInterface.getEnumerator( aType ); var firstWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); var iWindow = firstWindow; while (iWindow != topWindow && enumerator.hasMoreElements()) iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); if (enumerator.hasMoreElements()) { iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); iWindow.focus(); return iWindow; } if (firstWindow == topWindow) // Only one window return null; firstWindow.focus(); return firstWindow;} |
firstWindow.focus(); | toOpenWindow(firstWindow); | function CycleWindow( aType ){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType ); var topWindow = windowManagerInterface.getMostRecentWindow( null ); if ( topWindowOfType == null ) return null; if ( topWindowOfType != topWindow ) { topWindowOfType.focus(); return topWindowOfType; } var enumerator = windowManagerInterface.getEnumerator( aType ); var firstWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); var iWindow = firstWindow; while (iWindow != topWindow && enumerator.hasMoreElements()) iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); if (enumerator.hasMoreElements()) { iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal); iWindow.focus(); return iWindow; } if (firstWindow == topWindow) // Only one window return null; firstWindow.focus(); return firstWindow;} |
window.open( inChromeURL, "","chrome,menubar,toolbar,resizable" ); | window.open( inChromeURL, "","chrome,menubar,toolbar" ); | function CycleWindow( inType, inChromeURL ){ var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); dump("got window Manager \n"); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); dump("got interface \n"); var desiredWindow = null; var topWindowOfType = windowManagerInterface.GetMostRecentWindow( inType ); var topWindow = windowManagerInterface.GetMostRecentWindow( null ); dump( "got windows \n"); dump( "topWindowOfType = " + topWindowOfType + "\n"); if ( topWindowOfType == null ) { dump( " no windows of this type so create a new one \n"); window.open( inChromeURL, "","chrome,menubar,toolbar,resizable" ); return; } if ( topWindowOfType != topWindow ) { dump( "first not top so give focus \n"); topWindowOfType.focus(); return; } var enumerator = windowManagerInterface.GetEnumerator( inType ); firstWindow = windowManagerInterface.ConvertISupportsToDOMWindow ( enumerator.GetNext() ); if ( firstWindow == topWindowOfType ) { dump( "top most window is first window \n"); firstWindow = null; } else { dump("find topmost window \n"); while ( enumerator.HasMoreElements() ) { var nextWindow = windowManagerInterface.ConvertISupportsToDOMWindow ( enumerator.GetNext() ); if ( nextWindow == topWindowOfType ) break; } } desiredWindow = firstWindow; if ( enumerator.HasMoreElements() ) { dump( "Give focus to next window in the list \n"); desiredWindow = windowManagerInterface.ConvertISupportsToDOMWindow ( enumerator.GetNext() ); } if ( desiredWindow ) { desiredWindow.focus(); dump("focusing window \n"); } else { dump("open window \n"); window.open( inChromeURL, "","chrome,menubar,toolbar,resizable" ); }} |
window.open( inChromeURL, "","chrome,menubar,toolbar,resizable" ); | window.open( inChromeURL, "","chrome,menubar" ); | function CycleWindow( inType, inChromeURL ){ var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); dump("got window Manager \n"); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); dump("got interface \n"); var desiredWindow = null; var topWindowOfType = windowManagerInterface.GetMostRecentWindow( inType ); var topWindow = windowManagerInterface.GetMostRecentWindow( null ); dump( "got windows \n"); dump( "topWindowOfType = " + topWindowOfType + "\n"); if ( topWindowOfType == null ) { dump( " no windows of this type so create a new one \n"); window.open( inChromeURL, "","chrome,menubar,toolbar,resizable" ); return; } if ( topWindowOfType != topWindow ) { dump( "first not top so give focus \n"); topWindowOfType.focus(); return; } var enumerator = windowManagerInterface.GetEnumerator( inType ); firstWindow = windowManagerInterface.ConvertISupportsToDOMWindow ( enumerator.GetNext() ); if ( firstWindow == topWindowOfType ) { dump( "top most window is first window \n"); firstWindow = null; } else { dump("find topmost window \n"); while ( enumerator.HasMoreElements() ) { var nextWindow = windowManagerInterface.ConvertISupportsToDOMWindow ( enumerator.GetNext() ); if ( nextWindow == topWindowOfType ) break; } } desiredWindow = firstWindow; if ( enumerator.HasMoreElements() ) { dump( "Give focus to next window in the list \n"); desiredWindow = windowManagerInterface.ConvertISupportsToDOMWindow ( enumerator.GetNext() ); } if ( desiredWindow ) { desiredWindow.focus(); dump("focusing window \n"); } else { dump("open window \n"); window.open( inChromeURL, "","chrome,menubar,toolbar,resizable" ); }} |
for (var i = 1; i <= 3; i++) { switch (Number(probeArray[i])) { case 02: this.twoDigitYear = true; case 2002: this.yearIndex = i; break; case 3: this.monthIndex = i; break; case 4: this.dayIndex = i; break; | if (probeArray != null) { for (var i = 1; i <= 3; i++) { switch (Number(probeArray[i])) { case 02: this.twoDigitYear = true; case 2002: this.yearIndex = i; break; case 3: this.monthIndex = i; break; case 4: this.dayIndex = i; break; } | function DateFormater( ){ // we get the date bundle in case the locale changes, can // we be notified of a locale change instead, then we could // get the bundle once. this.dateStringBundle = srGetStrBundle("chrome://calendar/locale/dateFormat.properties"); // probe the dateformat this.yearIndex = -1; this.monthIndex = -1; this.dayIndex = -1; this.twoDigitYear = false; var parseShortDateRegex = /^\s*(\d+)\D(\d+)\D(\d+)\s*$/; //digits & nonDigits var probeDate = new Date(2002,3-1,4); // month is 0-based var probeString = this.getShortFormatedDate(probeDate); var probeArray = parseShortDateRegex.exec(probeString); for (var i = 1; i <= 3; i++) { switch (Number(probeArray[i])) { case 02: this.twoDigitYear = true; // fall thru case 2002: this.yearIndex = i; break; case 3: this.monthIndex = i; break; case 4: this.dayIndex = i; break; } } //All three indexes are set (not -1) at this point.} |
var date = new Date(fileInst.lastModificationTime).toLocaleString(); | var date = new Date(fileInst.lastModifiedTime).toLocaleString(); | dateModified : function (path) { if(!path) { dump("io.js:dateModified:ERROR: Missing path argument\n\n"); return null; } if(!this.exists(path)) { dump("io.js:dateModified:ERROR: File doesn't exist\n\n"); return null; } var retval; try { var fileInst = new FilePath(path); var date = new Date(fileInst.lastModificationTime).toLocaleString(); retval=date; } catch(e) { dump("io.js:dateModified:ERROR: "+e+"\n"); retval=null; } return retval;}, |
var date = new Date(fileInst.lastModificationTime).toLocaleString(); | var date = new Date(fileInst.lastModifiedTime).toLocaleString(); | dateModified : function () { if(!this.mPath) { dump(JSLIB_FILE+":dateModified:ERROR: Missing path argument\nNS_ERROR_NUMBER: "); return Components.results.NS_ERROR_XPC_NOT_ENOUGH_ARGS; } if(!this.exists()) { dump(JSLIB_FILE+":dateModified:ERROR: File doesn't exist\nNS_ERROR_NUMBER: "); return Components.results.NS_ERROR_FAILURE; } var retval; try { var fileInst = new JSFILE_FilePath(this.mPath); var date = new Date(fileInst.lastModificationTime).toLocaleString(); retval=date; } catch(e) { dump(JSLIB_FILE+":dateModified:ERROR: "+e.name+"\n"+e.message+"\nNS_ERROR_NUMBER: "); return Components.results.NS_ERROR_UNEXPECTED; } return retval;}, |
onSelectionChanged : function( EventSelectionArray ) | onSelectionChanged : function dv_EventSelectionObserver_OnSelectionChanged( EventSelectionArray ) | function DayView( calendarWindow ){ // call super this.superConstructor( calendarWindow ); //set the time on the left hand side labels //need to do this in JavaScript to preserve formatting for( var i = 0; i < 24; i++ ) { /* ** FOR SOME REASON, THIS IS NOT WORKING FOR MIDNIGHT */ var TimeToFormat = new Date(); TimeToFormat.setHours( i ); TimeToFormat.setMinutes( "0" ); var FormattedTime = calendarWindow.dateFormater.getFormatedTime( TimeToFormat ); var Label = document.getElementById( "day-view-hour-"+i ); Label.setAttribute( "value", FormattedTime ); } var dayViewEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { for( i = 0; i < EventSelectionArray.length; i++ ) { gCalendarWindow.dayView.selectBoxForEvent( EventSelectionArray[i] ); } } } calendarWindow.EventSelection.addObserver( dayViewEventSelectionObserver );} |
var eventEndDateTime = new Date( 2000, 1, 1, calendarEventDisplay.event.end.hour, calendarEventDisplay.event.end.minute, 0 ); | var eventEndDateTime = new Date( 2000, 1, 1, eventEndDate.getHours(), eventEndDate.getMinutes(), 0 ); | DayView.prototype.createEventBox = function dayview_createEventBox( calendarEventDisplay ){ var eventStartDate = calendarEventDisplay.displayDate; var startHour = eventStartDate.getHours(); var startMinutes = eventStartDate.getMinutes(); var eventEndDateTime = new Date( 2000, 1, 1, calendarEventDisplay.event.end.hour, calendarEventDisplay.event.end.minute, 0 ); var eventStartDateTime = new Date( 2000, 1, 1, eventStartDate.getHours(), eventStartDate.getMinutes(), 0 ); var eventDuration = new Date( eventEndDateTime - eventStartDateTime ); var hourDuration = eventDuration / (3600000); var eventBox = document.createElement( "vbox" ); var topHeight = eval( ( startHour*kDayViewHourHeight ) + ( ( startMinutes/60 ) * kDayViewHourHeight ) ); topHeight = Math.round( topHeight ) - 1; eventBox.setAttribute( "top", topHeight ); eventBox.setAttribute( "height", Math.round( ( hourDuration*kDayViewHourHeight ) + 1 ) ); var daywidth = parseInt(document.defaultView.getComputedStyle(document.getElementById("day-tree-item-0"), "").getPropertyValue("width")); var width = Math.round( ( daywidth-kDayViewHourLeftStart ) / calendarEventDisplay.NumberOfSameTimeEvents ); eventBox.setAttribute( "width", width ); var left = eval( ( ( calendarEventDisplay.CurrentSpot - 1 ) * width ) + kDayViewHourLeftStart ); left = left - ( 1 * ( calendarEventDisplay.CurrentSpot - 1 )); eventBox.setAttribute( "left", Math.round( left ) ); //if you change this class, you have to change calendarViewDNDObserver in calendarDragDrop.js eventBox.setAttribute( "class", "day-view-event-class" ); eventBox.setAttribute( "flex", "1" ); eventBox.setAttribute( "eventbox", "dayview" ); eventBox.setAttribute( "onclick", "dayEventItemClick( this, event )" ); eventBox.setAttribute( "ondblclick", "dayEventItemDoubleClick( this, event )" ); // dragdrop events eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,calendarViewDNDObserver);" ); eventBox.setAttribute( "ondragover", "nsDragAndDrop.dragOver(event,calendarViewDNDObserver)" ); eventBox.setAttribute( "ondragdrop", "nsDragAndDrop.drop(event,calendarViewDNDObserver)" ); eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" ); eventBox.setAttribute( "tooltip", "savetip" ); eventBox.setAttribute( "name", "day-view-event-box-"+calendarEventDisplay.event.id ); if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" ) { eventBox.setAttribute( calendarEventDisplay.event.categories, "true" ); } var eventHTMLElement = document.createElement( "label" ); eventHTMLElement.setAttribute( "value", calendarEventDisplay.event.title ); eventHTMLElement.setAttribute( "flex", "1" ); eventHTMLElement.setAttribute( "crop", "end" ); eventBox.appendChild( eventHTMLElement ); /* if( calendarEventDisplay.event.description != "" ) { var eventHTMLElement2 = document.createElement( "description" ); eventHTMLElement2.setAttribute( "value", calendarEventDisplay.event.description ); eventHTMLElement2.setAttribute( "flex", "1" ); eventHTMLElement2.setAttribute( "crop", "end" ); eventBox.appendChild( eventHTMLElement2 ); } */ // add a property to the event box that holds the calendarEvent that the // box represents eventBox.calendarEventDisplay = calendarEventDisplay; this.kungFooDeathGripOnEventBoxes.push( eventBox ); return( eventBox );} |
var topHeight = eval( topHeight + ( ( startMinutes/60 ) * boxHeight ) ); | topHeight = eval( topHeight + ( ( startMinutes/60 ) * boxHeight ) ); | DayView.prototype.createEventBox = function dayview_createEventBox( calendarEventDisplay ){ var eventStartDate = calendarEventDisplay.displayDate; var eventEndDate = calendarEventDisplay.displayEndDate; var startHour = eventStartDate.getHours(); var startMinutes = eventStartDate.getMinutes(); var eventEndDateTime = new Date( 2000, 1, 1, eventEndDate.getHours(), eventEndDate.getMinutes(), 0 ); var eventStartDateTime = new Date( 2000, 1, 1, eventStartDate.getHours(), eventStartDate.getMinutes(), 0 ); var eventDuration = new Date( eventEndDateTime - eventStartDateTime ); var hourDuration = eventDuration / (3600000); var eventBox = document.createElement( "vbox" ); var boxHeight = document.getElementById( "day-tree-item-"+startHour ).boxObject.height; var topHeight = document.getElementById( "day-tree-item-"+startHour ).boxObject.y - document.getElementById( "day-tree-item-"+startHour ).parentNode.boxObject.y; var boxWidth = document.getElementById( "day-tree-item-"+startHour ).boxObject.width; var topHeight = eval( topHeight + ( ( startMinutes/60 ) * boxHeight ) ); topHeight = Math.round( topHeight ) - 2; eventBox.setAttribute( "top", topHeight ); eventBox.setAttribute( "height", Math.round( ( hourDuration*boxHeight ) + 1 ) ); var width = Math.round( ( boxWidth-kDayViewHourLeftStart ) / calendarEventDisplay.NumberOfSameTimeEvents ); eventBox.setAttribute( "width", width ); var left = eval( ( ( calendarEventDisplay.CurrentSpot - 1 ) * width ) + kDayViewHourLeftStart ); left = left - ( calendarEventDisplay.CurrentSpot - 1 ); eventBox.setAttribute( "left", Math.round( left ) ); //if you change this class, you have to change calendarViewDNDObserver in calendarDragDrop.js eventBox.setAttribute( "class", "day-view-event-class" ); eventBox.setAttribute( "flex", "1" ); eventBox.setAttribute( "eventbox", "dayview" ); eventBox.setAttribute( "onclick", "dayEventItemClick( this, event )" ); eventBox.setAttribute( "ondblclick", "dayEventItemDoubleClick( this, event )" ); // dragdrop events eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,calendarViewDNDObserver);" ); eventBox.setAttribute( "ondragover", "nsDragAndDrop.dragOver(event,calendarViewDNDObserver)" ); eventBox.setAttribute( "ondragdrop", "nsDragAndDrop.drop(event,calendarViewDNDObserver)" ); eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" ); eventBox.setAttribute( "tooltip", "eventTooltip" ); eventBox.setAttribute( "name", "day-view-event-box-"+calendarEventDisplay.event.id ); if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" ) { eventBox.setAttribute( calendarEventDisplay.event.categories, "true" ); } var eventHTMLElement = document.createElement( "label" ); eventHTMLElement.setAttribute( "value", calendarEventDisplay.event.title ); eventHTMLElement.setAttribute( "flex", "1" ); eventHTMLElement.setAttribute( "crop", "end" ); eventBox.appendChild( eventHTMLElement ); /* if( calendarEventDisplay.event.description != "" ) { var eventHTMLElement2 = document.createElement( "description" ); eventHTMLElement2.setAttribute( "value", calendarEventDisplay.event.description ); eventHTMLElement2.setAttribute( "flex", "1" ); eventHTMLElement2.setAttribute( "crop", "end" ); eventBox.appendChild( eventHTMLElement2 ); } */ // add a property to the event box that holds the calendarEvent that the // box represents eventBox.calendarEventDisplay = calendarEventDisplay; this.kungFooDeathGripOnEventBoxes.push( eventBox ); return( eventBox );} |
var nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + goDays ); | nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + goDays ); | DayView.prototype.goToNext = function dayview_goToNext(goDays){ if (goDays) { var nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + goDays ); this.goToDay( nextDay ); } else { var nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 1 ); this.goToDay( nextDay ); }} |
var nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 1 ); | nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 1 ); | DayView.prototype.goToNext = function dayview_goToNext(goDays){ if (goDays) { var nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + goDays ); this.goToDay( nextDay ); } else { var nextDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 1 ); this.goToDay( nextDay ); }} |
var prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - goDays ); | prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - goDays ); | DayView.prototype.goToPrevious = function dayview_goToPrevious( goDays ){ if (goDays) { var prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - goDays ); this.goToDay( prevDay ); } else { var prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - 1 ); this.goToDay( prevDay ); }} |
var prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - 1 ); | prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - 1 ); | DayView.prototype.goToPrevious = function dayview_goToPrevious( goDays ){ if (goDays) { var prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - goDays ); this.goToDay( prevDay ); } else { var prevDay = new Date( this.calendarWindow.selectedDate.getFullYear(), this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() - 1 ); this.goToDay( prevDay ); }} |
var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); | dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); | DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){ // update the title var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() ); if (this.calendarWindow.getSelectedDate().getDay() < 2) { if (this.calendarWindow.getSelectedDate().getDay() == 0) { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); } if (this.calendarWindow.getSelectedDate().getDay() > 4) { if (this.calendarWindow.getSelectedDate().getDay() == 6) { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2); } var monthName = this.calendarWindow.dateFormater.getMonthName( this.calendarWindow.getSelectedDate().getMonth() ); var dateString = monthName + " " + this.calendarWindow.getSelectedDate().getDate() + " " + this.calendarWindow.getSelectedDate().getFullYear(); var dayTextItemPrev2 = document.getElementById( "-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "-1-day-title" ); var dayTextItem = document.getElementById( "0-day-title" ); var dayTextItemNext1 = document.getElementById( "1-day-title" ); var dayTextItemNext2 = document.getElementById( "2-day-title" ); var daySpecificTextItem = document.getElementById( "0-day-specific-title" ); dayTextItemPrev2.setAttribute( "value" , dayNamePrev2 ); dayTextItemPrev1.setAttribute( "value" , dayNamePrev1 ); dayTextItem.setAttribute( "value" , dayName ); dayTextItemNext1.setAttribute( "value" , dayNameNext1 ); dayTextItemNext2.setAttribute( "value" , dayNameNext2 ); daySpecificTextItem.setAttribute( "value" , dateString );} |
var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); | dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); | DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){ // update the title var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() ); if (this.calendarWindow.getSelectedDate().getDay() < 2) { if (this.calendarWindow.getSelectedDate().getDay() == 0) { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); } if (this.calendarWindow.getSelectedDate().getDay() > 4) { if (this.calendarWindow.getSelectedDate().getDay() == 6) { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2); } var monthName = this.calendarWindow.dateFormater.getMonthName( this.calendarWindow.getSelectedDate().getMonth() ); var dateString = monthName + " " + this.calendarWindow.getSelectedDate().getDate() + " " + this.calendarWindow.getSelectedDate().getFullYear(); var dayTextItemPrev2 = document.getElementById( "-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "-1-day-title" ); var dayTextItem = document.getElementById( "0-day-title" ); var dayTextItemNext1 = document.getElementById( "1-day-title" ); var dayTextItemNext2 = document.getElementById( "2-day-title" ); var daySpecificTextItem = document.getElementById( "0-day-specific-title" ); dayTextItemPrev2.setAttribute( "value" , dayNamePrev2 ); dayTextItemPrev1.setAttribute( "value" , dayNamePrev1 ); dayTextItem.setAttribute( "value" , dayName ); dayTextItemNext1.setAttribute( "value" , dayNameNext1 ); dayTextItemNext2.setAttribute( "value" , dayNameNext2 ); daySpecificTextItem.setAttribute( "value" , dateString );} |
var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); | dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); | DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){ // update the title var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() ); if (this.calendarWindow.getSelectedDate().getDay() < 2) { if (this.calendarWindow.getSelectedDate().getDay() == 0) { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); } if (this.calendarWindow.getSelectedDate().getDay() > 4) { if (this.calendarWindow.getSelectedDate().getDay() == 6) { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2); } var monthName = this.calendarWindow.dateFormater.getMonthName( this.calendarWindow.getSelectedDate().getMonth() ); var dateString = monthName + " " + this.calendarWindow.getSelectedDate().getDate() + " " + this.calendarWindow.getSelectedDate().getFullYear(); var dayTextItemPrev2 = document.getElementById( "-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "-1-day-title" ); var dayTextItem = document.getElementById( "0-day-title" ); var dayTextItemNext1 = document.getElementById( "1-day-title" ); var dayTextItemNext2 = document.getElementById( "2-day-title" ); var daySpecificTextItem = document.getElementById( "0-day-specific-title" ); dayTextItemPrev2.setAttribute( "value" , dayNamePrev2 ); dayTextItemPrev1.setAttribute( "value" , dayNamePrev1 ); dayTextItem.setAttribute( "value" , dayName ); dayTextItemNext1.setAttribute( "value" , dayNameNext1 ); dayTextItemNext2.setAttribute( "value" , dayNameNext2 ); daySpecificTextItem.setAttribute( "value" , dateString );} |
if (this.calendarWindow.getSelectedDate().getDay() > 4) | var dayNameNext1; var dayNameNext2; if (this.calendarWindow.getSelectedDate().getDay() > 4) | DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){ // update the title var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() ); if (this.calendarWindow.getSelectedDate().getDay() < 2) { if (this.calendarWindow.getSelectedDate().getDay() == 0) { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); } if (this.calendarWindow.getSelectedDate().getDay() > 4) { if (this.calendarWindow.getSelectedDate().getDay() == 6) { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2); } var monthName = this.calendarWindow.dateFormater.getMonthName( this.calendarWindow.getSelectedDate().getMonth() ); var dateString = monthName + " " + this.calendarWindow.getSelectedDate().getDate() + " " + this.calendarWindow.getSelectedDate().getFullYear(); var dayTextItemPrev2 = document.getElementById( "-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "-1-day-title" ); var dayTextItem = document.getElementById( "0-day-title" ); var dayTextItemNext1 = document.getElementById( "1-day-title" ); var dayTextItemNext2 = document.getElementById( "2-day-title" ); var daySpecificTextItem = document.getElementById( "0-day-specific-title" ); dayTextItemPrev2.setAttribute( "value" , dayNamePrev2 ); dayTextItemPrev1.setAttribute( "value" , dayNamePrev1 ); dayTextItem.setAttribute( "value" , dayName ); dayTextItemNext1.setAttribute( "value" , dayNameNext1 ); dayTextItemNext2.setAttribute( "value" , dayNameNext2 ); daySpecificTextItem.setAttribute( "value" , dateString );} |
var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); | dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); | DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){ // update the title var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() ); if (this.calendarWindow.getSelectedDate().getDay() < 2) { if (this.calendarWindow.getSelectedDate().getDay() == 0) { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 ); } } else { var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 ); var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 ); } if (this.calendarWindow.getSelectedDate().getDay() > 4) { if (this.calendarWindow.getSelectedDate().getDay() == 6) { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5); } } else { var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1); var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2); } var monthName = this.calendarWindow.dateFormater.getMonthName( this.calendarWindow.getSelectedDate().getMonth() ); var dateString = monthName + " " + this.calendarWindow.getSelectedDate().getDate() + " " + this.calendarWindow.getSelectedDate().getFullYear(); var dayTextItemPrev2 = document.getElementById( "-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "-1-day-title" ); var dayTextItem = document.getElementById( "0-day-title" ); var dayTextItemNext1 = document.getElementById( "1-day-title" ); var dayTextItemNext2 = document.getElementById( "2-day-title" ); var daySpecificTextItem = document.getElementById( "0-day-specific-title" ); dayTextItemPrev2.setAttribute( "value" , dayNamePrev2 ); dayTextItemPrev1.setAttribute( "value" , dayNamePrev1 ); dayTextItem.setAttribute( "value" , dayName ); dayTextItemNext1.setAttribute( "value" , dayNameNext1 ); dayTextItemNext2.setAttribute( "value" , dayNameNext2 ); daySpecificTextItem.setAttribute( "value" , dateString );} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.