rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
xmla._requestError(options)
xmla._requestError(options);
request: function(options){ var xmla = this; if (this.response){ this.response.close(); } this.response = null; this.responseText = null; this.responseXml = null; options.url = _isUndefined(options.url)? this.options.url : options.url; if (_...
options.exception = exeception;
options.exception = exception;
request: function(options){ var xmla = this; if (this.response){ this.response.close(); } this.response = null; this.responseText = null; this.responseXml = null; options.url = _isUndefined(options.url)? this.options.url : options.url; if (_...
try
this.callbacks[requestId] = callback; var data = JSON.stringify({ "params": params, "method": method, "id": requestId }); if (log.logSensitiveData) log.debug("Sending a JSON-RPC request: " + data); else log.debug("Sending a JSON-RPC request"); var writeResult = session.writeData(data); if (writeResult <=0)
this.request = function(session, method, params, callback, requestId) { if (requestId == undefined || requestId == null || requestId < 0) throw("JSON-RPC communciation requested with no requestID provided."); try { log.info("TITLE: " + params[0].title); } catch (...
log.info("TITLE: " + params[0].title); } catch (e) {} this.callbacks[requestId] = callback; log.info("Processing a JSON-RPC object..." + method + ":" + params); var data = JSON.stringify({ "params": "1" }); log.info("Processed a JSON-RPC object: " + data); var data = JSON.stringify({ "params": 2 }); log.info("Process...
log.warn("JSON-RPC request could not be sent."); this.callbacks[requestId] = null; this.syncRequestResults[requestId] = new Error("JSON-RPC request could not be sent"); }
this.request = function(session, method, params, callback, requestId) { if (requestId == undefined || requestId == null || requestId < 0) throw("JSON-RPC communciation requested with no requestID provided."); try { log.info("TITLE: " + params[0].title); } catch (...
c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newErro...
var e=c.length,h=true;if(e)for(var f,i=0;i<e;i+=1){f=c[i];f=f.handler.call(f.scope,a,b,this);if(d&&f===false){h=false;break}}else a==="error"&&b.exception._throw();return h},request:function(a){var b,d=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.op...
c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newErro...
if (request.status == 200)
if (request.status == 200 && request.getResponseHeader("Content-Type") .indexOf("text/javascript") == 0)
function Request(url, data, userData, id, timeout) { var request = false; var timer = null; var handled = false; function recvCallback() { if (request.readyState == 4) { if (handled) return; // console.log("recvCallback " + request.status); clearTimeout(timer); if (request.status == ...
if (suggestion_cache[last_suggestion_text] typeof == "undefined") {
if (typeof suggestion_cache[last_suggestion_text] == "undefined") {
function request_suggestions(){ if (q_obj.value == last_suggestion_text) return; ///TODO: Determine if there is a better way to write this code so that we don't need to use q_obj twice. last_suggestion_text = q_obj.value; /// Stop a previous, unfinished request. if (ajax_suggestions.readyState % 4) ajax_suggestions.ab...
}
function request_suggestions(){ if (q_obj.value == last_suggestion_text) return; ///TODO: Determine if there is a better way to write this code so that we don't need to use q_obj twice. last_suggestion_text = q_obj.value; /// Stop a previous, unfinished request. if (ajax_suggestions.readyState % 4) ajax_suggestions.ab...
if (typeof suggestion_cache[last_suggestion_text] == "undefined") {
if (typeof suggest_cache[last_suggestion_text] == "undefined") {
function request_suggestions() { clearInterval(suggest_interval); if (q_obj.value == last_suggestion_text) return; ///TODO: Determine if there is a better way to write this code so that we don't need to use q_obj twice. last_suggestion_text = q_obj.value.trim(); if (last_suggestion_text == "") return; ...
show_suggestions(suggestion_cache[last_suggestion_text]);
show_suggestions(suggest_cache[last_suggestion_text]);
function request_suggestions() { clearInterval(suggest_interval); if (q_obj.value == last_suggestion_text) return; ///TODO: Determine if there is a better way to write this code so that we don't need to use q_obj twice. last_suggestion_text = q_obj.value.trim(); if (last_suggestion_text == "") return; ...
this.key = {accidentals: []};
this.key = {accidentals: [], root: 'none', acc: '', mode: '' };
reset: function() { for (var property in this) { if (this.hasOwnProperty(property) && typeof this[property] !== "function") { delete this[property]; } } this.iChar = 0; this.key = {accidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; // if no meter is specified, there...
this.inTie = false; this.inTieChord = {};
reset: function() { for (var property in this) { if (this.hasOwnProperty(property) && typeof this[property] !== "function") { delete this[property]; } } this.iChar = 0; this.key = {accidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; // if no meter is specified, there...
this.meter = {type: 'specified', num: '4', den: '4'};
this.meter = {type: 'specified', value: [{num: '4', den: '4'}]};
reset: function() { this.iChar = 0; this.key = {regularKey: {num: 0, acc: 'sharp'}}; this.meter = {type: 'specified', num: '4', den: '4'}; // if no meter is specified, there is an implied one. this.hasMainTitle = false; this.default_length = 1; this.clef = 'treble'; this.warnings = null; this...
this.clef = 'treble';
this.clef = { type: 'treble' };
reset: function() { this.iChar = 0; this.key = {regularKey: {num: 0, acc: 'sharp'}}; this.meter = {type: 'specified', num: '4', den: '4'}; // if no meter is specified, there is an implied one. this.hasMainTitle = false; this.default_length = 1; this.clef = 'treble'; this.warnings = null; this...
this.barNumbers = null; this.currBarNumber = 1; this.barNumOnNextNote = null; this.inTextBlock = false; this.textBlock = "";
reset: function() { this.iChar = 0; this.key = {regularKey: {num: 0, acc: 'sharp'}}; this.meter = {type: 'specified', num: '4', den: '4'}; // if no meter is specified, there is an implied one. this.hasMainTitle = false; this.default_length = 1; this.clef = 'treble'; this.warnings = null; this...
this._startIndex = this._endIndex = this._selIndex = -1; this._div = null; this.selectItem(-1); },
this.index = null; },
reset: function () { this._startIndex = this._endIndex = this._selIndex = -1; this._div = null; this.selectItem(-1); },
for (property in this) { if (this.hasOwnProperty(property) && typeof this[property] != "function") { delete this[property]; }
for (var property in this) { if (this.hasOwnProperty(property) && typeof this[property] !== "function") { delete this[property];
reset: function() { for (property in this) { if (this.hasOwnProperty(property) && typeof this[property] != "function") { delete this[property]; } } this.iChar = 0; this.key = {extraAccidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; // if no meter is specifi...
this.iChar = 0; this.key = {extraAccidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; this.origMeter = {type: 'specified', value: [{num: '4', den: '4'}]}; this.hasMainTitle = false; this.default_length = 0.125; this.clef = { type: 'treble', middle: 6 }; this.next_note_duration = 0; this.st...
reset: function() { for (property in this) { if (this.hasOwnProperty(property) && typeof this[property] != "function") { delete this[property]; } } this.iChar = 0; this.key = {extraAccidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; // if no meter is specifi...
this.iChar = 0; this.key = {extraAccidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; this.origMeter = {type: 'specified', value: [{num: '4', den: '4'}]}; this.hasMainTitle = false; this.default_length = 0.125; this.clef = { type: 'treble', middle: 6 }; this.next_note_duration = 0; this.st...
reset: function() { for (property in this) { if (this.hasOwnProperty(property) && typeof this[property] != "function") { delete this[property]; } } this.iChar = 0; this.key = {extraAccidentals: []}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; // if no meter is specifi...
delete this.fontVocal;
reset: function() { this.iChar = 0; this.key = {regularKey: {num: 0, acc: 'sharp'}}; this.meter = {type: 'specified', value: [{num: '4', den: '4'}]}; // if no meter is specified, there is an implied one. this.hasMainTitle = false; this.default_length = 1; this.clef = { type: 'treble' }; this.war...
this.macros = {};
reset: function() { this.iChar = 0; this.key = {regularKey: {num: 0, acc: 'sharp'}}; this.meter = {type: 'specified', num: '4', den: '4'}; // if no meter is specified, there is an implied one. this.hasMainTitle = false; this.default_length = 1; this.clef = 'treble'; this.warnings = null; this...
reset: function () {
this.reset = function () {
reset: function () { this.metaText = {}; this.formatting = {}; this.lines = []; this.staffNum = 0; this.voiceNum = 0; this.lineNum = 0; },
},
};
reset: function () { this.metaText = {}; this.formatting = {}; this.lines = []; this.staffNum = 0; this.voiceNum = 0; this.lineNum = 0; },
this.storeProxy.conn.jsonData.data.noPrivileges = !this.showPrivileges;
this.storeProxy.conn.jsonData.data.noPrivileges = !this.usePrivileges;
resetFilter : function() { this.textFilter.setValue(null); this.selectedFilter.toggle(false); this.rolesFilter.toggle(true); this.privilegesFilter.toggle(true); this.storeProxy.conn.jsonData.data.name = null; this.storeProxy.conn.jsonData.data.selectedRoleIds = []; ...
var allTree = this.find('name', 'all-roles-privs-tree')[0]; var selectedTree = this.find('name', 'roles-privs-tree')[0]; while (allTree.root.lastChild) { allTree.root.removeChild(allTree.root.lastChild); } while (selectedTree.root.lastChild) { selectedTree.root.removeChild(selectedTree.root.lastChild); } this.initia...
resetHandler : function(button, event) { this.el.mask('Loading...', 'x-mask-loading'); Sonatype.repoServer.DefaultRoleEditor.superclass.resetHandler.call(this, button, event); var allTree = this.find('name', 'all-roles-privs-tree')[0]; var selectedTree = this.find('name', 'roles-privs-...
Sonatype.MessageBox.alert('Password Reseted', 'The password has been reset.');
Sonatype.MessageBox.alert('Password Reset', 'The password has been reset.');
resetPasswordCallback : function(options, isSuccess, response) { if (isSuccess) { Sonatype.MessageBox.alert('Password Reseted', 'The password has been reset.'); } else { Sonatype.utils.connectionError(response, 'The server did not reset the password.'); ...
p.getChild([1,0,0,0,2]).unselectable();if(f==CKEDITOR.ELEMENT_MODE_REPLACE)p.insertAfter(e);else e.append(p);b.container=p;p.disableContextMenu();b.fireOnce('themeLoaded');b.fireOnce('uiReady');},buildDialog:function(b){var c=CKEDITOR.tools.getNextNumber(),d=CKEDITOR.dom.element.createFromHtml(['<div class="cke_editor_...
p.getChild([1,0,0,0,0]).unselectable();p.getChild([1,0,0,0,2]).unselectable();if(f==CKEDITOR.ELEMENT_MODE_REPLACE)p.insertAfter(e);else e.append(p);b.container=p;p.disableContextMenu();b.fireOnce('themeLoaded');b.fireOnce('uiReady');},buildDialog:function(b){var c=CKEDITOR.tools.getNextNumber(),d=CKEDITOR.dom.element.c...
p.getChild([1,0,0,0,2]).unselectable();if(f==CKEDITOR.ELEMENT_MODE_REPLACE)p.insertAfter(e);else e.append(p);b.container=p;p.disableContextMenu();b.fireOnce('themeLoaded');b.fireOnce('uiReady');},buildDialog:function(b){var c=CKEDITOR.tools.getNextNumber(),d=CKEDITOR.dom.element.createFromHtml(['<div class="cke_editor_...
h.style.left = (WT.pxself(h, 'left') + delta) + 'px';
function resizeColumn(header, delta) { var columnClass = header.className.split(' ')[0], columnId = columnClass.substring(7) * 1, headers = headerContainer.firstChild, contents = contentsContainer.firstChild, column = $(contents).find('.' + columnClass).get(0), h = header.nextSib...
APP.emit(el, 'columnResized', columnId, newWidth);
APP.emit(el, 'columnResized', columnId, parseInt(newWidth));
function resizeColumn(header, delta) { var columnClass = header.className.split(' ')[0], columnId = columnClass.substring(7) * 1, headers = headerContainer.firstChild, contents = contentsContainer.firstChild, column = $(contents).find('.' + columnClass).get(0), h = header.nextSib...
t=0,u=0,v=0;f.onscroll=function(){p.scrollLeft=f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(j,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);j.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(j,b)};t...
f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(h,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);h.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(h,b)};this.resizeHandleMDown=function(a,b){var c=a.par...
t=0,u=0,v=0;f.onscroll=function(){p.scrollLeft=f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(j,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);j.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(j,b)};t...
APP.emit(el, 'columnResized', columnId, newWidth);
APP.emit(el, 'columnResized', columnId, parseInt(newWidth));
this.resizeHandleMDown = function(obj, event) { var parent = obj.parentNode.parentNode, c = parent.className.split(' ')[0]; if (c) { var r = WT.getCssRule('#' + el.id + ' .' + c), cw = WT.pxself(r, 'width'), minDelta = -cw, maxDelta = 10000; new WT.SizeHandle...
event:a},b.nodeId,b.columnId,"mousedown","","");d.getAttribute("drag")==="true"&&b.selected&&l._p_.dragStart(d,a)}};this.mouseUp=function(c,a){var b=n(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"mouseup","","")};this.resizeHandleMDown=function(c,a){a=g.pageCoordinates(a);c....
event:a},b.nodeId,b.columnId,"mousedown","","");d.getAttribute("drag")==="true"&&b.selected&&m._p_.dragStart(d,a)}};this.mouseUp=function(c,a){var b=n(a);b.columnId!=-1&&m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"mouseup","","")};this.resizeHandleMDown=function(c,a){a=g.pageCoordinates(a);c....
event:a},b.nodeId,b.columnId,"mousedown","","");d.getAttribute("drag")==="true"&&b.selected&&l._p_.dragStart(d,a)}};this.mouseUp=function(c,a){var b=n(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"mouseup","","")};this.resizeHandleMDown=function(c,a){a=g.pageCoordinates(a);c....
var e=c.parentNode.parentNode;b=Math.max(f.x-b,-e.offsetWidth);if(e=e.className.split(" ")[0]){e=g.getCssRule("#"+d.id+" ."+e);var h=g.pxself(e,"width");e.style.width=Math.max(0,h+b)+"px"}this.adjustColumns();c.setAttribute("dsx",f.x);g.cancelEvent(a)}};this.resizeHandleMUp=function(c,a){c.removeAttribute("dsx");g.canc...
var f=c.parentNode.parentNode;b=Math.max(e.x-b,-f.offsetWidth);if(f=f.className.split(" ")[0]){f=g.getCssRule("#"+d.id+" ."+f);var j=g.pxself(f,"width");f.style.width=Math.max(0,j+b)+"px"}this.adjustColumns();c.setAttribute("dsx",e.x);g.cancelEvent(a)}};this.resizeHandleMUp=function(c,a){c.removeAttribute("dsx");g.canc...
var e=c.parentNode.parentNode;b=Math.max(f.x-b,-e.offsetWidth);if(e=e.className.split(" ")[0]){e=g.getCssRule("#"+d.id+" ."+e);var h=g.pxself(e,"width");e.style.width=Math.max(0,h+b)+"px"}this.adjustColumns();c.setAttribute("dsx",f.x);g.cancelEvent(a)}};this.resizeHandleMUp=function(c,a){c.removeAttribute("dsx");g.canc...
if (!e) e=window.event; if ($("d_scrollbody") && $("t_nscrollbody")) {
if (!e) e= window.event;
function resizeHandler (e) { if (!e) e=window.event; if ($("d_scrollbody") && $("t_nscrollbody")) { var contentHeight= document.viewport.getHeight() - 216; if ($$('div.plugin-actions').length != 0) { var height= 0; $$('div.plugin-actions').each(function(s) { height+= s.getHeig...
document.getElementById('d_scrollbody').style.height = contentHeight+23+'px'; document.getElementById('t_nscrollbody').style.height = contentHeight+'px';
if (Prototype.Browser.Gecko){ if ($("d_scrollbody") && $("t_nscrollbody")) { document.getElementById('d_scrollbody').style.height = contentHeight+23+'px'; document.getElementById('t_nscrollbody').style.height = contentHeight+'px'; } } else { document.getElementById('d_scrollbody').style.minHeight = contentHeight+23+'px...
function resizeHandler (e) { if (!e) e=window.event; if ($("d_scrollbody") && $("t_nscrollbody")) { var contentHeight= document.viewport.getHeight() - 216; if ($$('div.plugin-actions').length != 0) { var height= 0; $$('div.plugin-actions').each(function(s) { height+= s.getHeig...
document.getElementById('d_scrollbody').style.height = contentHeight+23+'px'; document.getElementById('t_nscrollbody').style.height = contentHeight+'px'; }
if (Prototype.Browser.Gecko || Prototype.Browser.IE) { document.getElementById('d_scrollbody').style.height = contentHeight+23+'px'; document.getElementById('t_nscrollbody').style.height = contentHeight+'px'; } else { document.getElementById('d_scrollbody').style.minHeight = contentHeight+23+'px'; document.getElementBy...
function resizeHandler (e) { if (!e) e= window.event; // This works with FF / IE9. If Apples resolves a bug in webkit, // it works with Safari/Chrome, too. if ($("d_scrollbody") && $("t_nscrollbody")) { var contentHeight= document.viewport.getHeight() - 216; if ($$('div.plugin-actions').length != 0) { ...
var dur = multilineVars.default_length ? multilineVars.default_length / 8 : 1/8; for (var i = 0; i < multilineVars.tempo.duration; i++) multilineVars.tempo.duration[i] = dur * multilineVars.tempo.duration[i];
calcTempo(multilineVars.tempo);
function resolveTempo() { if (multilineVars.tempo) { // If there's a tempo waiting to be resolved var dur = multilineVars.default_length ? multilineVars.default_length / 8 : 1/8; for (var i = 0; i < multilineVars.tempo.duration; i++) multilineVars.tempo.duration[i] = dur * multilineVars.tempo.duration[i];...
}.bind(this)
}.bind(this), onFailure: indicateFail
restartPackage: function(event) { indicateLoad(); new Request({ method: 'get', url: '/json/restart_package/'+this.id, onSuccess: function(){ var child = this.ele.getElement('.children'); if (child.getStyle('display') == "block") { ...
return repoRecord.data.repositoryURI + '/content' + node.data.relativePath;
return repoRecord.data.resourceURI + '/content' + node.data.relativePath;
restToContentUrl : function(node, repoRecord) { return repoRecord.data.repositoryURI + '/content' + node.data.relativePath; },
returnToEntranceHall : function(e) { e.stop();
returnToEntranceHall : function() {
returnToEntranceHall : function(e) { e.stop(); logControls.addClass('hide'); messageList.removeClass('logging'); $('header').removeClass('hide'); $('content').removeClass('hide'); $('entranceHall').removeClass('hide'); $('soundOptions').removeClass('hide'); $('onlineListCon...
[settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-...
return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).width()+$(window).scrollLeft();}else{var fold=$(settings.container).offset().left+$(settings.container).width();} return fold<=$(element)....
[settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-...
window.keeFoxInst.KeePassRPC.syncRequestResults[resultWrapper.id] = resultWrapper.result;
if ("result" in resultWrapper && resultWrapper.result !== false) { if (resultWrapper.result !== null) window.keeFoxInst.KeePassRPC.syncRequestResults[resultWrapper.id] = resultWrapper.result; else window.keeFoxInst.KeePassRPC.syncRequestResults[resultWrapper.id] = new Error("Null return result received"); } else window...
this.request(session, method, params, function rpc_callback(resultWrapper) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); ...
this.browserWindow.IC1setupKI(this.mainWindow);
this.browserWindow.IC1setupKRPC(this.mainWindow);
run: function() { try { KFLog.debug(this.source + ' thread signalled "' + this.reason + '" with result: ' + this.result); switch (this.source) { case "executableInstallerRunner": if (this.reason == "IC1NETSetupFinished") { ...
this.browserWindow.IC2setupKI(this.mainWindow);
this.browserWindow.IC2setupKRPC(this.mainWindow);
run: function() { try { KFLog.debug(this.source + ' thread signalled "' + this.reason + '" with result: ' + this.result); switch (this.source) { case "executableInstallerRunner": if (this.reason == "IC1NETSetupFinished") { ...
query += "&s=" + (top_id + -1);
query += "&s=" + (top_id - 1);
function run_search(direction) { ///TODO: Rewrite code so that it does not rely on so many inner variables (such as last_type and last_search_encoded). /// last_type set in prepare_new_search(). var ajax, query = "t=" + last_type; if (direction == additional) { ...
post_to_server("search.php", query, ajax, handle_new_verses, {action: last_type, "direction": direction});
post_to_server("search.php", query, ajax, handle_new_verses, extra_data);
function run_search(direction) { ///TODO: Rewrite code so that it does not rely on so many inner variables (such as last_type and last_search_encoded). /// last_type set in prepare_new_search(). var ajax, query = "t=" + last_type; if (direction == additional) { ...
file.initWithPath("batch script that calls VBS elevation routines...");
file.initWithPath(this._myDepsDir() + "\\KeeFoxElevate.exe");
runAnInstaller: function (fileName, params) { var args = [fileName, params]; var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath("batch script that calls VBS elevation routines..."...
this._KFLog.info("about to execute: " + file.path + " " + args.join(' '));
runAnInstaller: function (fileName, params) { var args = [fileName, params]; var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath("batch script that calls VBS elevation routines..."...
runAnInstaller: function (fileName, params)
runAnInstaller: function (fileName, params, callback)
runAnInstaller: function (fileName, params) { var args = [fileName, params]; var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath(this._myDepsDir() + "\\KeeFoxElevate.exe"); ...
.createInstance(Components.interfaces.nsIProcess);
.createInstance(Components.interfaces.nsIProcess2 || Components.interfaces.nsIProcess);
runAnInstaller: function (fileName, params) { var args = [fileName, params]; var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath(this._myDepsDir() + "\\KeeFoxElevate.exe"); ...
process.run(true, args, 2);
if (callback == undefined || callback == null) process.run(true,args,2); else process.runAsync(args, 2, callback);
runAnInstaller: function (fileName, params) { var args = [fileName, params]; var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath(this._myDepsDir() + "\\KeeFoxElevate.exe"); ...
var runModalDialog = function(proceed) { var div = new Element('div', { className : 'mb-confirm' }).update(new Element('p').update(spec.message));
Tapx.runModalDialog = function(title, message, proceed) { var div = new Element('div', { className : 'mb-confirm' }).update(new Element('p').update(message));
var runModalDialog = function(proceed) { var div = new Element('div', { className : 'mb-confirm' }).update(new Element('p').update(spec.message)); /* * Have to assign ids and reconnect at after load, because ModalBox * copies DOM elements, rather than moves them. */ var baseId = "mb-" + new Date().getTime(...
Modalbox.show(div, { title : spec.title, afterLoad : function() { $(noId).observe("click", Modalbox.hide.bindAsEventListener(Modalbox)); $(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); }); } }); };
Modalbox.show(div, { title : title, afterLoad : function() { $(noId).observe("click", function(event) { Modalbox.hide(); }); $(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); }); } }); };
var runModalDialog = function(proceed) { var div = new Element('div', { className : 'mb-confirm' }).update(new Element('p').update(spec.message)); /* * Have to assign ids and reconnect at after load, because ModalBox * copies DOM elements, rather than moves them. */ var baseId = "mb-" + new Date().getTime(...
$(yesId).observe("click", function() {
$(yesId).observe("click", function(event) { event.stop();
var runModalDialog = function(proceed) { var div = new Element('div', { className : 'mb-confirm' }).update(new Element('p').update(spec.message)); /* * Have to assign ids and reconnect at after load, because ModalBox * copies DOM elements, rather than moves them. */ var baseId = "mb-" + new Date().getTime(...
j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=nul...
4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=...
j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=nul...
ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();c=d.fee...
ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){if(!J){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();...
ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();c=d.fee...
d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";i...
c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,...
d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";i...
E=false,R=null,A=[],I,z,Q=function(){};if(!document.activeElement){function S(g){if(g&&g.target)document.activeElement=g.target==document?null:g.target}function Y(){document.activeElement=null}document.addEventListener("focus",S,true);document.addEventListener("blur",Y,true)}return{onReady:function(g){if(E)setTimeout(f...
A()}}function n(){if(!u){var g=a(),o=history.length;O&&clearInterval(O);O=setInterval(function(){var p,s;p=a();s=history.length;if(p!==g){g=p;o=s;f(g);b()}else if(s!==o&&q){g=p;o=s;p=N[o-1];f(p);b()}},50)}}function E(){var g;g=L.value.split("|");if(g.length>1){I=g[0];y=g[1]}if(g.length>2)N=g[2].split(",");if(u)l();else...
E=false,R=null,A=[],I,z,Q=function(){};if(!document.activeElement){function S(g){if(g&&g.target)document.activeElement=g.target==document?null:g.target}function Y(){document.activeElement=null}document.addEventListener("focus",S,true);document.addEventListener("blur",Y,true)}return{onReady:function(g){if(E)setTimeout(f...
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](...
for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinN...
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](...
(function(x,v){function Y(){if(!d.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(Y,1);return}d.ready()}}function ra(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function S(a,b,e,g,h,k){var...
(function(x,v){function Y(){if(!c.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(Y,1);return}c.ready()}}function ra(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function S(a,b,e,f,h,k){var...
(function(x,v){function Y(){if(!d.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(Y,1);return}d.ready()}}function ra(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function S(a,b,e,g,h,k){var...
h = h.replace(/<(\/?)html(\/?)>/gi, "");
save : function() { var e = pageDOM.get(s.id), h = t.getContent({save : true}); if (/TEXTAREA|INPUT/.test(e.nodeName)) e.value = h; else e.innerHTML = h; },
for (id in fields) { var field = fields[id], val = field.toValue(); if (val === null) { this.readVals = {};
for (id in fields) if (fields[id].toValue() === null)
save: function () { var fields = this.fields; for (id in fields) { var field = fields[id], val = field.toValue(); if (val === null) { // invalid value encountered this.readVals = {}; return; } else if (field.settings.type != "button") this.readVals[id] = val; } ...
} else if (field.settings.type != "button") this.readVals[id] = val; }
save: function () { var fields = this.fields; for (id in fields) { var field = fields[id], val = field.toValue(); if (val === null) { // invalid value encountered this.readVals = {}; return; } else if (field.settings.type != "button") this.readVals[id] = val; } ...
$('paul_failed_tests').appendChild(new Element('option').update(fname));
$('paul_failed_tests').appendChild(new Element('option').innerHTML = fname);
function saveCurrentToTest(){ var onSuccess = function(resp) { var arr = resp.responseText.split('/'); var fname = arr[arr.length-1]; fname = fname.split(' ')[0]; $('paul_failed_tests').appendChild(new Element('option').update(fname)); abc_contents_output[fname] = { abc: editArea.get(), out: "Unknown: reload page ...
$this.updateStatusMessage(sprintf(_("Last saved at %1$s", ''+new Date())));
$this.updateStatusMessage(sprintf(_("Last saved at %1$s"), ''+new Date()));
savePlugin: function () { if ($this.save_inprogress) { return; } $this.save_inprogress = true; $this.updateStatusMessage(sprintf(_("Saving at %1$s"), ''+new Date())); $this.updateDefinitionFromForm(); var json = $this.buildJSON(), url = $thi...
beforeSend: function (req) { req.setRequestHeader('X-CSRF-Crumb', $this.csrf_crumb); },
savePlugin: function () { if ($this.save_inprogress) { return; } $this.save_inprogress = true; $this.updateStatusMessage(sprintf(_("Saving at %1$s"), ''+new Date())); $this.updateDefinitionFromForm(); var errors = $('.field.error'); if (errors.le...
} if (document.getElementById('col_mpaa').checked) { result += detail.mpaa + '\t';
function saveRating(detail) { var result = ''; if (document.getElementById('col_id').checked) { result += detail.id + '\t'; } if (document.getElementById('col_title').checked) { result += detail.title + '\t'; } if (document.getElementById('col_alttitle...
this.sorts.serialize(function(ele,pos){ if (ele.retrieve("order") != pos){ order.push(ele.retrieve("pid")+"|"+pos); ele.store("order", pos);
this.sorts.serialize(function(li,pos){ if (li == ele && ele.retrieve("order") != pos){ order.push(ele.retrieve("pid")+"|"+pos)
saveSort: function(ele, copy) { var order = []; this.sorts.serialize(function(ele,pos){ if (ele.retrieve("order") != pos){ order.push(ele.retrieve("pid")+"|"+pos); ele.store("order", pos); } }); if (order.length > 0){ indicat...
if (window.WebSocket === undefined)
if (typeof window.WebSocket === 'undefined')
function scheduleUpdate() { _$_$if_WEB_SOCKETS_$_(); if (websocket.state != WebSocketsUnavailable) { if (window.WebSocket === undefined) websocket.state = WebSocketsUnavailable; else { var ws = websocket.socket; if ((ws == null || ws.readyState > 1)) { if (ws != null && websocket.state == WebSock...
if (updateTimeout == null)
if (updateTimeout == null) {
function scheduleUpdate() { if (responsePending != null && pollTimer != null) { clearTimeout(pollTimer); responsePending.abort(); responsePending = null; } if (responsePending == null) { if (updateTimeout == null) updateTimeout = setTimeout(function() { sendUpdate(); }, WT.updateDelay); else if (...
else if (commErrors) {
updateTimeoutStart = (new Date).getTime(); } else if (commErrors) {
function scheduleUpdate() { if (responsePending != null && pollTimer != null) { clearTimeout(pollTimer); responsePending.abort(); responsePending = null; } if (responsePending == null) { if (updateTimeout == null) updateTimeout = setTimeout(function() { sendUpdate(); }, WT.updateDelay); else if (...
} else { var diff = (new Date).getTime() - updateTimeoutStart; if (diff > WT.updateDelay) { clearTimeout(updateTimeout); sendUpdate(); }
function scheduleUpdate() { if (responsePending != null && pollTimer != null) { clearTimeout(pollTimer); responsePending.abort(); responsePending = null; } if (responsePending == null) { if (updateTimeout == null) updateTimeout = setTimeout(function() { sendUpdate(); }, WT.updateDelay); else if (...
tempPDF = newDoc.evaluate('
var scrape = function(newDoc, set) { var PDF; var tempPDF = newDoc.evaluate('//a[@class="noul" and div/div[contains(text(), "PDF")]]', newDoc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (!tempPDF) { // PDF xpath failed, lets try another tempPDF = newDoc.evaluate('//a[@class="noul" and contains...
if (doc.evaluate(' newItem.date = doc.evaluate('
if (doc.evaluate(' newItem.date = Zotero.Utilities.trim(doc.evaluate('
function scrape(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == "x" ) return namespace; else return null; } : null; newItem = new Zotero.Item("magazineArticle"); newItem.ISSN = "0013-0613"; newI...
var author = Zotero.Utilities.cleanString(metaTags["byl"]);
var author = Zotero.Utilities.trimInternal(metaTags["byl"]);
function scrape(doc, url) { var newItem = new Zotero.Item("newspaperArticle"); newItem.publicationTitle = "The New York Times"; newItem.ISSN = "0362-4331"; var metaTags = new Object(); if(url != undefined) { newItem.url = url; var metaTagRe = /<meta[^>]*>/gi; var nameRe = /name="([^"]+)"/i; var contentRe = /conten...
tmpTitle = Zotero.Utilities.cleanString(tmpTitle);
tmpTitle = Zotero.Utilities.trimInternal(tmpTitle);
function scrape(doc) { var newItem = new Zotero.Item("patent"); newItem.url = doc.location.href; var extraText = new String(); var tmpStr = new String(); var tmpRefs = ""; var tmpTitle = doc.title; var fontTags = doc.getElementsByTagName("font"); for(var i=0; i<fontTags.length; i++) { if (fontTags[i].getAttribute("si...
newItem.tags.push(Zotero.Utilities.cleanString(tags[j]));
newItem.tags.push(Zotero.Utilities.trimInternal(tags[j]));
function scrape (doc){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var url = doc.location.href; var newItem = new Zotero.Item("encyclopediaArticle"); var xpath = '/html/body/div[@class="text"]/fon...
author = Zotero.Utilities.cleanString(author);
author = Zotero.Utilities.trimInternal(author);
function scrape (doc){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var url = doc.location.href; var newItem = new Zotero.Item("encyclopediaArticle"); var xpath = '/html/body/div[@class="text"]/fon...
var author = Zotero.Utilities.cleanString(metaTags["Authors"]);
var author = Zotero.Utilities.trimInternal(metaTags["Authors"]);
function scrape(doc, url) { var newItem = new Zotero.Item("magazineArticle"); if(url&&url.indexOf("blogs.edweek.org")>-1) {newItem.itemType="blogPost";} newItem.url = doc.location.href; var metaTags = new Object(); var metaTagHTML = doc.getElementsByTagName("meta"); var i; ...
var title = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var title = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var abstract = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var abstract = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var applicantField = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var applicantField = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var anumber = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var anumber = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var pnumber = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var pnumber = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var CIBnumber = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var CIBnumber = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var tmpECLAnumber = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var tmpECLAnumber = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var prnumber = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var prnumber = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var date = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var date = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var inventorField = Zotero.Utilities.cleanString(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
var inventorField = Zotero.Utilities.trimInternal(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent);
function scrape(doc,url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; //Get title var xpath = "/html/body/table[2]/tbody/tr[1]/td[3]/h2"; if(doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, nul...
var note = Zotero.Utilities.cleanString(
var note = Zotero.Utilities.trimInternal(
function scrape (doc) { var n = doc.documentElement.namespaceURI; var ns = n ? function(prefix) { if (prefix == 'x') return n; else return null; } : null; var datablock = doc.evaluate('//td[@align="right" and @width="100%" and @valign="top"]', doc, ns, XPathResult.ANY_TYPE, null).iterateNext(); var...
var author = Zotero.Utilities.cleanString(metaTags["Author"]);
var author = Zotero.Utilities.trimInternal(metaTags["Author"]);
function scrape(doc, url) { var newItem = new Zotero.Item("newspaperArticle"); newItem.publicationTitle = "The International Herald Tribune"; newItem.ISSN = "0294-8052"; newItem.url = doc.location.href; var metaTags = new Object(); var metaTagHTML = doc.getElementsByTagName("meta"); for (var i = 0 ; i < metaTagHTML.l...
newItem.tags[i] = Zotero.Utilities.cleanString(newItem.tags[i].replace(" ", ", "));
newItem.tags[i] = Zotero.Utilities.trimInternal(newItem.tags[i].replace(" ", ", "));
function scrape(doc, url) { var newItem = new Zotero.Item("newspaperArticle"); newItem.publicationTitle = "The International Herald Tribune"; newItem.ISSN = "0294-8052"; newItem.url = doc.location.href; var metaTags = new Object(); var metaTagHTML = doc.getElementsByTagName("meta"); for (var i = 0 ; i < metaTagHTML.l...
temp=Zotero.Utilities.cleanString(temp.textContent).split(" ");;
temp=Zotero.Utilities.trimInternal(temp.textContent).split(" ");;
function scrape(doc,url){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var newItem=new Zotero.Item("journalArticle"); var temp; var xpath; var row; ...
newItem.abstractNote=Zotero.Utilities.cleanString(temp2.textContent);
newItem.abstractNote=Zotero.Utilities.trimInternal(temp2.textContent);
function scrape(doc,url){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var newItem=new Zotero.Item("journalArticle"); var temp; var xpath; var row; ...
temp=Zotero.Utilities.cleanString(temp.textContent).split(", ");
temp=Zotero.Utilities.trimInternal(temp.textContent).split(", ");
function scrape(doc,url){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var newItem=new Zotero.Item("journalArticle"); var temp; var xpath; var row; ...
temp=Zotero.Utilities.cleanString(temp.textContent.replace('Keywords:',''));
temp=Zotero.Utilities.trimInternal(temp.textContent.replace('Keywords:',''));
function scrape(doc,url){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var newItem=new Zotero.Item("journalArticle"); var temp; var xpath; var row; ...
Zotero.debug(Zotero.Utilities.cleanString(font.nodeValue));
Zotero.debug(Zotero.Utilities.trimInternal(font.nodeValue));
function scrape(doc) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var newItem = new Zotero.Item("newspaperArticle"); newItem.publicationTitle = "The Washington Post"; newItem.ISSN = "0740-5421"; ne...
info = Zotero.Utilities.cleanString(info.textContent);
info = Zotero.Utilities.trimInternal(info.textContent);
function scrape(doc) { var newItem = new Zotero.Item("journalArticle"); newItem.publicationTitle = "The New York Review of Books"; newItem.ISSN = "0028-7504"; var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : nu...
abstract = Zotero.Utilities.cleanString(abstract);
abstract = Zotero.Utilities.trimInternal(abstract);
function scrape(doc){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var newItem = new Zotero.Item("document"); var xpath = '//title'; var title = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TY...
newItem.abstractNote = Zotero.Utilities.cleanString(Zotero.Utilities.cleanTags(metaTags["description"]));
newItem.abstractNote = Zotero.Utilities.trimInternal(Zotero.Utilities.cleanTags(metaTags["description"]));
function scrape(doc, url) { var newItem = new Zotero.Item("blogPost"); newItem.url = doc.location.href; newItem.title = doc.title.substr(0, doc.title.indexOf(" - ")); var titleRE = new RegExp('^http://time-blog.com/([^/]*)/'); var title = titleRE.exec(doc.location.href)[1].split("_"); for (var i = 0 ; i < title.lengt...