rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
{
function doFind(){ gDatasourceName = ""; gMatchName = ""; gMethodName = ""; gTextName = ""; // get RDF datasource to query var datasourceNode = document.getElementById("datasource"); if (!datasourceNode) return(false); var x = datasourceNode.selectedIndex; if (x < 0) return(false); var datasource = datasourceNode.opti...
}
function doFind(){ gDatasourceName = ""; gMatchName = ""; gMethodName = ""; gTextName = ""; // get RDF datasource to query var datasourceNode = document.getElementById("datasource"); if (!datasourceNode) return(false); var x = datasourceNode.selectedIndex; if (x < 0) return(false); var datasource = datasourceNode.opti...
return aWalker.currentNode && "id" in aWalker.currentNode && re.test(aWalker.currentNode.id);
var node = aWalker.currentNode; if (!node) return false; if (node.nodeType != Components.interfaces.nsIDOMNode.ELEMENT_NODE) return false; for (var i = 0; i < node.attributes.length; i++) { var attr = node.attributes[i]; if (attr.isId && re.test(attr.nodeValue)) { return true; } } return false;
doFindElementById: function(aWalker) { var re = new RegExp(this.mFindParams[0], "i"); return aWalker.currentNode && "id" in aWalker.currentNode && re.test(aWalker.currentNode.id); },
target = target.QueryInterface(Components.interfaces.nsIRDFResource);
var link = sourceDS.GetTarget(target, NC_LINK, true);
function doFindOnSeq(resultsDS, sourceDS, resource, level) { // load up an RDFContainer so we can access the contents of the current // rdf:seq. RDFContainer.Init(sourceDS, resource); var targets = RDFContainer.GetElements(); while (targets.hasMoreElements()) { var target = targets.getNext(); ...
if (isMatch(name.Value)) {
if (link && isMatch(name.Value)) {
function doFindOnSeq(resultsDS, sourceDS, resource, level) { // load up an RDFContainer so we can access the contents of the current // rdf:seq. RDFContainer.Init(sourceDS, resource); var targets = RDFContainer.GetElements(); while (targets.hasMoreElements()) { var target = targets.getNext(); ...
var link = sourceDS.GetTarget(target, NC_LINK, true); link = link.QueryInterface(Components.interfaces.nsIRDFLiteral); urnID++; resultsDS.Assert(RDF_ROOT, RDF.GetResource("http: RDF.GetResource("urn:" + urnID), true); resultsDS.Assert(RDF.GetResource("urn:" + urnID), RDF.GetResource("http: name, true); resultsDS.Asser...
function doFindOnSeq(resultsDS, sourceDS, resource, level) { // load up an RDFContainer so we can access the contents of the current // rdf:seq. RDFContainer.Init(sourceDS, resource); var targets = RDFContainer.GetElements(); while (targets.hasMoreElements()) { var target = targets.getNext(); ...
target = target.QueryInterface(Components.interfaces.nsIRDFResource);
var link = sourceDS.GetTarget(target, NC_LINK, true);
function doFindOnSeq(resultsDS, sourceDS, resource, level) { // load up an RDFContainer so we can access the contents of the current rdf:seq. RDFContainer.Init(sourceDS, resource); var targets = RDFContainer.GetElements(); while (targets.hasMoreElements()) { var target = targets.getNext(); targe...
if (isMatch(name.Value)) {
if (link && isMatch(name.Value)) {
function doFindOnSeq(resultsDS, sourceDS, resource, level) { // load up an RDFContainer so we can access the contents of the current rdf:seq. RDFContainer.Init(sourceDS, resource); var targets = RDFContainer.GetElements(); while (targets.hasMoreElements()) { var target = targets.getNext(); targe...
var link = sourceDS.GetTarget(target, NC_LINK, true); link = link.QueryInterface(Components.interfaces.nsIRDFLiteral); urnID++; resultsDS.Assert(RDF_ROOT, RDF.GetResource("http: RDF.GetResource("urn:" + urnID), true); resultsDS.Assert(RDF.GetResource("urn:" + urnID), RDF.GetResource("http: name, true); resultsDS.Asser...
var urn = RDF.GetAnonymousResource(); resultsDS.Assert(urn, NC_NAME, name, true); resultsDS.Assert(urn, NC_LINK, link, true); resultsDS.Assert(RDF_ROOT, NC_CHILD, urn, true);
function doFindOnSeq(resultsDS, sourceDS, resource, level) { // load up an RDFContainer so we can access the contents of the current rdf:seq. RDFContainer.Init(sourceDS, resource); var targets = RDFContainer.GetElements(); while (targets.hasMoreElements()) { var target = targets.getNext(); targe...
document.getElementById("browserleftbar").collapsed = gFullScreen;
function DoFullScreen(){ gFullScreen = !gFullScreen; document.getElementById("nav-bar").hidden = gFullScreen; // Is this the simpler approach to count tabs? if(gBrowser.mPanelContainer.childNodes.length>1) { gBrowser.setStripVisibilityTo(!gFullScreen); } window.fullScreen = gFullScreen; }
getBrowser().setStripVisibilityTo(!gFullScreen);
if(getBrowser().mPanelContainer.childNodes.length==1) { getBrowser().setStripVisibilityTo(!gFullScreen); }
function DoFullScreen(){ gFullScreen = !gFullScreen; document.getElementById("nav-bar").hidden = gFullScreen; getBrowser().setStripVisibilityTo(!gFullScreen); window.fullScreen = gFullScreen; document.getElementById("nav-bar-contextual").hidden = !gFullScreen; }
function doGrab(iterator, i)
function doGrab(iterator)
function doGrab(iterator, i){ if (iterator.nextNode()) setTimeout(doGrab, 1, iterator, i);}
setTimeout(doGrab, 1, iterator, i);
{ setTimeout(doGrab, 1, iterator); }
function doGrab(iterator, i){ if (iterator.nextNode()) setTimeout(doGrab, 1, iterator, i);}
subsrc = document.getElementById("panelFrame").getAttribute("src");
var subsrc = document.getElementById("panelFrame").getAttribute("src");
function doHelpButton() { subsrc = document.getElementById("panelFrame").getAttribute("src"); if ( fm[subsrc] ) { openHelp(gHelpURL + fm[subsrc]); } else { openHelp(gHelpURL + '?prefs'); }}
if (helpTag == "mail") {
if ((helpTag == "mail") || (helpTag == "mail-offline-accounts")) {
function doHelpButton() { // Get the URI of the page loaded in the AccountManager's content frame. var pageSourceURI = document.getElementById("contentFrame").getAttribute("src"); // Get the help tag corresponding to the page loaded. var helpTag = pageTagPairs[pageSourceURI]; // If the help tag is generic, check i...
openHelp('validation_prefs');
openHelp("validation-crl-import");
function doHelpButton(){ openHelp('validation_prefs');}
openHelp('validation_prefs');
openHelp("validation-crl-auto-update-prefs");
function doHelpButton(){ openHelp('validation_prefs');}
return false;
function doHelpButton(){ // implement help}
doSetOKCancel(Commit);
function doLoad(){ doSetOKCancel(Commit); // adjust category popup var internetSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService(); if (internetSearch) internetSearch = internetSearch.QueryInterface(Components.interfaces.nsIInternetSearchService); if (internetSearch) { ...
var internetSearch = Components.classes["component:
var internetSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService();
function doLoad(){ doSetOKCancel(Commit); // adjust category popup var internetSearch = Components.classes["component://netscape/rdf/datasource?name=internetsearch"].getService(); if (internetSearch) internetSearch = internetSearch.QueryInterface(Components.interfaces.nsIInternetSearchService); if (internetSearch) {...
var pref = Components.classes["component:
var pref = Components.classes["@mozilla.org/preferences;1"].getService();
function doLoad(){ doSetOKCancel(Commit); // adjust category popup var internetSearch = Components.classes["component://netscape/rdf/datasource?name=internetsearch"].getService(); if (internetSearch) internetSearch = internetSearch.QueryInterface(Components.interfaces.nsIInternetSearchService); if (internetSearch) {...
alert("failed to login");
var alertStr = bundle.GetStringFromName("login_failed"); alert(alertStr);
function doLogin(){ getSelectedItem(); // here's the workaround - login functions are with token var selected_token = selected_slot.getToken(); try { selected_token.login(false); var tok_status = document.getElementById("tok_status"); if (selected_token.isLoggedIn()) { tok_status.setAttribute("label",...
if (commonDialogsService) commonDialogsService.Alert(window, errorTitle, errorMessage);
if (promptService) promptService.Alert(window, errorTitle, errorMessage);
function DomainAlreadyPresent(obj, domain_name, dup){ var errorTitle; var errorMsg; var pref_string = obj.domain_pref.getAttribute('label'); var found = false; try { var arrayOfPrefs = pref_string.split(','); if (arrayOfPrefs) for (var i = 0; i < arrayOfPrefs.length; i++) { var str = arrayOfPrefs...
var pref = Components.classes["component:
var pref = Components.classes["@mozilla.org/preferences;1"];
function DomainInSkipList(sDomain){ var bSkipDomainFlag = false; if ('/' == sDomain[sDomain.length - 1]) { sDomain = sDomain.substring(0, sDomain.length - 1); } try { var pref = Components.classes["component://netscape/preferences"]; if (pref) pref = pref.getService(); if (pref) pref = pref.QueryInterface(Component...
if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) {
if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) {
domManip: function(args, table, dir, fn){ var clone = this.size() > 1; var a = jQuery.clean(args); return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.c...
for ( var i=0; i < a.length; i++ )
for ( var i = 0, al = a.length; i < al; i++ )
domManip: function(args, table, dir, fn){ var clone = this.length > 1; var a = jQuery.clean(args); if ( dir < 0 ) a.reverse(); return this.each(function(){ var obj = this; if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() == "TR" ) obj = this.getElementsByTagName("tbody"...
if ( table && this.nodeName == "TABLE" ) {
if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) {
domManip: function(args, table, dir, fn){ var clone = this.size() > 1; var a = jQuery.clean(args); return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); ...
i != ( dir < 0 ? dir : a.length ); i += dir ) fn.apply( obj, [ a[i] ] );
i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); }
domManip: function(args, table, dir, fn){ var clone = this.size() > 1; var a = jQuery.clean(args); return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); ...
$.fn.domManip = function(fn){ return this.each(function(){ var obj = this;
domManip: function(fn){ return this.each(function(){ var obj = this; if ( this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody");
$.fn.domManip = function(fn){ return this.each(function(){ var obj = this; if ( this.nodeName == 'TABLE' ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } $.apply( obj, fn ); });};
if ( this.nodeName == 'TABLE' ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } $.apply( obj, fn ); }); };
if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } fn.apply( obj ); }); }
$.fn.domManip = function(fn){ return this.each(function(){ var obj = this; if ( this.nodeName == 'TABLE' ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } $.apply( obj, fn ); });};
gBrowser.hideMessage(null, "top");
gBrowser.getNotificationBox().removeCurrentNotification();
dontShowMessage: function () { var showMessage = gPrefService.getBoolPref("privacy.popups.showBrowserMessage"); var firstTime = gPrefService.getBoolPref("privacy.popups.firstTime"); // If the info message is showing at the top of the window, and the user has never // hidden the message before, show an in...
if (data.scriptData["allowWindowOpenChanged"].value){ parent.hPrefWindow.setPref("bool", "dom.disable_open_during_load", !getCheckboxValue('allowWindowOpen')); }
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
if (data.scriptData["allowHideStatusBarChanged"].value) { parent.hPrefWindow.setPref("bool", "dom.disable_window_open_feature.status", !getCheckboxValue("allowHideStatusBar")); }
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
function setCapabilityPolicy(prefName, checkboxValue){ if (checkboxValue){ try { parent.hPrefWindow.pref.ClearUserPref(prefName); } catch (e) {} } else { parent.hPrefWindow.setPref("string", prefName, "noAccess"); } }
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
var allowWindowMoveResize = getCheckboxValue("allowWindowMoveResize"); setCapabilityPolicy("capability.policy.default.Window.resizeTo", allowWindowMoveResize); setCapabilityPolicy("capability.policy.default.Window.innerWidth.set", allowWindowMoveResize); setCapabilityPolicy("capability.policy.default.Window.innerHeigh...
parent.hPrefWindow.setPref("bool", "dom.disable_window_move_resize", !getCheckboxValue('allowWindowMoveResize'));
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
var allowWindowStatusChange = getCheckboxValue("allowWindowStatusChange"); setCapabilityPolicy("capability.policy.default.Window.status", allowWindowStatusChange); setCapabilityPolicy("capability.policy.default.Window.defaultStatus", allowWindowStatusChange);
parent.hPrefWindow.setPref("bool", "dom.disable_window_status_change", !getCheckboxValue("allowWindowStatusChange"));
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
setCapabilityPolicy("capability.policy.default.Window.focus", getCheckboxValue("allowWindowFlip"));
parent.hPrefWindow.setPref("bool", "dom.disable_window_flip", !getCheckboxValue("allowWindowFlip"));
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
setCapabilityPolicy("capability.policy.default.HTMLDocument.cookie.set", getCheckboxValue("allowDocumentCookieSet"));
parent.hPrefWindow.setPref("bool", "dom.disable_cookie_set", !getCheckboxValue("allowDocumentCookieSet"));
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
setCapabilityPolicy("capability.policy.default.HTMLDocument.cookie.get", getCheckboxValue("allowDocumentCookieGet"));
parent.hPrefWindow.setPref("bool", "dom.disable_cookie_get", !getCheckboxValue("allowDocumentCookieGet"));
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
setCapabilityPolicy("capability.policy.default.HTMLImageElement.src", getCheckboxValue("allowImageSrcChange"));
parent.hPrefWindow.setPref("bool", "dom.disable_image_src_set", !getCheckboxValue("allowImageSrcChange"));
function doOnOk(){ //If a user makes a change to this panel, goes to another panel, and returns to this panel to //make another change, then we cannot use data[elementName]. This is because data[elementName] //contains the original xul change and we would loose the new change. Thus we track all changes //by usin...
if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked);
function setCapabilityPolicy(prefName, checkboxValue){ if (checkboxValue){ try { parent.hPrefWindow.pref.ClearUserPref(prefName); } catch (e) {} } else { parent.hPrefWindow.setPref("string", prefName, "noAccess"); }
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked;
var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome: if (data.scriptData["allowWindowOpenChanged"].value){ parent.hPrefWindow.setPref("bool", "dom.disable_open_during_load", !getCheckboxValue('allowWindowOpen')); } if (data.scriptData["allowWindowMoveResizeChanged"].value){ var myValue = getCheckboxValue("...
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
if (allowWindowStatusChangeChanged){
if (data.scriptData["allowWindowStatusChangeChanged"].value){
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
document.getElementById("allowWindowStatusChange").checked);
getCheckboxValue("allowWindowStatusChange"));
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
if (allowWindowFlipChanged){
if (data.scriptData["allowWindowFlipChanged"].value){
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
document.getElementById("allowWindowFlip").checked);
getCheckboxValue("allowWindowFlip"));
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
if (allowDocumentCookieSetChanged){
if (data.scriptData["allowDocumentCookieSetChanged"].value){
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
document.getElementById("allowDocumentCookieSet").checked);
getCheckboxValue("allowDocumentCookieSet"));
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
if (allowDocumentCookieGetChanged){
if (data.scriptData["allowDocumentCookieGetChanged"].value){
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
document.getElementById("allowDocumentCookieGet").checked);
getCheckboxValue("allowDocumentCookieGet"));
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
if (allowImageSrcChangeChanged){
if (data.scriptData["allowImageSrcChangeChanged"].value){
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
document.getElementById("allowImageSrcChange").checked);
getCheckboxValue("allowImageSrcChange"));
function doOnOk(){ if (allowWindowOpenChanged){ pref.SetBoolPref("dom.disable_open_during_load", !document.getElementById("allowWindowOpen").checked); } if (allowWindowMoveResizeChanged){ var myValue = document.getElementById("allowWindowMoveResize").checked; setCapabilityPolicy("capability.policy.default....
var newPrefValue = document.getElementById("startupPage").value;
var newPrefValue; try { newPrefValue = gData.navigatorData["startupPage"].value; } catch(ex) { gData = parent.hPrefWindow.wsm.dataManager .pageData["chrome: newPrefValue = gData.navigatorData["startupPage"].value; }
function doOnOk(){ var newPrefValue = document.getElementById("startupPage").value; if (gData.navigatorData["startupPage"].changed) { // if our home page isn't the last page visited anymore, // set the last_page_visited to "" for privacy reasons. if (gData.navigatorData["startupPage"].originalValue == 2) { ...
window.close();
function doOpen(){ try { var localFile = targetFile.QueryInterface(Components.interfaces.nsILocalFile); if (localFile) localFile.launch(); } catch (ex) {}}
window.close();
function doOpenFolder(){ try { var localFile = targetFile.QueryInterface(Components.interfaces.nsILocalFile); if (localFile) localFile.reveal(); } catch (ex) {}}
canEnableAll = (dialog.srcInput.value.length > 0);
canEnableAll = imageType;
function doOverallEnabling(){ var canEnableAll; canEnableAll = (dialog.srcInput.value.length > 0); if ( wasEnableAll == canEnableAll ) return; wasEnableAll = canEnableAll; btn = document.getElementById("OK"); if ( btn ) { btn.disabled = (!canEnableAll && hasAnyChanged); }...
customradio = document.getElementById( "customsizeRadio" ); if(customradio.checked){ SetElementEnabledByID("heightunitSelect", canEnableAll ); SetElementEnabledByID("widthunitSelect", canEnableAll ); }
function doOverallEnabling(){ var canEnableAll; canEnableAll = (dialog.srcInput.value.length > 0); if ( wasEnableAll == canEnableAll ) return; wasEnableAll = canEnableAll; btn = document.getElementById("OK"); if ( btn ) { btn.disabled = (!canEnableAll && hasAnyChanged); }...
dump("doOverallEnabling called\n");
function doOverallEnabling(){dump("doOverallEnabling called\n"); var imageTypeExtension = checkForImage(); var canEnableAll = imageTypeExtension != 0; if ( wasEnableAll == canEnableAll ) return; wasEnableAll = canEnableAll; SetElementEnabledByID("ok", canEnableAll ); SetElementEnabledByID( "altTextLabe...
var pos;
function doPopup(popup) { if (client.inputPopup && client.inputPopup != popup) client.inputPopup.hidePopup(); client.inputPopup = popup; if (popup) { var box = el.boxObject; if (!box) box = el.ownerDocument.getBoxObjectFor(el); ...
var rdf = Components.classes["component:
var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();
function doResultClick(node){ var theID = node.id; if (!theID) return(false); try { var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); if (rdf) rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf) { var internetSearchStore = rdf.GetDataSource("rdf:internetsearc...
dump("*** navWindow = " + navWindow + "\n");
function doSearch(){ var searchButton = document.getElementById("searchbutton"); if ( searchButton.getAttribute("disabled") ) { var sidebarSearchText = document.getElementById("sidebar-search-text"); sidebarSearchText.focus(); return; } //get click count pref for later //and set tree attribute to c...
if( parent.content.isMozillaSearchWindow ) { colNode = parent.content.document.getElementById("RelevanceColumn");
if( parent._content.isMozillaSearchWindow ) { colNode = parent._content.document.getElementById("RelevanceColumn");
function doSearch(){ var searchButton = document.getElementById("searchbutton"); if ( searchButton.getAttribute("disabled") ) { var sidebarSearchText = document.getElementById("sidebar-search-text"); sidebarSearchText.focus(); return; } //get click count pref for later //and set tree attribute to...
colNode = parent.content.document.getElementById("PriceColumn");
colNode = parent._content.document.getElementById("PriceColumn");
function doSearch(){ var searchButton = document.getElementById("searchbutton"); if ( searchButton.getAttribute("disabled") ) { var sidebarSearchText = document.getElementById("sidebar-search-text"); sidebarSearchText.focus(); return; } //get click count pref for later //and set tree attribute to...
colNode = parent.content.document.getElementById("AvailabilityColumn");
colNode = parent._content.document.getElementById("AvailabilityColumn");
function doSearch(){ var searchButton = document.getElementById("searchbutton"); if ( searchButton.getAttribute("disabled") ) { var sidebarSearchText = document.getElementById("sidebar-search-text"); sidebarSearchText.focus(); return; } //get click count pref for later //and set tree attribute to...
var checkedFlag = false; var checkbox = treeItem.firstChild.firstChild.firstChild; if ( checkbox.checked == true || checkbox.getAttribute("checked") == "1") checkedFlag = true;
var checkbox = treeItem.firstChild.firstChild.firstChild; var checkedFlag = checkbox.checked;
function doSearch(){ //get click count pref for later //and set tree attribute to cause proper results appearance (like links) to happen //when user set pref to single click try { if( pref ) { var prefvalue = pref.GetBoolPref( "browser.search.use_double_clicks" ); var mClickCount = prefvalue ? 2 : 1; ...
var isupports = Components.classes[XULSORTSERVICE_PROGID].getService();
var isupports = Components.classes[XULSORTSERVICE_CONTRACTID].getService();
function doSort(sortColName){ var node = document.getElementById(sortColName); if (!node) return(false); // determine column resource to sort on var sortResource = node.getAttribute('resource'); // switch between ascending & descending sort (no natural order support) var sortDirection="ascending"; var isSortActive = no...
var isupports = Components.classes["component:
var isupports = Components.classes["@mozilla.org/rdf/xul-sort-service;1"].getService();
function doSort(sortColName, naturalOrderResource){ var node = document.getElementById(sortColName); // determine column resource to sort on var sortResource = node.getAttribute('resource'); if (!sortResource) return(false); var sortDirection="ascending"; var isSortActive = node.getAttribute('sortActive'); if (isSortAc...
var isupports = Components.classes["component:
var isupports = Components.classes["@mozilla.org/rdf/xul-sort-service;1"].getService();
function DoSort(column, key, direction){ var isupports = Components.classes["component://netscape/rdf/xul-sort-service"].getService(); if (!isupports) return(false); var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService); if (!xulSortService) return(false); var node = document.get...
window._content.focus();
gContentWindow.focus();
function doStatefulCommand(commandID, newState){ var commandNode = document.getElementById(commandID); if (commandNode) commandNode.setAttribute("state", newState); window._content.focus(); // needed for command dispatch to work goDoCommand(commandID);}
var resultsTree = top.content.document.getElementById("internetresultstree");
var resultsTree = top._content.document.getElementById("internetresultstree");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
var colNode = top.content.document.getElementById("PriceColumn");
var colNode = top._content.document.getElementById("PriceColumn");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
top.content.setInitialSort(colNode, "ascending");
top._content.setInitialSort(colNode, "ascending");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
colNode = top.content.document.getElementById("AvailabilityColumn");
colNode = top._content.document.getElementById("AvailabilityColumn");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
colNode = top.content.document.getElementById("DateColumn");
colNode = top._content.document.getElementById("DateColumn");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
colNode = top.content.document.getElementById("RelevanceColumn");
colNode = top._content.document.getElementById("RelevanceColumn");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
top.content.setInitialSort(colNode, "descending");
top._content.setInitialSort(colNode, "descending");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
colNode = top.content.document.getElementById("PageRankColumn");
colNode = top._content.document.getElementById("PageRankColumn");
function doStop(){ // should stop button press also stop the load of the page in the browser? I think so. var progressNode = parent.document.getElementById("statusbar-icon"); var stopButtonNode = document.getElementById("stopbutton"); var searchButtonNode = document.getElementById("searchbutton"); if(progressNode && s...
var internetSearchService = Components.classes[ISEARCH_PROGID].getService(nsIInternetSearchService);
var internetSearchService = Components.classes[ISEARCH_CONTRACTID].getService(nsIInternetSearchService);
function doStop(){ var stopButtonNode = document.getElementById("stopbutton"); if (stopButtonNode) { stopButtonNode.setAttribute("style", "display: none;"); } var searchButtonNode = document.getElementById("searchbutton"); if(searchButtonNode) { searchButtonNode.setAttribute("style", "display: inherit;"); } ...
var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService);
var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService);
function doStop(){ var stopButtonNode = document.getElementById("stopbutton"); if (stopButtonNode) { stopButtonNode.setAttribute("style", "display: none;"); } var searchButtonNode = document.getElementById("searchbutton"); if(searchButtonNode) { searchButtonNode.setAttribute("style", "display: inherit;"); } ...
BookmarksUtils.removeSelection("move", this.selection); BookmarksUtils.insertSelection("move", this.selection, this.target);
doTransaction: function () { BookmarksUtils.removeSelection("move", this.selection); BookmarksUtils.insertSelection("move", this.selection, this.target); },
const kTxMgrPROGID = "component:
const kTxMgrCONTRACTID = "@mozilla.org/transaction/manager;1";
doTransaction: function (aTransaction) { // XXX Until the txmgr is fully scriptable, we need to perform the // transaction ourself aTransaction.doTransaction(); if (!this.mDoSeq) { // If a Transaction Seq does not exist, create one. this.makeSeq(vxVFDDoTransactionSeq); } _dd("we...
if ( !imageType ) return;
function doValueChanged(){ if ( !imageType ) return; if ( !hasAnyChanged ) { hasAnyChanged = true; doOverallEnabling(); hasAnyChanged = false; }}
allowWindowFlipChanged = !allowWindowFlipChanged;
data.scriptData["allowWindowFlipChanged"].value = !data.scriptData["allowWindowFlipChanged"].value;
function doWindowFlipChange(){ allowWindowFlipChanged = !allowWindowFlipChanged;}
allowWindowMoveResizeChanged = !allowWindowMoveResizeChanged;
data.scriptData["allowWindowMoveResizeChanged"].value = !data.scriptData["allowWindowMoveResizeChanged"].value;
function doWindowMoveResize(){ allowWindowMoveResizeChanged = !allowWindowMoveResizeChanged;}
allowWindowStatusChangeChanged = !allowWindowStatusChangeChanged;
data.scriptData["allowWindowStatusChangeChanged"].value = !data.scriptData["allowWindowStatusChangeChanged"].value;
function doWindowStatusChange(){ allowWindowStatusChangeChanged = !allowWindowStatusChangeChanged;}
return this.onParseError(this);
{ this.onParseError(this); return; }
download: function(aParseItems, aCallback) { this.downloadCallback = aCallback; // may be null // Whether or not to parse items when downloading and parsing the feed. // Defaults to true, but setting to false is useful for obtaining // just the title of the feed when the user subscribes to it. this...
var filepath = fp.file.QueryInterface(nsIFile);
function downloadChooseFolder() { const nsIFilePicker = Components.interfaces.nsIFilePicker; const nsIFile = Components.interfaces.nsIFile; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); var refLocalFile = Components.classes["@mozilla.org/file/local;1"].createInstance(nsIFil...
customDirPref.value = currentDirPref.value = file.path;
customDirPref.value = currentDirPref.value = file.parent.path;
function downloadChooseFolder() { const nsIFilePicker = Components.interfaces.nsIFilePicker; const nsIFile = Components.interfaces.nsIFile; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); var refLocalFile = Components.classes["@mozilla.org/file/local;1"].createInstance(nsIFil...
var id = aDownload.target.persistentDescriptor;
var id = aDownload.target.path;
function downloadCompleted(aDownload) { // Wrap this in try...catch since this can be called while shutting down... // it doesn't really matter if it fails then since well.. we're shutting down // and there's no UI to update! try { var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Compon...
window.title = document.documentElement.getAttribute("statictitle");
document.title = document.documentElement.getAttribute("statictitle");
function downloadCompleted(aDownload) { // Wrap this in try...catch since this can be called while shutting down... // it doesn't really matter if it fails then since well.. we're shutting down // and there's no UI to update! try { var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Compon...
addFeed(feed.url, feed.name, null, folder);
addFeed(feed.url, feed.name, folder);
downloaded: function(feed, aErrorCode) { if (this.mSubscribeMode && aErrorCode == kNewsBlogSuccess) { // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folder = feed.folder ? feed.folder : feed.server.rootMsgFolder...
addFeed(feed.url, feed.name, null, folder);
addFeed(feed.url, feed.name, folder);
downloaded: function(feed, aErrorCode) { // feed is null if our attempt to parse the feed failed if (aErrorCode == kNewsBlogSuccess) { updateStatusItem('progressMeter', 100); // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder f...
downloaded: function(feed, aSuccess)
downloaded: function(feed, aErrorCode)
downloaded: function(feed, aSuccess) { // feed is null if our attempt to parse the feed failed if (aSuccess) { updateStatusItem('progressMeter', 100); // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folde...
if (aSuccess)
if (aErrorCode == kNewsBlogSuccess)
downloaded: function(feed, aSuccess) { // feed is null if our attempt to parse the feed failed if (aSuccess) { updateStatusItem('progressMeter', 100); // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folde...
else { }
else if (aErrorCode == kNewsBlogInvalidFeed) window.alert(document.getElementById('bundle_newsblog').getFormattedString('newsblog-invalidFeed', [feed.url])); else window.alert(document.getElementById('bundle_newsblog').getFormattedString('newsblog-networkError', [feed.url]));
downloaded: function(feed, aSuccess) { // feed is null if our attempt to parse the feed failed if (aSuccess) { updateStatusItem('progressMeter', 100); // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folde...
downloaded: function(feed)
downloaded: function(feed, aSuccess)
downloaded: function(feed) { // feed is null if our attempt to parse the feed failed if (feed) { updateStatusItem('progressMeter', 100); // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folder = feed.folde...
if (feed)
if (aSuccess)
downloaded: function(feed) { // feed is null if our attempt to parse the feed failed if (feed) { updateStatusItem('progressMeter', 100); // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folder = feed.folde...
var folder = feed.folder ? feed.folder : feed.server.rootMsgFolder.getChildNamed(feed.name); updateFolderFeedUrl(folder, feed.url, false); addFeed(feed.url, feed.name, folder);
updateFolderFeedUrl(feed.folder, feed.url, false); addFeed(feed.url, feed.name, feed.folder);
downloaded: function(feed, aErrorCode) { if (this.mSubscribeMode && aErrorCode == kNewsBlogSuccess) { // if we get here...we should always have a folder by now...either // in feed.folder or FeedItems created the folder for us.... var folder = feed.folder ? feed.folder : feed.server.rootMsgFolder...
downloaded: function(feed)
downloaded: function(feed, aErrorCode)
downloaded: function(feed) { this.mStatusFeedback.stopMeteors(); gNumPendingFeedDownloads--; if (!gNumPendingFeedDownloads) { this.mFeeds = new Array; // no more pending actions...clear the status bar text...should we do this on a timer // so the text sticks around for a little while? It d...
this.mSubscribeMode = false;
downloaded: function(feed) { this.mStatusFeedback.stopMeteors(); gNumPendingFeedDownloads--; if (!gNumPendingFeedDownloads) { this.mFeeds = new Array; // no more pending actions...clear the status bar text...should we do this on a timer // so the text sticks around for a little while? It d...