rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
.text('Resume');
.text(resume);
viewsSlideshowCyclePause = function (settings) { $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_cycle_pause') .remo...
if (settings.controls > 0) {
if (settings.controls != 0) {
viewsSlideshowCycleResume = function (settings) { // Make Pause translatable var pause = Drupal.t('Pause'); $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_pause') .addClass('views_slideshow_p...
.text('Pause');
.text(pause);
viewsSlideshowCycleResume = function (settings) { $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_cycle_play') .r...
viewsSlideshowGoToSlide = function (slideshowID, slideNum) {
viewsSlideshowGoToSlide = function (slideshowID, callingMethod, slideNum) {
viewsSlideshowGoToSlide = function (slideshowID, slideNum) { var methods = Drupal.settings.viewsSlideshow[slideshowID]['methods']; for (i = 0; i < methods.length; i++) { if (typeof window[methods[i] + '_viewsSlideshowGoToSlide'] == 'function' && methods[i] != callingMethod) { window[methods[i] + '_viewsSlides...
return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>';
var img = $(slide).find('img'); return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(img).attr('src') + '" alt="' + $(img).attr('alt') + '" title="' + $(img).attr('title') + '"/></a></div>';
Drupal.theme.prototype.viewsSlideshowPagerThumbnails = function (classes, idx, slide, settings) { var href = '#'; if (settings.pager_click_to_page) { href = $(slide).find('a').attr('href'); } return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></d...
return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>';
var img = $(slide).find('img'); return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(img).attr('src') + '" alt="' + $(img).attr('alt') + '" title="' + $(img).attr('title') + '"/></a></div>';
Drupal.theme.prototype.viewsSlideshowPagerthumbnails = function (classes, idx, slide, settings) { var href = '#'; if (settings.pager_click_to_page) { href = $(slide).find('a').attr('href'); } return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></d...
pause:settings.pause==1,
pause:false,
Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleF...
if (settings.pause == 1) { $('#views_slideshow_singleframe_teaser_section_' + settings.id).hover(function() { $(settings.targetId).cycle('pause'); }, function() { if (settings.paused == false) { $(settings.targetId).cycle('resume'); } }); } if (settings.pause_on_click == 1) { $('#views_slideshow_singleframe_teaser_se...
Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleF...
$(settings.targetId).cycle('resume'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false;
viewsSlideshowSingleFrameResume(settings);
Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleF...
$(settings.targetId).cycle('pause'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true;
viewsSlideshowSingleFramePause(settings);
Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleF...
settings.opts[prop] = value;
var func = value.match(/function\s*\((.*?)\)\s*\{(.*)\}/i); if (func) { value = new Function(func[1].match(/(\w+)/g), func[2]); } if (typeof(value) == "function" && prop in settings.opts) { var callboth = function(before_func, new_func) { return function() { before_func.apply(null, arguments); new_func.apply(null, ar...
Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleF...
.text('Resume');
.text(resume);
viewsSlideshowSingleFramePause = function (settings) { $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_singleframe_playpause_' + settings.vss_id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_single...
.text('Pause');
.text(pause);
viewsSlideshowSingleFrameResume = function (settings) { $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_singleframe_playpause_' + settings.vss_id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_si...
.text('Resume');
.text(resume);
viewsSlideshowThumbnailHoverPause = function (settings) { $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_thumbnailhover_playpause_' + settings.vss_id) .addClass('views_slideshow_thumbnailhover_play') .addClass('views_slideshow_play') .removeClass('views_slidesh...
.text('Pause');
.text(pause);
viewsSlideshowThumbnailHoverResume = function (settings) { $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_thumbnailhover_playpause_' + settings.vss_id) .addClass('views_slideshow_thumbnailhover_pause') .addClass('views_slideshow_pause') .removeClass('views_sli...
showMessage(object, voteAnonymousMessage.replace("{{QuestionID}}", questionId));
showMessage(object, voteAnonymousMessage.replace("{{QuestionID}}", questionId).replace("{{questionSlug}}", questionSlug));
vote: function(object, voteType){ if (!currentUserId || currentUserId.toUpperCase() == "NONE"){ showMessage(object, voteAnonymousMessage.replace("{{QuestionID}}", questionId)); return false; } if (voteType == VoteType.answerUpVote){ ...
console.log('wantEvent ' + eventName);
wantEvent: function(eventName) { console.log('wantEvent ' + eventName); var hook = this.hooks.get(eventName); if (hook === false) { console.log('hooking event ' + eventName); switch(eventName) { case 'gridColumnEnter': case 'gridColumnLeave': this.colObj.addEvent('mousemove',...
console.log('hooking event ' + eventName);
wantEvent: function(eventName) { console.log('wantEvent ' + eventName); var hook = this.hooks.get(eventName); if (hook === false) { console.log('hooking event ' + eventName); switch(eventName) { case 'gridColumnEnter': case 'gridColumnLeave': this.colObj.addEvent('mousemove',...
} else { console.log('event is already hooked');
wantEvent: function(eventName) { console.log('wantEvent ' + eventName); var hook = this.hooks.get(eventName); if (hook === false) { console.log('hooking event ' + eventName); switch(eventName) { case 'gridColumnEnter': case 'gridColumnLeave': this.colObj.addEvent('mousemove',...
}
},
write: function(elementId){ if(this.installedVer.versionIsValid(this.getAttribute('version'))){ var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId; n.innerHTML = this.getVLCHTML(); //trick for IE activex if (document.all) { var vlc = n.firstChild; vlc.style.width = t...
registerCleanupFunction(function() { if (self.started) self.unregister(); });
aInstallProperties.forEach(function(aInstallProp) { var install = new MockInstall(); for (var prop in aInstallProp) { install[prop] = aInstallProp[prop]; } this.addInstall(install); newInstalls.push(install); }, this);
registerCleanupFunction(function() { if (self.started) self.unregister(); });
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
$.each(self._children, function(index, child) { box = child.getBounds(); if(box.bottom < dropPos.top || box.top > dropPos.top) return; var dist = Math.sqrt( Math.pow((box.top+box.height/2)-dropPos.top,2) + Math.pow((box.left+box.width/2)-dropPos.left,2) ); if( dist <= best.dist ){ best.item = child; best.dist = dist;...
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
setTimeout(function() { try { Cc["@mozilla.org/microsummary/service;1"].getService(Ci.nsIMicrosummaryService); } catch (ex) { Components.utils.reportError("Failed to init microsummary service:\n" + ex); } }, 4000);
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
setTimeout(function() PlacesUtils.livemarks.start(), 5000);
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false;
this._forEachPermissions(host, function(aType) { pm.remove(host.asciiHost, aType);
this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false; });
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
setTimeout(function() { gDownloadMgr = Cc["@mozilla.org/download-manager;1"]. getService(Ci.nsIDownloadManager); DownloadMonitorPanel.init(); if (Win7Features) { let tempScope = {}; Cu.import("resource: tempScope); tempScope.DownloadTaskbarProgress.onBrowserWindowLoad(window); } }, 10000);
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []);
setTimeout(function() PlacesUtils.startPlacesDBUtils(), 15000);
yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []);
messageManager.addMessageListener("pagehide", function(aMessage) { self.hide();
[fileName, 'download.pdf'].forEach(function(potentialName, i) { if (file) return; let attemptedFile = downloadsDir.clone(); attemptedFile.append(potentialName); try { attemptedFile.createUnique(attemptedFile.NORMAL_FILE_TYPE, 0666); } catch (e) { if (i != 0) throw e; return; } file = attemptedFile; fileName = file....
messageManager.addMessageListener("pagehide", function(aMessage) { self.hide(); });
if (!this.listeners.some(function(i) i == aListener))
var installs = this.installs.filter(function(aInstall) { if (aInstall.state == AddonManager.STATE_CANCELLED) return false; if (aTypes && aTypes.length > 0 && aTypes.indexOf(aInstall.type) == -1) return false; return true; });
if (!this.listeners.some(function(i) i == aListener))
["shift", "alt", "ctrl", "meta"].forEach(function (key) { if (aEvent[key + "Key"]) keyCombos.push(key); });
let doMigrate = itemArray.some(function (name) itemBranch.prefHasUserValue(name));
["shift", "alt", "ctrl", "meta"].forEach(function (key) { if (aEvent[key + "Key"]) keyCombos.push(key); });
this.listeners = this.listeners.filter(function(i) i != aListener);
timer.initWithCallback(function() { self.callbackTimers.splice(pos, 1); aCallback.apply(null, params); }, this.apiDelay, timer.TYPE_ONE_SHOT);
this.listeners = this.listeners.filter(function(i) i != aListener);
return this._tabs.map(function(tab) { return tab.browser; });
window.addEventListener("MozBeforeResize", function(aEvent) { if (aEvent.target != window) return; let { x: x1, y: y1 } = Browser.getScrollboxPosition(Browser.controlsScrollboxScroller); let { x: x2, y: y2 } = Browser.getScrollboxPosition(Browser.pageScrollboxScroller); let [,, leftWidth, rightWidth] = Browser.compute...
return this._tabs.map(function(tab) { return tab.browser; });
["UP", "RIGHT", "DOWN", "LEFT"].forEach(function (dir) { if (aEvent.direction == aEvent["DIRECTION_" + dir]) return this._doAction(aEvent, ["swipe", dir.toLowerCase()]); }, this);
itemArray.forEach(function (name) { try { if (name != "passwords" && name != "offlineApps") cpdBranch.setBoolPref(name, itemBranch.getBoolPref(name)); clearOnShutdownBranch.setBoolPref(name, itemBranch.getBoolPref(name)); } catch(e) { Cu.reportError("Exception thrown during privacy pref migration: " + e); } });
["UP", "RIGHT", "DOWN", "LEFT"].forEach(function (dir) { if (aEvent.direction == aEvent["DIRECTION_" + dir]) return this._doAction(aEvent, ["swipe", dir.toLowerCase()]); }, this);
this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false;
[fileName, 'download.pdf'].forEach(function(potentialName, i) { if (file) return; let attemptedFile = downloadsDir.clone(); attemptedFile.append(potentialName); try { attemptedFile.createUnique(attemptedFile.NORMAL_FILE_TYPE, 0666); } catch (e) { if (i != 0) throw e; return; } file = attemptedFile; fileName = file....
this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false; });
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
.mouseup(function(e){ var location = new Point(e.clientX, e.clientY); if( location.distance(self._mouseDownLocation) > 1.0 ) return; if( self.isNewTabsGroup() ) return; var activeTab = self.getActiveTab(); if( activeTab ) TabItems.zoomTo(activeTab) else TabItems.zoomTo(self.getChild(0).tab.mirror.el); });
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
phantom.fadeOut(function(){ $(this).remove(); });
}, 270, function(){ $(tab.container).css({opacity: 1}); newTab.focus(); Page.showChrome() UI.navBar.urlBar.focus(); anim.remove(); setTimeout(function(){ UI.tabBar.showOnlyTheseTabs(Groups.getActiveGroup()._children); }, 400); });
phantom.fadeOut(function(){ $(this).remove(); });
phantom.fadeOut(function(){ iQ(this).remove(); });
setTimeout(function(){ UI.tabBar.showOnlyTheseTabs(Groups.getActiveGroup()._children); }, 400);
phantom.fadeOut(function(){ iQ(this).remove(); });
if (curvisits.every(function(cur) cur.date != date))
this.__defineGetter__("_allUrlStm", function() stm);
if (curvisits.every(function(cur) cur.date != date))
function(item, index, array) { return { label: item.name, default: (item == Services.search.defaultEngine), image: item.iconURI ? item.iconURI.spec : null }
return !BrowserSearch.engines.some(function(item) { return aEngine.title == item.name;
function(item, index, array) { return { label: item.name, default: (item == Services.search.defaultEngine), image: item.iconURI ? item.iconURI.spec : null } });
messageManager.addMessageListener("DOMContentLoaded", function() { messageManager.removeMessageListener("DOMContentLoaded", arguments.callee, true); Elements.panelUI.hidden = false; ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); WeaveGlue.init(); });
this._bookmarkPopupTimeout = setTimeout(function (self) { self._bookmarkPopupTimeout = -1; self.hide(); }, 2000, this);
messageManager.addMessageListener("DOMContentLoaded", function() { // We only want to delay one time messageManager.removeMessageListener("DOMContentLoaded", arguments.callee, true); // We unhide the panelUI so the XBL and settings can initialize Elements.panelUI.hidden = false; // Init the...
setTimeout(function() { button.disabled = false; }, 5000);
this._forEachPermissions(host, function(aType) { permissions.push(aType); });
setTimeout(function() { button.disabled = false; }, 5000);
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
XPCOMUtils.defineLazyGetter(this, "PopupNotifications", function () { let tmp = {}; Cu.import("resource: return new tmp.PopupNotifications(gBrowser, document.getElementById("notification-popup"), document.getElementById("notification-popup-box")); });
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true),
yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []);
XPCOMUtils.defineLazyGetter(this, "Win7Features", function () { #ifdef XP_WIN #ifndef WINCE const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1"; if (WINTASKBAR_CONTRACTID in Cc && Cc[WINTASKBAR_CONTRACTID].getService(Ci.nsIWinTaskbar).available) { let temp = {}; Cu.import("resource: let AeroPeek = temp.AeroP...
yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []);
drop: function(e){ $target = $(e.target); $(this).removeClass("acceptsDrop"); var phantom = $target.data("phantomGroup") var group = drag.info.item.parent; if( group == null ){ phantom.removeClass("phantom"); phantom.removeClass("group-content"); var group = new Group([$target, drag.info.$el], {container:phantom}); } ...
drop: function(event){ $(this).removeClass("acceptsDrop"); self.add( drag.info.$el, {left:event.pageX, top:event.pageY} ); },
drop: function(e){ $target = $(e.target); $(this).removeClass("acceptsDrop"); var phantom = $target.data("phantomGroup") var group = drag.info.item.parent; if( group == null ){ phantom.removeClass("phantom"); phantom.removeClass("group-content"); var group = new...
onProgress: function(request, context, progress, maxProgress) { LOG("gDownloadingPage", "onProgress - progress: " + progress + "/" + maxProgress); let status = this._updateDownloadStatus(progress, maxProgress); var currentProgress = Math.round(100 * (progress / maxProgress)); var p = gUpdates.update.selectedPatch; p.Q...
onProgress: function(request, position, totalSize) { var pm = document.getElementById("checkingProgress"); checkingProgress.setAttribute("mode", "normal"); checkingProgress.setAttribute("value", Math.floor(100 * (position / totalSize))); },
onProgress: function(request, context, progress, maxProgress) { LOG("gDownloadingPage", "onProgress - progress: " + progress + "/" + maxProgress); let status = this._updateDownloadStatus(progress, maxProgress); var currentProgress = Math.round(100 * (progress / maxProgress)); var p = gUpdates.updat...
out: function(e){ var phantom = $(e.target).data("phantomGroup"); if(phantom) { phantom.fadeOut(function(){ $(this).remove(); }); } }
out: function(){ var group = drag.info.item.parent; if(group) { group.remove(drag.info.$el, {dontClose: true}); } $(this).removeClass("acceptsDrop"); },
out: function(e){ var phantom = $(e.target).data("phantomGroup"); if(phantom) { phantom.fadeOut(function(){ $(this).remove(); }); } }
over: function(e){ var $target = $(e.target); function elToRect($el){ return new Rect( $el.position().left, $el.position().top, $el.width(), $el.height() ); } var height = elToRect($target).height * 1.5 + 20; var width = elToRect($target).width * 1.5 + 20; var unionRect = elToRect($target).union( elToRect(drag.info.$...
over: function(){ if( !self.isNewTabsGroup() ) $(this).addClass("acceptsDrop"); },
over: function(e){ var $target = $(e.target); function elToRect($el){ return new Rect( $el.position().left, $el.position().top, $el.width(), $el.height() ); } var height = elToRect($target).height * 1.5 + 20; var width = elToRect($target).width * 1.5 + 20; var unionRect = elToRec...
_showAlert: function xpidm_showAlert(aMessage) { if (ExtensionsView.visible) return;
_showInstallCompleteAlert: function xpidm_showAlert(aSucceeded) {
_showAlert: function xpidm_showAlert(aMessage) { if (ExtensionsView.visible) return; let strings = Elements.browserBundle; let observer = { observe: function (aSubject, aTopic, aData) { if (aTopic == "alertclickcallback") BrowserUI.showPanel("addons-container"); } }; let ...
let observer = { observe: function (aSubject, aTopic, aData) { if (aTopic == "alertclickcallback") BrowserUI.showPanel("addons-container"); } }; let alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService); alerts.showAlertNotification(URI_GENERIC_ICON_XPINSTALL, strings.getString("alertAddons"), a...
let msg = aSucceeded ? strings.getString("alertAddonsInstalled") : strings.getString("alertAddonsFail"); this._showAlert(msg); },
_showAlert: function xpidm_showAlert(aMessage) { if (ExtensionsView.visible) return; let strings = Elements.browserBundle; let observer = { observe: function (aSubject, aTopic, aData) { if (aTopic == "alertclickcallback") BrowserUI.showPanel("addons-container"); } }; let ...
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add...
iQ.each(this._children, function(index, child) { if(child == self.topChild) child.setZ(topZIndex + 1); else { child.setZ(zIndex); zIndex--; } });
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group ==...
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100);
iQ(this.container).fadeOut(function() { iQ(this).remove(); Items.unsquish(); });
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100);
this.node.addEventListener("select", function() { self.maybeHideSearch(); gViewController.loadView(self.node.selectedItem.value); }, false);
AddonManager.getAddonsByTypes(null, function(aAddonList) { aAddonList.forEach(function(aAddon) { if (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) { pendingChecks++; aAddon.findUpdates(updateCheckListener, AddonManager.UPDATE_WHEN_USER_REQUESTED); } }); if (pendingChecks == 0) updateStatus(); });
this.node.addEventListener("select", function() { self.maybeHideSearch(); gViewController.loadView(self.node.selectedItem.value); }, false);
maybeHidden.forEach(function(aId) { var type = gViewController.parseViewId(aId).param; AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(a...
aAddonList.forEach(function(aAddon) { if ("applyBackgroundUpdates" in aAddon) aAddon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DEFAULT; });
maybeHidden.forEach(function(aId) { var type = gViewController.parseViewId(aId).param; AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ ...
AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; }
AddonManager.getAddonsByTypes(null, function(aAddonList) { aAddonList.forEach(function(aAddon) { if (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) { pendingChecks++; aAddon.findUpdates(updateCheckListener, AddonManager.UPDATE_WHEN_USER_REQUESTED); } });
AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, ...
gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingA...
if (pendingChecks == 0) updateStatus();
AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, ...
});
AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, ...
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( ...
iQ.each(this._children, function(index, child) { if(child == self.topChild) children.unshift(child); else children.push(child); });
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group ==...
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( dragged ); } }, 100);
iQ.each(children, function(index, child) { if(!child.locked.bounds) { child.setZ(zIndex); zIndex--; child.addClass("stacked"); child.setBounds(box, !animate); child.setRotation(self._randRotate(35, index)); } });
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( dragged ); } }, 100);
XPCOMUtils.defineLazyGetter(this, "NetUtil", function() { Cu.import("resource: return NetUtil; });
aAnnos.forEach(function(anno) { if (!anno.value) { annosvc.removePageAnnotation(aURI, anno.name); return; } var flags = ("flags" in anno) ? anno.flags : 0; var expires = ("expires" in anno) ? anno.expires : Ci.nsIAnnotationService.EXPIRE_NEVER; if (anno.type == annosvc.TYPE_BINARY) { annosvc.setPageAnnotationBinary(aUR...
XPCOMUtils.defineLazyGetter(this, "NetUtil", function() { Cu.import("resource://gre/modules/NetUtil.jsm"); return NetUtil;});
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+10, left: target.position().left+10, }, 100) }, 10 );
.click(function(){ self.newTab(); });
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+10, left: target.position().left+10, }, 100) }, 10 );
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
.mouseover(function() { self.collapse(); })
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
.mousedown(function(e){ self._mouseDownLocation = new Point(e.clientX, e.clientY); })
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
.mouseup(function(e){ if( e.target.className == "title-shield" || e.target.className == "name" ) return; var location = new Point(e.clientX, e.clientY); if( location.distance(self._mouseDownLocation) > 1.0 ) return; if( self.isNewTabsGroup() ) return; var activeTab = self.getActiveTab(); if( activeTab ) TabItems.zo...
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
phantom.fadeOut(function(){ $(this).remove(); });
setTimeout(function(){ UI.tabBar.showOnlyTheseTabs(Groups.getActiveGroup()._children); }, 400);
phantom.fadeOut(function(){ $(this).remove(); });
this.__defineGetter__("_readOnly", function() readOnly);
aAnnos.forEach(function(anno) { if (!anno.value) { annosvc.removeItemAnnotation(aItemId, anno.name); return; } var flags = ("flags" in anno) ? anno.flags : 0; var expires = ("expires" in anno) ? anno.expires : Ci.nsIAnnotationService.EXPIRE_NEVER; if (anno.type == annosvc.TYPE_BINARY) { annosvc.setItemAnnotationBinary(...
this.__defineGetter__("_readOnly", function() readOnly);
this._progressCollapseTimer = setTimeout(function (self) { self.statusMeter.parentNode.collapsed = true; self._progressCollapseTimer = 0; }, 100, this);
setTimeout(function() { document.getElementById("Tools:PrivateBrowsing") .removeAttribute("disabled"); }, 0);
this._progressCollapseTimer = setTimeout(function (self) { self.statusMeter.parentNode.collapsed = true; self._progressCollapseTimer = 0; }, 100, this);
this._tabs.forEach(function(aTab, aIndex, aArray) { if (aTab.owner == tab) aTab.owner = null; });
Elements.contentNavigator.addEventListener("SizeChanged", function() { ViewableAreaObserver.update(); }, true);
this._tabs.forEach(function(aTab, aIndex, aArray) { if (aTab.owner == tab) aTab.owner = null; });
function(evt) { if (!evt.isTrusted) return; if (evt.keyCode == evt.DOM_VK_RETURN) { evt.preventDefault(); if (callbackArgs.length == 0) callbackArgs = [ evt ]; evt.preventDefault(); (self[callbackName]).apply(self, callbackArgs); } },
let remainingTabs = gBrowser.visibleTabs.filter(function(tab) { return gBrowser._removingTabs.indexOf(tab) == -1; });
function(evt) { if (!evt.isTrusted) return; if (evt.keyCode == evt.DOM_VK_RETURN) { evt.preventDefault(); if (callbackArgs.length...
this._bookmarkPopupTimeout = setTimeout(function (self) { self._bookmarkPopupTimeout = -1; self.hide(); }, 2000, this);
messageManager.addMessageListener("pageshow", function() { if (getBrowser().currentURI.spec == "about:blank") return; messageManager.removeMessageListener("pageshow", arguments.callee, true); Elements.panelUI.hidden = false; ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); ...
this._bookmarkPopupTimeout = setTimeout(function (self) { self._bookmarkPopupTimeout = -1; self.hide(); }, 2000, this);
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100);
.mouseup(function(e) { var same = (e.target == self.lastMouseDownTarget); self.lastMouseDownTarget = null; if(!same) return;
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group ==...
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); }, 10 );
if(!$container.data('isDragging')) { self.$titleShield.hide(); self.$title.get(0).focus(); } });
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group ==...
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100);
iQ.each(listOfEls, function(index, el) { self.add(el, null, options); });
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100);
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove();
iQ.each(this._children, function(index, child) { var box = child.getBounds(); child.setPosition(box.left + offset.x, box.top + offset.y, immediately);
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); });
drop: function(e){ $target = $(e.target); if( $target.css("zIndex") < $dragged.data("topDropZIndex") ) return; $dragged.data("topDropZIndex", $target.css("zIndex") ); $dragged.data("topDrop", $target); clearTimeout( timeout ); var dragged = $dragged; var target = $target; timeout = setTimeout( function(){ dragged.re...
drop: function(event){ $(this).removeClass("acceptsDrop"); self.add( drag.info.$el, {left:event.pageX, top:event.pageY} ); },
drop: function(e){ $target = $(e.target); // Only drop onto the top z-index if( $target.css("zIndex") < $dragged.data("topDropZIndex") ) return; $dragged.data("topDropZIndex", $target.css("zIndex") ); $dragged.data("topDrop", $target); clearTimeout( timeout ); var dragged ...
function evaluate(s, f, l) { if (typeof s !== "string") return s;
evaluate: function evaluate(options) { if (typeof(options) == 'string') options = {contents: options}; options = {__proto__: options}; if (typeof(options.contents) != 'string') throw new Error('Expected string for options.contents'); if (options.lineNo === undefined) options.lineNo = 1; if (options.jsVersion === undefi...
function evaluate(s, f, l) { if (typeof s !== "string") return s; var x = ExecutionContext.current; var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; try { execute(parser.parse(new parser.VanillaBuilder, s, f, l), x2); } catch ...
var x = ExecutionContext.current; var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; try { execute(parser.parse(new parser.VanillaBuilder, s, f, l), x2); } catch (e if e === THROW) { if (x) { x.result = x2.result; throw THROW; } throw x2.result; } finally { ExecutionContext.current = x; } return...
if (this._principal == systemPrincipal) options.filename = maybeParentifyFilename(options.filename); return Cu.evalInSandbox(options.contents, this._sandbox, options.jsVersion, options.filename, options.lineNo); }
function evaluate(s, f, l) { if (typeof s !== "string") return s; var x = ExecutionContext.current; var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; try { execute(parser.parse(new parser.VanillaBuilder, s, f, l), x2); } catch ...
handleEvent: function(aEvent) { switch (aEvent.type) { case "click": let item = aEvent.target; if (item && item.hasOwnProperty("optionIndex")) { if (this._list.multiple) { item.selected = !item.selected; } else { this.unselectAll(); item.selected = true; } this.onSelect(item.optionIndex, item.selected, !this._list.m...
handleEvent: function handleEvent(aEvent) { this.hide(); }
handleEvent: function(aEvent) { switch (aEvent.type) { case "click": let item = aEvent.target; if (item && item.hasOwnProperty("optionIndex")) { if (this._list.multiple) { // Toggle the item state item.selected = !item.selected; } else { ...
hide: function() { this.showFilter = false; this._container.removeEventListener("click", this, false); this._panel.removeEventListener("overflow", this, true); this._panel.hidden = true; if (this._docked) this.undock(); else BrowserUI.popPopup(this); this.reset();
hide: function hide() { this.panel.collapsed = true; BrowserUI.unlockToolbar(); BrowserUI.popPopup(this);
hide: function() { this.showFilter = false; this._container.removeEventListener("click", this, false); this._panel.removeEventListener("overflow", this, true); this._panel.hidden = true; if (this._docked) this.undock(); else BrowserUI.popPopup(this); this.reset(); },
$dragged.removeClass("willGroup"); }
var group = drag.info.item.parent; if(group) { group.remove(drag.info.$el, {dontClose: true}); } $(this).removeClass("acceptsDrop"); },
out: function(){ $dragged.removeClass("willGroup"); }
over: function(e){ $dragged.addClass("willGroup"); $dragged.data("topDropZIndex", 0); },
over: function(){ if( !self.isNewTabsGroup() ) $(this).addClass("acceptsDrop"); },
over: function(e){ $dragged.addClass("willGroup"); $dragged.data("topDropZIndex", 0); },
QueryInterface: function(iid) { if (iid.equals(Ci.nsIDirectoryServiceProvider) || iid.equals(Ci.nsISupports)) {
QueryInterface: function QueryInterface(iid) { if (iid.equals(Ci.nsIXULAppInfo) || iid.equals(Ci.nsIXULRuntime) || iid.equals(Ci.nsISupports))
QueryInterface: function(iid) { if (iid.equals(Ci.nsIDirectoryServiceProvider) || iid.equals(Ci.nsISupports)) { return this; } throw Cr.NS_ERROR_NO_INTERFACE; }
}
QueryInterface: function(iid) { if (iid.equals(Ci.nsIDirectoryServiceProvider) || iid.equals(Ci.nsISupports)) { return this; } throw Cr.NS_ERROR_NO_INTERFACE; }
if (aIID.equals(nsIModule) || (aIID.equals(nsISupports)))
if (aIID.equals(nsIXTFElementFactory) || aIID.equals(nsISupports))
QueryInterface: function QueryInterface(aIID) { if (aIID.equals(nsIModule) || (aIID.equals(nsISupports))) return this; throw Components.results.NS_ERROR_NO_INTERFACE; return null; }
function searchFailed() { ExtensionsView.clearSection("repo"); let strings = Elements.browserBundle; let brand = document.getElementById("bundle_brand"); let failLabel = strings.getFormattedString("addonsSearchFail.label", [brand.getString("brandShortName")]); let failButton = strings.getString("addonsSearchFail.butt...
searchFailed: function searchFailed() { let loading = document.getElementById("newAddons"); loading.parentNode.removeChild(loading); },
function searchFailed() { ExtensionsView.clearSection("repo"); let strings = Elements.browserBundle; let brand = document.getElementById("bundle_brand"); let failLabel = strings.getFormattedString("addonsSearchFail.label", [brand.getString("brandShortName")]); let failBu...
show: function(aList) { this.showFilter = false; this._textbox.blur(); this._list = aList; this._container = document.getElementById("select-list"); this._container.setAttribute("multiple", aList.multiple ? "true" : "false"); this._selectedIndexes = this._getSelectedIndexes(); let firstSelected = null; let choices =...
show: function show() { if (BrowserUI.activePanel || BrowserUI.isPanelVisible()) return; this.panel.setAttribute("count", this.panel.childNodes.length); this.panel.collapsed = false; BrowserUI.lockToolbar(); BrowserUI.pushPopup(this, [this.panel, Elements.toolbarContainer]);
show: function(aList) { this.showFilter = false; this._textbox.blur(); this._list = aList; this._container = document.getElementById("select-list"); this._container.setAttribute("multiple", aList.multiple ? "true" : "false"); this._selectedIndexes = this._getSelectedIndexes(); let firstSelected =...
stop: function(){ $dragged.data('isDragging', false); $(this).css({zIndex: zIndex}); $dragged = null; zIndex += 1; },
stop: function() { this.$el.data('isDragging', false); if(this.parent && !this.parent.locked.close && this.parent != this.item.parent && this.parent._children.length == 0 && !this.parent.getTitle()) { this.parent.close(); } if(this.parent && this.parent.expanded) this.parent.arrange(); if(this.item && !this.ite...
stop: function(){ $dragged.data('isDragging', false); $(this).css({zIndex: zIndex}); $dragged = null; zIndex += 1; },
if (callResult.returnValue === true) {
if (callResult.returnValue === true && typeof callQueue[callId] !== 'undefined') {
"onSuccess" : function (callResult) { if (callResult.returnValue === true) { callQueue[callId].status = "available"; } },
function $$() { return Selector.findChildElements(document, $A(arguments)); }
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
function $$() { return Selector.findChildElements(document, $A(arguments));}
ret = !layer ? SC.$([]) : (sel === undefined) ? SC.$.buffer(layer) : SC.$.buffer(sel, layer) ;
ret = !layer ? SC.$.buffer([]) : (sel === undefined) ? SC.$.buffer(layer) : SC.$.buffer(sel, layer) ;
$: function(sel) { var ret, layer = this.layer(); // note: SC.$([]) returns an empty CoreQuery object. SC.$() would // return an object selecting the document. ret = !layer ? SC.$([]) : (sel === undefined) ? SC.$.buffer(layer) : SC.$.buffer(sel, layer) ; layer = null ; // avoid memory leak return ...
function $(element) { if (arguments.length > 1) { for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i])); return elements; } if (Object.isString(element)) element = document.getElementById(element); return Element.extend(element); }
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
function $(element) { if (arguments.length > 1) { for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i])); return elements; } if (Object.isString(element)) element = document.getElementById(element); return Element.extend(element);}
$A = function(iterable) { if (!iterable) return []; if (!(typeof iterable === 'function' && typeof iterable.length === 'number' && typeof iterable.item === 'function') && iterable.toArray) return iterable.toArray(); var length = iterable.length || 0, results = new Array(length); while (length--) results[length] = it...
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
$A = function(iterable) { if (!iterable) return []; // In Safari, only use the `toArray` method if it's not a NodeList. // A NodeList is a function, has an function `item` property, and a numeric // `length` property. Adapted from Google Doctype. if (!(typeof iterable === 'function' && typeof iterable....
function $H(object) { return new Hash(object); };
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
function $H(object) { return new Hash(object);};
var $R = function(start, end, exclusive) { return new ObjectRange(start, end, exclusive); };
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
var $R = function(start, end, exclusive) { return new ObjectRange(start, end, exclusive);};
function $w(string) { if (!Object.isString(string)) return []; string = string.strip(); return string ? string.split(/\s+/) : []; }
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
function $w(string) { if (!Object.isString(string)) return []; string = string.strip(); return string ? string.split(/\s+/) : [];}
obj = { 'taskmonid':Data.tid, 'from':Data.ts2iso(Data.from,2), 'to':Data.ts2iso(Data.till,3), 'timerange':Data.timeRange }; return obj; },
return {}; },
'dataURL_params': function(Data) { obj = { 'taskmonid':Data.tid, 'from':Data.ts2iso(Data.from,2), 'to':Data.ts2iso(Data.till,3), 'timerange':Data.timeRange }; ...
'fnERClose':function(dataID){ alert('Please define a proper function to handle "fnERClose"!'); }
'fnERClose':function(dataID){ alert('Please define a proper function to handle "fnERClose"!'); },
'fnERClose':function(dataID){ alert('Please define a proper function to handle "fnERClose"!'); }
Data.tid = Data.mem.tasks.data[aPos[0]].id;
Data.tid = Data.mem.mains.data[aPos[0]].id;
'setupUserParams': function(Data, el, aPos) { var classTranslate = { 'tmIdClick':'all', 'noJobsClick':'all', 'noPendClick':'P', 'noRunnClick':'R', 'noSuccClick':'S', 'noFailClick':'F', 'noUnknClic...
'translateData':function(dataJSON) { return dataJSON; },
'translateData': function(dataJSON) { var usersList = Array(); var dataArr = dataJSON.basicData[0]; for (i in dataArr) { usersList.push(dataArr[i].GridName); } return usersList; }
'translateData':function(dataJSON) { return dataJSON; },
for (i in dataJSON) { usersList.push(dataJSON[i].GridName);
var dataArr = dataJSON.basicData[0]; for (i in dataArr) { usersList.push(dataArr[i].GridName);
'translateData': function(dataJSON) { var usersList = Array(); for (i in dataJSON) { usersList.push(dataJSON[i].GridName);//.replace(/"/g, '')); } return usersList; },
},
}
'translateData': function(dataJSON) { var usersList = Array(); for (i in dataJSON) { usersList.push(dataJSON[i].GridName);//.replace(/"/g, '')); } return usersList; },