rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
fos.write(homepage3, homepage3.length); | fos.write(homepage2, homepage2.length); | function CCKWriteDefaultJS(destdir){ var throbber1 = 'pref("browser.throbber.url", "chrome://cck/content/cck.properties");\n'; var homepage1 = 'pref("browser.startup.homepage", "chrome://cck/content/cck.properties");\n'; var homepage2 = 'pref("browser.startup.homepage_reset", "chrome://cck/content... |
line = "cd \"" + location.path + "\"\n"; | line = "cd /d \"" + location.path + "\"\n"; | function CCKZip(zipfile, location){ var file = location.clone(); file.append(zipfile); try { file.remove(false); } catch (ex) {} if (Components.interfaces.IZipWriterComponent) { var archivefileobj = location.clone(); archivefileobj.append(zipfile); try { var zipwriterobj = Components.classes["@o... |
this.parent.messageTo (type, this.name, msg, code); | this.parent.messageTo (type, this.encodedName, msg, code); | function chan_ctcpto (code, msg, type){ if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; this.parent.messageTo (type, this.name, msg, code);} |
addHistory (this.users[nick], msgContainer); | if (nick == "!ME") addHistory (this.users[this.parent.me.nick], msgContainer); else addHistory (this.users[nick], msgContainer); | function chan_display (message, msgtype, nick){ var ary = message.split ("\n"); dd ("channel.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user",... |
if (this.name[0] == "#") target = escape(this.encodedName.substr(1)); | if (this.normalizedName[0] == "#") target = escape(this.normalizedName.substr(1)); | function chan_geturl (){ var target; if (this.name[0] == "#") target = escape(this.encodedName.substr(1)); else target = escape(this.encodedName); return this.parent.parent.getURL() + target;} |
target = escape(this.encodedName); return this.parent.parent.getURL() + target; | target = escape(this.normalizedName); return this.parent.parent.getURL(target); | function chan_geturl (){ var target; if (this.name[0] == "#") target = escape(this.encodedName.substr(1)); else target = escape(this.encodedName); return this.parent.parent.getURL() + target;} |
if (this.normalizedName[0] == "#") | if (this.normalizedName.match(/^#[^!+&]/)) | function chan_geturl (){ var target; if (this.normalizedName[0] == "#") target = ecmaEscape(this.normalizedName.substr(1)); else target = ecmaEscape(this.normalizedName); return this.parent.parent.getURL(target);} |
var myBranch = this.parent.parent.name + "," + this.name; myBranch = myBranch.replace(/[^\w\d,]/g, encodeChar); this.localPrefs = client.prefService.getBranch(client.prefBranch.root + "viewList." + myBranch + "."); if (getBoolPref("logging", false, this.localPrefs)) client.startLogging(this); | this.logFile = null; | function chan_oninit (){ var myBranch = this.parent.parent.name + "," + this.name; myBranch = myBranch.replace(/[^\w\d,]/g, encodeChar); this.localPrefs = client.prefService.getBranch(client.prefBranch.root + "viewList." + myBranch + "."); if (getBoolPref("logging"... |
function chan_part () | function chan_part (reason) | function chan_part (){ this.parent.sendData ("PART " + this.encodedName + "\n"); this.users = new Object(); return true;} |
this.parent.sendData ("PART " + this.encodedName + "\n"); | if (!reason) reason = ""; this.parent.sendData ("PART " + this.encodedName + " :" + fromUnicode(reason, this) + "\n"); | function chan_part (){ this.parent.sendData ("PART " + this.encodedName + "\n"); this.users = new Object(); return true;} |
if ((!this.mode.publicTopic) && (!this.users[this.parent.me.nick].isOp)) return false; str = String(str).split("\n"); for (var i in str) this.parent.sendData ("TOPIC " + this.encodedName + " :" + str[i] + "\n"); return true; | this.parent.sendData ("TOPIC " + this.encodedName + " :" + str + "\n"); | function chan_topic (str){ if ((!this.mode.publicTopic) && (!this.users[this.parent.me.nick].isOp)) return false; str = String(str).split("\n"); for (var i in str) this.parent.sendData ("TOPIC " + this.encodedName + " :" + str[i] + "\n"); return tru... |
if (currentPanel == CellPanel) | if (gDialog.TabBox.selectedTab == gDialog.CellTab) | function ChangeCellTextbox(textboxID){ // Filter input for just integers forceInteger(textboxID); if (currentPanel == CellPanel) CellDataChanged = true;} |
var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); tree.view.selection.getRangeAt(0, start, end); if (numRanges == 1 && (start.value == end.value) && toDoItem) { document.getElementById("task-context-menu-mo... | function changeContextMenuForToDo( event ){ if (event.target.id != "taskitem-context-menu") return; var toDoItem = getToDoFromEvent( event ); if( toDoItem ) { document.getElementById("is_editable").removeAttribute("disabled"); var liveList = document.getElementById( "taskitem-context-menu" ).getEl... | |
ClearCardViewPane(); | function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute('id'); dump(uri + "\n"); ChangeDirectoryByURI(uri); // HACK to clear the card view pane - when onchange="MyOnChangeFunction()" is working // then we can do this correctly ClearCardViewPane();} | |
var resultsTree = document.getElementById('resultsTree'); | function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute('id'); var resultsTree = document.getElementById('resultsTree'); if ( resultsTree ) { if ( uri != resultsTree.getAttribute('ref') ) { ClearResultsTreeSelection(); resultsTree.setAttribute('ref', uri); } }} | |
WaitUntilDocumentIsLoaded(); SortToPreviousSettings(); SelectFirstCard(); | function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute('id'); var resultsTree = document.getElementById('resultsTree'); if ( resultsTree ) { if ( uri != resultsTree.getAttribute('ref') ) { ClearResultsTreeSelection(); resultsTree.setAttribute('ref', uri); } }} | |
dump("uri = " + uri + "\n"); | function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute('id'); ChangeDirectoryByURI(uri);} | |
var actualSortColumn = SetAbView(uri, sortColumn, sortDirection); | var actualSortColumn = SetAbView(uri, false, sortColumn, sortDirection); | function ChangeDirectoryByURI(uri){ if (!uri) uri = kPersonalAddressbookURI; if (gAbView && GetAbViewURI() == uri) return; var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection"); var actualSortColumn = SetAbView(uri, ... |
var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection"); var actualSortColumn = SetAbView(uri, false, sortColumn, sortDirection); UpdateSortIndicators(actualSortColumn, sortDirection); | SetAbView(uri, false); | function ChangeDirectoryByURI(uri){ if (!uri) uri = kPersonalAddressbookURI; if (gAbView && GetAbViewURI() == uri) return; var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection"); var actualSortColumn = SetAbView(uri, fa... |
document.getElementById("allowTargetNew").disabled = state; | function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScripts").disabled = state; document.getElementById("allowTargetNew").disabled = state; document.getElementById("allowWindowMoveResize").disabled = stat... | |
outlinerView.setFilter(filterTypes); | treeView.setFilter(filterTypes); | function changeFilter(filterTypes){ window.setCursor("wait"); outlinerView.setFilter(filterTypes); window.setCursor("auto");} |
if ((isThreaded == "") && isNewsURI(uri)) { isThreaded = "true"; } | function ChangeFolderByDOMNode(folderNode){ if (folderNode.getAttribute('NoSelect') == "true" ) { ClearThreadPane(); return; } var uri = folderNode.getAttribute('id'); dump(uri + "\n"); var isThreaded = folderNode.getAttribute('threaded'); var sortResource = folderNode.getAttribute('sortResource'); if(!sortR... | |
if (msgfolder) | if (msgfolder && !msgfolder.isServer) | function ChangeFolderByDOMNode(folderNode){ var uri = folderNode.getAttribute('id'); dump(uri + "\n"); if (!uri) return; var sortType = 0; var sortOrder = 0; var viewFlags = 0; var viewType = 0; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); i... |
showMessagesAfterLoading = !server.isAuthenticated; | showMessagesAfterLoading = server.passwordPromptRequired; | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; // hook for extra toolbar items var observerService = Components.classes["@mozilla.org/observer-service;1"].getSe... |
if (server.redirectorType) { | if (gPrefs.getBoolPref("mail.password_protect_local_cache")) { showMessagesAfterLoading = !server.isAuthenticated; } else if (server.redirectorType) { | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; // hook for extra toolbar items var observerService = Components.classes["@mozilla.org/observer-service;1"].getSe... |
SetUpToolbarButtons(uri); | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; // hook for extra toolbar items var observerService = Components.classes["@mozilla.org/observer-service;1"].getSe... | |
document.commandDispatcher.updateCommands('mail-toolbar'); | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFol... | |
} else { if (msgfolder.server.displayStartupPage) { gDisplayStartupPage = true; msgfolder.server.displayStartupPage = false; } | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection, viewType){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleF... | |
if (showPerformance) { gBeforeFolderLoadTime = new Date(); } | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFol... | |
node = document.getElementById("fileAttachmentMenu"); | var node = document.getElementById("fileAttachmentMenu"); | function ChangeMessagePaneVisibility(now_hidden){ // we also have to hide the File/Attachments menuitem node = document.getElementById("fileAttachmentMenu"); if (node) node.hidden = now_hidden; if (gDBView) { // the collapsed state is the state after we released the mouse // so we take it as it is gDBV... |
node = document.getElementById("fileAttachmentMenu"); if (node) node.hidden = now_hidden; | function ChangeMessagePaneVisibility(now_hidden){ if (gDBView) { // the collapsed state is the state after we released the mouse // so we take it as it is gDBView.suppressMsgDisplay = now_hidden; } var event = document.createEvent('Events'); if (now_hidden) { event.initEvent('messagepane-hide', false, ... | |
gDS.Change(mimeSource, valueProperty, currentValue, mimeLiteral); | if (currentValue) { gDS.Change(mimeSource, valueProperty, currentValue, mimeLiteral); } else { gDS.Assert(mimeSource, valueProperty, mimeLiteral, true); } | function changeMIMEStuff(aMIMEString, aPropertyString, aValueString){ var mimeSource = gRDF.GetResource(aMIMEString); var valueProperty = gRDF.GetResource(NC_RDF(aPropertyString)); var mimeLiteral = gRDF.GetLiteral(aValueString); var currentValue = gDS.GetTarget(mimeSource, valueProperty, true); gDS.Change(mimeSou... |
gCalendarWindow.currentView.refreshEvents( ); | function changeOnlyWorkdayCheckbox( menuindex ) { var check = document.getElementById( "only-workday-checkbox-" + menuindex ).getAttribute("checked") ; switch(menuindex){ case 1: var changemenu = 2 ; break; case 2: var changemenu = 1 ; break; default: return(false); } if(check == "true") { docu... | |
askEveryTimeHidden.setAttribute("checked",(radiogroup.value == 1)?"true":"false"); | askEveryTimeHidden.checked = (radiogroup.value == 1) ? true : false; | function changePasswordSettings(){ var askTimes = 0; var timeout = internal_token.getAskPasswordTimeout(); var timeoutField = document.getElementById("passwordTimeout"); var radiogroup = document.getElementById("passwordAskTimes"); switch ( radiogroup.value ) { case "0": timeoutField.setAttribute("disabled", ... |
var re = new RegExp("^[0-9]+$"); if (!re.test(timeout)) { timeout = "0"; } | function changePasswordSettings(){ var askTimes = 0; var timeout = internal_token.getAskPasswordTimeout(); var radiogroup = document.getElementById("passwordAskTimes"); switch ( radiogroup.value ) { case "0": askTimes = nsIPK11Token.ASK_FIRST_TIME; break; case "1": askTimes = nsIPK11Token.ASK_EVERY_TIM... | |
allowSelectWord = saveAllow; | function ChangeReplaceWord(){ // Unselect the word in the suggested list when user edits the replacement word dialog.SuggestedList.clearItemSelection();} | |
SetSpanEnable(); | function ChangeSelection(newType){ newType = Number(newType); if (SelectedCellsType == newType) return; if (newType == RESET_SELECTION) // Restore selection to existing focus cell selection.collapse(CellElement,0); else SelectedCellsType = newType; // Keep the same focus CellElement, just change the ty... | |
function ChangeSelection(outliner, newIndex) | function ChangeSelection(tree, newIndex) | function ChangeSelection(outliner, newIndex){ if(newIndex >= 0) { outliner.outlinerBoxObject.selection.select(newIndex); outliner.outlinerBoxObject.ensureRowIsVisible(newIndex); }} |
outliner.outlinerBoxObject.selection.select(newIndex); outliner.outlinerBoxObject.ensureRowIsVisible(newIndex); | tree.treeBoxObject.selection.select(newIndex); tree.treeBoxObject.ensureRowIsVisible(newIndex); | function ChangeSelection(outliner, newIndex){ if(newIndex >= 0) { outliner.outlinerBoxObject.selection.select(newIndex); outliner.outlinerBoxObject.ensureRowIsVisible(newIndex); }} |
globalElement = CellElement; | function ChangeSelectionToFirstCell(){ if (!GetCellData(0,0)) { dump("Can't find first cell in table!\n"); return; } CellElement = cellData.cell; globalCellElement = CellElement; globalElement = CellElement; curRowIndex = 0; curColIndex = 0; ChangeSelection(RESET_SELECTION);} | |
function ChangeSelectionWithoutContentLoad(event, outliner) | function ChangeSelectionWithoutContentLoad(event, tree) | function ChangeSelectionWithoutContentLoad(event, outliner){ var row = {}; var col = {}; var elt = {}; var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); // make sure that row.valu... |
var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; | var treeBoxObj = tree.treeBoxObject; var treeSelection = treeBoxObj.selection; | function ChangeSelectionWithoutContentLoad(event, outliner){ var row = {}; var col = {}; var elt = {}; var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); // make sure that row.valu... |
outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); | treeBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); | function ChangeSelectionWithoutContentLoad(event, outliner){ var row = {}; var col = {}; var elt = {}; var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); // make sure that row.valu... |
if((row.value >= 0) && !outlinerSelection.isSelected(row.value)) | if((row.value >= 0) && !treeSelection.isSelected(row.value)) | function ChangeSelectionWithoutContentLoad(event, outliner){ var row = {}; var col = {}; var elt = {}; var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); // make sure that row.valu... |
var saveCurrentIndex = outlinerSelection.currentIndex; outlinerSelection.selectEventsSuppressed = true; outlinerSelection.select(row.value); outlinerSelection.currentIndex = saveCurrentIndex; outlinerBoxObj.ensureRowIsVisible(row.value); outlinerSelection.selectEventsSuppressed = false; | var saveCurrentIndex = treeSelection.currentIndex; treeSelection.selectEventsSuppressed = true; treeSelection.select(row.value); treeSelection.currentIndex = saveCurrentIndex; treeBoxObj.ensureRowIsVisible(row.value); treeSelection.selectEventsSuppressed = false; | function ChangeSelectionWithoutContentLoad(event, outliner){ var row = {}; var col = {}; var elt = {}; var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); // make sure that row.valu... |
if(outliner.id == "threadOutliner") | if(tree.id == "threadTree") | function ChangeSelectionWithoutContentLoad(event, outliner){ var row = {}; var col = {}; var elt = {}; var outlinerBoxObj = outliner.outlinerBoxObject; var outlinerSelection = outlinerBoxObj.selection; outlinerBoxObj.getCellAt(event.clientX, event.clientY, row, col, elt); // make sure that row.valu... |
var enable = true; | function ChangeText(){ // Set OK button enable state only if inserting a new link // (allow empty location to remove existing link) if (insertNew) { var enable = true; if (insertLinkAtCaret) enable = dialog.linkTextInput.value.trimString().length > 0; if (enable) enable = dialog.hrefInput.value.t... | |
var enable = true; | function ChangeText(){ // Set OK button enable state only if inserting a new link // (allow empty location to remove existing link) if (insertNew) { var enable = true; if (insertLinkAtCaret) enable = dialog.linkTextInput.value.trimString().length > 0; if (enable) enable = dialog.hrefInput.value.t... | |
SetElementEnabledById( "ok", enable); | function ChangeText(){ // Set OK button enable state only if inserting a new link // (allow empty location to remove existing link) if (insertNew) { var enable = true; if (insertLinkAtCaret) enable = dialog.linkTextInput.value.trimString().length > 0; if (enable) enable = dialog.hrefInput.value.t... | |
SetElementEnabledById( "ok", enable); | function ChangeText(){ // Set OK button enable state only if inserting a new link // (allow empty location to remove existing link) if (insertNew) { var enable = true; if (insertLinkAtCaret) enable = dialog.linkTextInput.value.trimString().length > 0; if (enable) enable = dialog.hrefInput.value.t... | |
SetTemplateTreeItemOpen(false); | function ChangeThreadView(){ var folder = GetSelectedFolder(); var threadColumn = document.getElementById('ThreadColumnHeader'); if(threadColumn) { var currentView = threadColumn.getAttribute('currentView'); if(currentView== 'threaded') { ShowThreads(false); if(folder) folder.setAttribute('threaded', ""); ... | |
folder.setAttribute('threaded', ""); | folder.setAttribute('threaded', "false"); | function ChangeThreadView(){ var folder = GetSelectedFolder(); var threadColumn = document.getElementById('ThreadColumnHeader'); if(threadColumn) { var currentView = threadColumn.getAttribute('currentView'); if(currentView== 'threaded') { ShowThreads(false); if(folder) folder.setAttribute('threaded', ""); ... |
var toDoItem = event.currentTarget.toDo; | var toDoItem = getToDoFromEvent( event ); | function changeToolTipTextForToDo( event ){ var toDoItem = event.currentTarget.toDo; var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = document.createElement( "vbox" ); if (toDoItem.title) { var TitleHtml... |
} | function changeToolTipTextForToDo( event ){ var toDoItem = event.currentTarget.toDo; var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = document.createElement( "vbox" ); if (toDoItem.title) { var TitleHtml... | |
var Html = document.getElementById( "savetip" ); | var Html = document.getElementById( "taskTooltip" ); | function changeToolTipTextForToDo( event ){ var toDoItem = getToDoFromEvent( event ); var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = document.createElement( "vbox" ); if( toDoItem ) { showTooltip = tru... |
writeLineToLog('k = ' + k + ' j = ' + j + ' ' + status); | print('k = ' + k + ' j = ' + j + ' ' + status); | function check(status){ writeLineToLog('k = ' + k + ' j = ' + j + ' ' + status); for (i = 0; i < i2; i++) { if (n[i] != 1) { writeLineToLog('n[' + i + '] = ' + n[i]); if (i != j) { writeLineToLog('Test failed'); err_num++; break; } } }} |
writeLineToLog('n[' + i + '] = ' + n[i]); | print('n[' + i + '] = ' + n[i]); | function check(status){ writeLineToLog('k = ' + k + ' j = ' + j + ' ' + status); for (i = 0; i < i2; i++) { if (n[i] != 1) { writeLineToLog('n[' + i + '] = ' + n[i]); if (i != j) { writeLineToLog('Test failed'); err_num++; break; } } }} |
writeLineToLog('Test failed'); | print('Test failed'); | function check(status){ writeLineToLog('k = ' + k + ' j = ' + j + ' ' + status); for (i = 0; i < i2; i++) { if (n[i] != 1) { writeLineToLog('n[' + i + '] = ' + n[i]); if (i != j) { writeLineToLog('Test failed'); err_num++; break; } } }} |
window.focus(); | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; var title = window.editorShell.editorDocument.title; if (!title) title = GetString("untitled"); var dialogTitle = window.editorShell.GetString("SaveDocument")... | |
function CheckAndSaveDocument(reasonToSave, allowDontSave) | function CheckAndSaveDocument(command, allowDontSave) | function CheckAndSaveDocument(reasonToSave, allowDontSave){ // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true... |
if (!window.editorShell && !window.editorShell.editorDocument) return true; | try { if (!window.editorShell && !window.editorShell.editorDocument) return true; } catch (e) { return true; } | function CheckAndSaveDocument(reasonToSave, allowDontSave){ // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true... |
var dialogTitle = GetString("SaveDocument"); | var dialogTitle = GetString(doPublish ? "PublishPage" : "SaveDocument"); | function CheckAndSaveDocument(reasonToSave, allowDontSave){ // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true... |
var promptFlags = (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) + (allowDontSave ? (promptService.BUTTON_TITLE_DONT_SAVE * promptService.BUTTON_POS_2) : 0); promptService.confirmEx( window, dialogTitle, dialogMsg, promptFlags, null, nul... | var promptFlags = promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1; var button1Title = null; var button3Title = null; if (doPublish) { promptFlags += promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0; button1Title = GetString("Publish"); button3Title = GetString("DontPublish"); } else { p... | function CheckAndSaveDocument(reasonToSave, allowDontSave){ // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true... |
if (doPublish) { gCommandAfterPublishing = command; goDoCommand("cmd_publish"); return false; } | function CheckAndSaveDocument(reasonToSave, allowDontSave){ // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true... | |
if (title.length == 0) | if (!title) | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; var title = window.editorShell.editorDocument.title; if (title.length == 0) var title = GetString("untitled"); var dialogTitle = window.editorShell.Ge... |
if (!editorShell.documentModified) | if (!editorShell.documentModified && !gHTMLSourceChanged) | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit... |
if (result.value == 0) { var success = window.editorShell.saveDocument(false, false, editorShell.contentsMIMEType); return success; } | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit... | |
if (result.value == 2) return true; | if (result.value == 0) { if (gHTMLSourceChanged) FinishHTMLSource(); var success = window.editorShell.saveDocument(false, false, editorShell.contentsMIMEType); return success; } if (result.value == 2) return true; | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit... |
var success = window.editorShell.saveDocument(false, false, "text/html"); | var success = window.editorShell.saveDocument(false, false, window.gDefaultSaveMimeType); | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit... |
result = promptService.confirmEx( window, dialogTitle, dialogMsg, promptFlags, button1Title, null, button3Title, null, {value:0} ); if (result.value == 0) | if (result == 0) | function CheckAndSaveDocument(command, allowDontSave){ try { // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; } catch (e) { return true; } var document = editorShell.editorDocument; if (!editorShell.documentModified ... |
if (result.value == 2) | if (result == 2) | function CheckAndSaveDocument(command, allowDontSave){ try { // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; } catch (e) { return true; } var document = editorShell.editorDocument; if (!editorShell.documentModified ... |
if(attName.toLowerCase() == attArray[i].toLowerCase()) return false; | if (attName.toLowerCase() == attArray[i].toLowerCase()) return true; | function CheckAttributeNameSimilarity(attName, attArray){ for(var i = 0; i < attArray.length; i++) { if(attName.toLowerCase() == attArray[i].toLowerCase()) return false; } return true;} |
return true; | return false; | function CheckAttributeNameSimilarity(attName, attArray){ for(var i = 0; i < attArray.length; i++) { if(attName.toLowerCase() == attArray[i].toLowerCase()) return false; } return true;} |
var calendar = getCalendar(); calendar.modifyItem (newTodo, null); | var ccalendar = getDisplayComposite(); ccalendar.modifyItem (newTodo, null); | function checkboxClick(thisTodo, completed){ var newTodo = thisTodo.clone().QueryInterface(Components.interfaces.calITodo); if(completed) { newTodo.completedDate.jsDate = new Date(); newTodo.percentComplete = 100; } else { newTodo.completedDate.reset(); if (newTodo.percentComplete =... |
function checkboxClick( event ) | function checkboxClick( ThisToDo, completed ) | function checkboxClick( event ){ // var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; var ThisToDo = event.currentTarget.toDo; if( event.target.getElementsByTagName( "checkbox" )[0].checked == true ) { var completedTime = new Date(); ThisToDo.completed.setTime( completedTime ); ... |
var ThisToDo = event.currentTarget.toDo; if( event.target.getElementsByTagName( "checkbox" )[0].checked == true ) | if( completed ) | function checkboxClick( event ){ // var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; var ThisToDo = event.currentTarget.toDo; if( event.target.getElementsByTagName( "checkbox" )[0].checked == true ) { var completedTime = new Date(); ThisToDo.completed.setTime( completedTime ); ... |
newTodo.completedDate.jsDate = new Date(); | newTodo.completedDate = jsDateToDateTime(new Date()); | function checkboxClick(thisTodo, completed){ var newTodo = thisTodo.clone().QueryInterface(Components.interfaces.calITodo); if(completed) { newTodo.completedDate.jsDate = new Date(); newTodo.percentComplete = 100; } else { newTodo.completedDate.reset(); if (newTodo.percentComplete =... |
newTodo.completedDate.reset(); | newTodo.completedDate = null; | function checkboxClick(thisTodo, completed){ var newTodo = thisTodo.clone().QueryInterface(Components.interfaces.calITodo); if(completed) { newTodo.completedDate.jsDate = new Date(); newTodo.percentComplete = 100; } else { newTodo.completedDate.reset(); if (newTodo.percentComplete =... |
var startDate = Math.floor(document.getElementById( "start-date-picker" ).value.getTime()/86400000); var endDate = Math.floor(document.getElementById( "end-date-picker" ).value.getTime()/86400000); | var startDate = document.getElementById( "start-date-picker" ).value; var endDate = document.getElementById( "end-date-picker" ).value; | function checkEndDate(){ // Bad to get into floats. var startDate = Math.floor(document.getElementById( "start-date-picker" ).value.getTime()/86400000); var endDate = Math.floor(document.getElementById( "end-date-picker" ).value.getTime()/86400000); if( startDate.getFullYear() == endDate.getFullYear() && ... |
if (network.list.count == network.list.lastLength) | if (network._list.count == network._list.lastLength) | function checkEndList (network) { if (network.list.count == network.list.lastLength) { network.on323(); } else { network.list.lastLength = network.list.count; network.list.endTimeout = setTimeout(checkEndList, 5000, network); ... |
network.list.lastLength = network.list.count; network.list.endTimeout = | network._list.lastLength = network._list.count; network._list.endTimeout = | function checkEndList (network) { if (network.list.count == network.list.lastLength) { network.on323(); } else { network.list.lastLength = network.list.count; network.list.endTimeout = setTimeout(checkEndList, 5000, network); ... |
if( gEvent.end < gEvent.start && !AllDayEvent ) | if( gEndDate.getTime() < gStartDate.getTime() && !AllDayEvent ) | function checkEndTime(){ var AllDayEvent = getFieldValue( "all-day-event-checkbox", "checked" ); if( gEvent.end < gEvent.start && !AllDayEvent ) { return( true ); } else { return( false ); }} |
var strDefaultSearchEngineName = parent.hPrefWindow.pref.getLocalizedUnicharPref("browser.search.defaultenginename"); | var prefInt = null; var strDefaultSearchEngineName; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); strDefaultSearchEngineName = prefInt.getLocalizedUnicharPref("browser.search.defaultenginename"); } | function checkEngine(){ var engineList = document.getElementById("engineList"); var engineValue = engineList.label; //nothing is selected if (!engineValue) { try { var strDefaultSearchEngineName = parent.hPrefWindow.pref.getLocalizedUnicharPref("browser.search.defaultenginename"); var engineL... |
var updateTypes = Components.classes["@mozilla.org/supports-PRUint8;1"]. createInstance(Components.interfaces.nsISupportsPRUint8); updateTypes.data = Components.interfaces.nsIUpdateItem.TYPE_ADDON; var showMismatch = Components.classes["@mozilla.org/supports-PRBool;1"]. createInstance(Components.interfaces.nsISupportsP... | var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]. getService(Components.interfaces.nsIWindowMediator); var manager = wm.getMostRecentWindow("Extension:Manager-extensions"); if (!manager) { const features = "chrome,centerscreen,dialog,titlebar"; const URI_EXTENSIONS_WINDOW = "chrome: openDialog(URI... | checkForAddonUpdates: function () { var updateTypes = Components.classes["@mozilla.org/supports-PRUint8;1"]. createInstance(Components.interfaces.nsISupportsPRUint8); updateTypes.data = Components.interfaces.nsIUpdateItem.TYPE_ADDON; var showMismatch = Components.classes["@mozilla.org... |
function checkForDirectoryListing() { if ( 'HTTPIndex' in window._content && typeof window._content.HTTPIndex == "object" && !window._content.HTTPIndex.constructor ) { window._content.defaultCharacterset = appCore.GetDocumentCharset(); window._content.parentWindow = window; } | function checkForDirectoryListing() { if ("HTTPIndex" in _content && typeof _content.HTTPIndex == "object" && !_content.HTTPIndex.constructor) { _content.defaultCharacterset = getBrowser().markupDocumentViewer.defaultCharacterSet; _content.parentWindow = window; } | function checkForDirectoryListing() { if ( 'HTTPIndex' in window._content && typeof window._content.HTTPIndex == "object" && !window._content.HTTPIndex.constructor ) { // Give directory .xul/.js access to browser instance. window._content.defaultCharacterset = appCore.Ge... |
_content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet; | _content.defaultCharacterset = getBrowser().docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer).defaultCharacterSet; | function checkForDirectoryListing(){ if ("HTTPIndex" in _content && typeof _content.HTTPIndex == "object" && !_content.HTTPIndex.constructor) { _content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet; _content.parentWindow = window; }} |
if (this.errorOnGeneric || this.errorItems.length > 0) | if (this.errorItems.length > 0) | checkForErrors: function (aElementIDToShow) { if (this.errorOnGeneric || this.errorItems.length > 0) document.getElementById(aElementIDToShow).hidden = false; }, |
function checkForImage(elem, htmltagname) | function checkForImage(elem, htmllocalname) | function checkForImage(elem, htmltagname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) if (htmltagname === "img") { img = elem; imgType = ... |
if (htmltagname === "img") { | if (htmllocalname === "img") { | function checkForImage(elem, htmltagname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) if (htmltagname === "img") { img = elem; imgType = ... |
} else if (htmltagname === "object" && | } else if (htmllocalname === "object" && | function checkForImage(elem, htmltagname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) if (htmltagname === "img") { img = elem; imgType = ... |
} else if (htmltagname === "input" && | } else if (htmllocalname === "input" && | function checkForImage(elem, htmltagname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) if (htmltagname === "img") { img = elem; imgType = ... |
} else if (htmltagname === "area" || htmltagname === "a") { | } else if (htmllocalname === "area" || htmllocalname === "a") { | function checkForImage(elem, htmltagname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) if (htmltagname === "img") { img = elem; imgType = ... |
function checkForImage() { image = document.getElementById( "image.srcInput" ).value; | function checkForImage() { image = dialog.srcInput.value.trimString(); | function checkForImage() { image = document.getElementById( "image.srcInput" ).value; if ( !image ) return 0; /* look for an extension */ var tailindex = image.lastIndexOf("."); if ( tailindex == 0 || tailindex == -1 ) /* -1 is not found */ return 0; ... |
function checkForInsDel(elem, htmltagname) | function checkForInsDel(elem, htmllocalname) | function checkForInsDel(elem, htmltagname){ if ((htmltagname === "ins" || htmltagname === "del") && (elem.cite || elem.dateTime)) { setInfo("insdel-cite", getAbsoluteURL(elem.cite, elem)); setInfo("insdel-date", elem.dateTime); onInsDel = true; } } |
if ((htmltagname === "ins" || htmltagname === "del") && | if ((htmllocalname === "ins" || htmllocalname === "del") && | function checkForInsDel(elem, htmltagname){ if ((htmltagname === "ins" || htmltagname === "del") && (elem.cite || elem.dateTime)) { setInfo("insdel-cite", getAbsoluteURL(elem.cite, elem)); setInfo("insdel-date", elem.dateTime); onInsDel = true; } } |
setupWizardPanels(); document.documentElement.pageIndex = 1; | function checkForInvalidAccounts(){ var firstInvalidAccount = getFirstInvalidAccount(); if (firstInvalidAccount) { var pageData = GetPageData(); dump("We have an invalid account, " + firstInvalidAccount + ", let's use that!\n"); gCurrentAccount = firstInvalidAccount; // there's a possibil... | |
dump("Invalid account: trying to get ISP data for " + identity.email + "\n"); var accountData = getIspDefaultsForEmail(identity.email); dump("Invalid account: Got " + accountData + "\n"); accountData = AccountToAccountData(firstInvalidAccount, accountData); | var accountData = null; if (identity.email) { dump("Invalid account: trying to get ISP data for " + identity.email + "\n"); accountData = getIspDefaultsForEmail(identity.email); dump("Invalid account: Got " + accountData + "\n"); accountData = AccountToAccountData(firstInvalidAccount, accountData); } else { account... | function checkForInvalidAccounts(){ var firstInvalidAccount = getFirstInvalidAccount(); if (firstInvalidAccount) { var pageData = GetPageData(); dump("We have an invalid account, " + firstInvalidAccount + ", let's use that!\n"); gCurrentAccount = firstInvalidAccount; // there's a possibil... |
function checkForLang(elem, htmltagname) | function checkForLang(elem, htmllocalname) | function checkForLang(elem, htmltagname){ if ((htmltagname && elem.lang) || elem.getAttributeNS(XMLNS, "lang")) { var abbr; if (htmltagname && elem.lang) abbr = elem.lang; else abbr = elem.getAttributeNS(XMLNS, "lang"); setInfo("misc-lang", convertLanguag... |
if ((htmltagname && elem.lang) || elem.getAttributeNS(XMLNS, "lang")) { | if ((htmllocalname && elem.lang) || elem.getAttributeNS(XMLNS, "lang")) { | function checkForLang(elem, htmltagname){ if ((htmltagname && elem.lang) || elem.getAttributeNS(XMLNS, "lang")) { var abbr; if (htmltagname && elem.lang) abbr = elem.lang; else abbr = elem.getAttributeNS(XMLNS, "lang"); setInfo("misc-lang", convertLanguag... |
if (htmltagname && elem.lang) | if (htmllocalname && elem.lang) | function checkForLang(elem, htmltagname){ if ((htmltagname && elem.lang) || elem.getAttributeNS(XMLNS, "lang")) { var abbr; if (htmltagname && elem.lang) abbr = elem.lang; else abbr = elem.getAttributeNS(XMLNS, "lang"); setInfo("misc-lang", convertLanguag... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.