rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (!opened && $(KEYS).index(key) >= 0) {
if (!opened && ($(KEYS).index(key) >= 0 || key == 32)) {
input.bind("focus click", self.show).keydown(function(e) { var key = e.keyCode; // open dateinput with navigation keys, or clear value on backspace or delete if (!opened && $(KEYS).index(key) >= 0) { self.show(e); return e.preventDefault(); } else if (key == 8 || key == 46) { input.val(""); } ...
function (count) { mail.selectMessage(function (msg) !msg.isRead, true, true, false, count); },
function (count) { mail.selectMessage(function (msg) true, false, true, false, count); },
function (count) { mail.selectMessage(function (msg) !msg.isRead, true, true, false, count); },
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
input.bind("focus click", self.show).keypress(function(e) { var key = e.keyCode; if (root.is(":hidden") && $(KEYS).index(key) >= 0) { self.show(e); return e.preventDefault(); } return e.shiftKey || e.ctrlKey || e.altKey || key == 9 ? true : e.preventDefault(); });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
response.messages.each(function(item) {
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); response.messages.each(function(item) {
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
if(response.lastid) lastId = response.lastid.toInt(); MBchat.updateables.poller.setLastId(lastId); var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.mod == 'M' || me.role == 'H' || me.role == 'G' || me.role == 'S' )) { var whisperBoxes = $$('.whisperBox'); w...
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
$('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$('li.graph-image .ui-icon-star').live('click', function() { var section = $(this).parent().parent().next(); if ($(section).hasClass('selected')) { $(section).removeClass('selected'); } else { $(section).addClass('selected'); }
$('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); });
input.focus(self.show).keydown(function(e) { var key = e.keyCode; if (root.is(":hidden") && $([75, 76, 38, 39, 74, 72, 40, 37]).index(key) >= 0) { self.show(e); return e.preventDefault(); } return e.shiftKey || e.ctrlKey || e.altKey || key == 9 ? true : e.preventDefault(); });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
input.focus(self.show).keydown(function(e) { var key = e.keyCode; // open dateinput with navigation keyw if (root.is(":hidden") && $([75, 76, 38, 39, 74, 72, 40, 37]).index(key) >= 0) { self.show(e); return e.preventDefault(); } // allow tab return e.shiftKey || e.ctrlKey || e.altKey || key ...
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); response.messages.each(function(item) {
response.messages.each(function(item) {
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); ...
if(response.lastid) lastId = response.lastid.toInt(); MBchat.updateables.poller.setLastId(lastId); var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.mod == 'M' || me.role == 'H' || me.role == 'G' || me.role == 'S' )) { var whisperBoxes = $$('.whisperBox'); w...
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); ...
return DONE(result);
return DONE();
function(result) { // return z.revert(r); result.y = z.revert(r);// BigInteger.log("stepping_modPow 3:result=" + result ); //return BREAK; return DONE(result); },
function (opt) template.map(buffer.pageInfo[opt][0](), util.identity, ", "),
setTimeout(function () { doc.body.removeChild(indicator); }, 500);
function (opt) template.map(buffer.pageInfo[opt][0](), util.identity, ", "),
function(result) {
function() {
function(result) { // return z.revert(r); result.y = z.revert(r);// BigInteger.log("stepping_modPow 3:result=" + result ); //return BREAK; return DONE(); },
result.y = z.revert(r);
var result = z.revert(r);
function(result) { // return z.revert(r); result.y = z.revert(r);// BigInteger.log("stepping_modPow 3:result=" + result ); //return BREAK; return DONE(); },
return DONE();
return DONE(result);
function(result) { // return z.revert(r); result.y = z.revert(r);// BigInteger.log("stepping_modPow 3:result=" + result ); //return BREAK; return DONE(); },
$.each(fns, function() {
els.each(function() { var msgs = [], el = $(this).unbind(event).data("messages", msgs); $.each(fns, function() {
$.each(fns, function() { var fn = this, match = fn[0]; // match found if (el.filter(match).length) { // execute a validator function var returnValue = fn[1].call(self, el, el.val()); // validation failed. multiple substitutions can be returned with an array ...
if (msgs.length) { errs.push({input: el, messages: msgs}); el.trigger("oninvalid", [msgs]); if (conf.errorInputEvent) { el.bind(event, function(e) { self.checkValidity(el, e); }); } } if (conf.singleError && errs.length) { return false; } });
$.each(fns, function() { var fn = this, match = fn[0]; // match found if (el.filter(match).length) { // execute a validator function var returnValue = fn[1].call(self, el, el.val()); // validation failed. multiple substitutions can be returned with an array ...
input.focus(self.show).keypress(function(e) {
input.bind("focus click", self.show).keydown(function(e) {
input.focus(self.show).keypress(function(e) { var key = e.keyCode; // open dateinput with navigation keyw if (root.is(":hidden") && $(KEYS).index(key) >= 0) { self.show(e); return e.preventDefault(); } // allow tab return e.shiftKey || e.ctrlKey || e.altKey || key == 9 ? true : e.preventDefa...
if (root.is(":hidden") && $(KEYS).index(key) >= 0) {
if (!opened && $(KEYS).index(key) >= 0) {
input.focus(self.show).keypress(function(e) { var key = e.keyCode; // open dateinput with navigation keyw if (root.is(":hidden") && $(KEYS).index(key) >= 0) { self.show(e); return e.preventDefault(); } // allow tab return e.shiftKey || e.ctrlKey || e.altKey || key == 9 ? true : e.preventDefa...
el.trigger("oninvalid", [msgs]);
el.trigger("OI", [msgs]);
els.each(function() { // field and it's error message container var msgs = [], el = $(this).unbind(event).data("messages", msgs); // loop all validator functions $.each(fns, function() { var fn = this, match = fn[0]; // match found if (el.filter(matc...
function (opt) template.map(buffer.pageInfo[opt][0](), util.identity, ", "),
let list = template.map(option, function (option) { let opt = buffer.pageInfo[option]; return opt ? template.table(opt[1], opt[0](true)) : undefined; }, <br/>);
function (opt) template.map(buffer.pageInfo[opt][0](), util.identity, ", "),
}
} else if (key == 8 || key == 46) { input.val(""); }
input.bind("focus click", self.show).keydown(function(e) { var key = e.keyCode; // open dateinput with navigation keyw if (!opened && $(KEYS).index(key) >= 0) { self.show(e); return e.preventDefault(); } // allow tab return e.shiftKey || e.ctrlKey || e.altKey || key == 9 ? true : e.preventDefa...
i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nod...
function(h){return h===b===e});else if(typeof b==="string"){var f=c.grep(a,function(h){return h.nodeType===1});if(va.test(b))return c.filter(b,f,!e);else b=c.filter(b,a)}return c.grep(a,function(h){return c.inArray(h,b)>=0===e})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,f=0,h=this.length;...
i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nod...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
delete R.attributes.contenteditable;},style:function(R){var S=R.children[0];S&&S.value&&(S.value=e.trim(S.value));if(!R.attributes.type)R.attributes.type='text/css';},title:function(R){var S=R.children[0];S&&(S.value=R.attributes._cke_title||'');}},attributes:{'class':function(R,S){return e.ltrim(R.replace(/(?:^|\s+)ck...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
});return R;};j.add('htmldataprocessor',{requires:['htmlwriter'],init:function(R){var S=R.dataProcessor=new a.htmlDataProcessor(R);S.writer.forceSimpleAmpersand=R.config.forceSimpleAmpersand;S.dataFilter.addRules(v);S.dataFilter.addRules(w);S.htmlFilter.addRules(x);S.htmlFilter.addRules(y);}});a.htmlDataProcessor=funct...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
});return R;};j.add('htmldataprocessor',{requires:['htmlwriter'],init:function(R){var S=R.dataProcessor=new a.htmlDataProcessor(R);S.writer.forceSimpleAmpersand=R.config.forceSimpleAmpersand;S.dataFilter.addRules(v);S.dataFilter.addRules(w);S.htmlFilter.addRules(x);S.htmlFilter.addRules(y);}});a.htmlDataProcessor=funct...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
});return R;};j.add('htmldataprocessor',{requires:['htmlwriter'],init:function(R){var S=R.dataProcessor=new a.htmlDataProcessor(R);S.writer.forceSimpleAmpersand=R.config.forceSimpleAmpersand;S.dataFilter.addRules(v);S.dataFilter.addRules(w);S.htmlFilter.addRules(x);S.htmlFilter.addRules(y);}});a.htmlDataProcessor=funct...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Component...
w.indentClassMap={};for(var v=0;v<t.config.indentClasses.length;v++)w.indentClassMap[t.config.indentClasses[v]]=v+1;}w.startDisabled=u=='outdent';};function r(t){return t.getComputedStyle('direction')=='ltr'?'margin-left':'margin-right';};function s(t){return t.type=1&&t.is('li');};q.prototype={exec:function(t){var u=t...
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Component...
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Component...
}h.setMarker(v,N,'indent_processed',true);return true;};var z=t.getSelection(),A=z.createBookmarks(true),B=z&&z.getRanges(true),C,D=function(N){return!N.hasAttribute('_cke_bookmark');},E=B.createIterator();while(C=E.getNextRange()){C.shrink(1);if(C.endContainer.getName()=='body')C.setEndAt(C.endContainer.getLast(D),2);...
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Component...
},
}
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:...
0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configurat...
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:...
navi = api.getRoot().parent().find(conf.navi),
navi = find(api.getRoot(), conf.navi),
this.each(function() { var api = $(this).data("scrollable"), navi = api.getRoot().parent().find(conf.navi), buttons = api.getNaviButtons(), cls = conf.activeClass, history = conf.history && $.fn.history; // @deprecated stuff if (api) { ret = api; } api.getNaviButtons = function() { r...
keys[key].each(function(k) { ret.accidentals.push(Object.clone(k)); });
key.accidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch - mid; acc.verticalPos = pitch; });
keys[key].each(function(k) { ret.accidentals.push(Object.clone(k)); });
b.substring(7)*1;e.style.width=g+"px";r.adjustColumns();l.emit(d,"columnResized",m,g)},c,d,a,-2,-1)}};this.adjustColumns=function(){var c=q.firstChild,a=i.firstChild,b=0,e=0;e=i.lastChild.className.split(" ")[0];var h=f.getCssRule("#"+d.id+" ."+e);if(p)a=a.firstChild;if(!f.isHidden(d)){for(var g=0,m=a.childNodes.length...
b.substring(7)*1;e.style.width=g+"px";r.adjustColumns();l.emit(d,"columnResized",m,parseInt(g))},c,d,a,-2,-1)}};this.adjustColumns=function(){var c=q.firstChild,a=i.firstChild,b=0,e=0;e=i.lastChild.className.split(" ")[0];var h=f.getCssRule("#"+d.id+" ."+e);if(p)a=a.firstChild;if(!f.isHidden(d)){for(var g=0,m=a.childNo...
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=o(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"mouseup","","")};this.resizeHandleMDown=function(c,a){var b=c.parentNode.parent...
return $(this).text().match(/^X:/m);
return $(this).text().match(/^\s*X:/m);
var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { return $(this).text().match(/^X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get(); } });
setTimeout( function(){ marker.updateInfoWindow() }, 500);
setTimeout( function(){ marker.updateInfoWindow(); }, 500);
setTimeout( function(){ marker.updateInfoWindow() }, 500);
Zotero.debug(text);
downloadString, function(text) { // get marked records as RIS // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS var translator = Zote...
function(onLoad) { this.getOverlay().fadeIn(this.getConf().speed, onLoad);
function(pos, onLoad) { var conf = this.getConf(), w = $(window); if (!conf.fixed) { pos.top += w.scrollTop(); pos.left += w.scrollLeft(); } pos.position = conf.fixed ? 'fixed' : 'absolute'; this.getOverlay().css(pos).fadeIn(conf.speed, onLoad);
function(onLoad) { this.getOverlay().fadeIn(this.getConf().speed, onLoad); }, function(onClose) {
var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { var str = getABCText(this); return getABCText(this).match(/^\s*X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get();
$(elem).contents().each(function() { if (this.nodeType == 3 && !includeself) { if (this.nodeValue.match(/^\s*X:/m)) { results = results.add($(elem)); includeself = true; } } else if (this.nodeType==1) { results = results.add(getABCContainingElements(this));
var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { var str = getABCText(this); return getABCText(this).match(/^\s*X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get(); } });
this.roleDataStore.each(function(item, i, len) { if (this.payload.data.id != item.data.id) { allTree.root.appendChild(new Ext.tree.TreeNode({ id : item.data.id, text : item.data.name, payload : item.data.id, allowChildren : false, draggable : true, leaf : true, qtip : item.data.description, nodeType : 'role', icon : So...
Sonatype.Events.addListener('roleViewInit', function(cardPanel, rec, gridPanel) { var config = { payload : rec, tabTitle : 'Configuration' }; if (rec.data.userManaged == false) {} else {} cardPanel.add(new Sonatype.repoServer.DefaultRoleEditor(config)); });
this.roleDataStore.each(function(item, i, len) { if (this.payload.data.id != item.data.id) { allTree.root.appendChild(new Ext.tree.TreeNode({ id : item.data.id, text : item.data.name, payload : it...
function (args) { let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox"; let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist"); else if (liberator.forceNewTab) MsgOpenNewTabForFolder(folder.URI); else SelectFolder(fol...
["folderPaneVisible", "messagePaneVisible", "msgHdr"].forEach(function(opt){ if (opt in params) args[opt] = params[opt]; });
function (args) { let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox"; let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist");...
$('#addValue-'+ id).live('keypress', function(evt) {
$('#addValue-'+ id).live('keyup', function(evt) {
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' ...
},commit:function(h,i){if(this.getValue())i.setAttribute('summary',this.getValue());else i.removeAttribute('summary');}}]}]}]};};CKEDITOR.dialog.add('table',function(e){return d(e,'table');});CKEDITOR.dialog.add('tableProperties',function(e){return d(e,'tableProperties');});})();
(function(){var a=/^(\d+(?:\.\d+)?)(px|%)$/,b=/^(\d+(?:\.\d+)?)px$/,c=function(e){var f=this.id;if(!e.info)e.info={};e.info[f]=this.getValue();};function d(e,f){var g=function(i){return new CKEDITOR.dom.element(i,e.document);},h=e.plugins.dialogadvtab;return{title:e.lang.table.title,minWidth:310,minHeight:CKEDITOR.env....
},commit:function(h,i){if(this.getValue())i.setAttribute('summary',this.getValue());else i.removeAttribute('summary');}}]}]}]};};CKEDITOR.dialog.add('table',function(e){return d(e,'table');});CKEDITOR.dialog.add('tableProperties',function(e){return d(e,'tableProperties');});})();
{ var id = $(this).val(); if(id != '' && typeof extrasById[id] != 'undefined' && extrasById[id].type == 'block') hasModules = true; });
{ var id = $(this).val(); if(id !== $('#extraForBlock').val()) { if(id != '' && typeof extrasById[id] != 'undefined' && extrasById[id].type == 'block') hasModules = true; } });
$('.linkedExtra input:hidden').each(function() { var id = $(this).val(); if(id != '' && typeof extrasById[id] != 'undefined' && extrasById[id].type == 'block') hasModules = true; });
Zotero.Utilities.HTTP.doPost("http:
Zotero.Utilities.HTTP.doPost("http: var doiregex = /DOI\s+-\s(.+)/; var doi = doiregex.exec(text); var jaregex = /JA\s+-\s(.+)/; var ja = jaregex.exec(text);
Zotero.Utilities.HTTP.doPost("http://ieeexplore.ieee.org/xpls/citationAct", post, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", func...
var url = urls.shift(); var is = isRe.exec(url); var pu = puRe.exec(url); var arnumber = articleRe.exec(url);
Zotero.Utilities.HTTP.doPost("http://ieeexplore.ieee.org/xpls/citationAct", post, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", func...
var dupes = new Array(); for (var i = 0 ; i < item.creators.length - 1 ; i++) { if (item.creators[i].lastName + item.creators[i].firstName == item.creators[i+1].lastName + item.creators[i].firstName) { dupes.push(i + 1); } }
if(doi) { item.DOI = doi[1]; } if(ja) { item.journalAbbreviation = ja[1]; }
Zotero.Utilities.HTTP.doPost("http://ieeexplore.ieee.org/xpls/citationAct", post, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", func...
for (var i in dupes) { delete item.creators[dupes[i]]; } var dupes = []; for (var i = 0 ; i < item.creators.length ; i++) { if (item.creators[i]) { dupes.push(item.creators[i]); } } item.creators = dupes; var newurls = [url]; Zotero.Utilities.processDocuments(newurls, function(newDoc) { var xpath = ' var textElmt = new...
pdfurl = "http: item.attachments.push({url:pdfurl, title:"IEEE Xplore PDF", mimeType:"application/pdf"}); item.complete();
Zotero.Utilities.HTTP.doPost("http://ieeexplore.ieee.org/xpls/citationAct", post, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", func...
calculateMeta(null, $(this));
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrit...
$('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title));
if(typeof pageID == 'undefined' || pageID != 1) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); }
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrit...
$(this).removeClass('toload') console.info($(this).attr('src'));
$(this).removeClass('toload');
$('.toload.gc-img').each(function () { window_top = $(window).height() + $(window).scrollTop(); var elem_top = $(this).offset().top; if ((window_top > elem_top) && (elem_top != 0)) { show_lazy_graph(this); $(this).removeClass('toload') ...
if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1];
if (text.match(/^L3\s+-\s*(.*)/m)) { item.DOI = text.match(/^L3\s+\-\s*(.*)/m)[1];
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
if (text.match("DO")) { item.DOI = text.match(/DO\s+\-\s*(.*)/)[1];
if (text.match(/^DO\s+-\s*(.*)/m)) { item.DOI = text.match(/^DO\s+-\s*(.*)/m)[1];
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1];
if (text.match(/^T1\s+-/m)) { item.title = text.match(/^T1\s+-\s*(.*)/m)[1];
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
item.itemType = "journalArticle";
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
this.editKeyDown=function(a,b){if(e!=a.id)if($(a).hasClass("Wt-suggest-onedit"))e=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)e=a.id;else{e=null;return true}var i=m?c.getElement(m):null;if(r()&&i)if(b.keyCode==13||b.keyCode==9){s(i);c.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}...
function(a,b){if(m(a))if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(f!=a.id){k();f=a.id;n.refilter()}else{f=null;k()}};this.editKeyDown=function(a,b){if(!m(a))return true;if(f!=a.id)if($(a).hasClass("Wt-suggest-onedit"))f=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)f=a.id;else{f=null;return tru...
this.editKeyDown=function(a,b){if(e!=a.id)if($(a).hasClass("Wt-suggest-onedit"))e=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)e=a.id;else{e=null;return true}var i=m?c.getElement(m):null;if(r()&&i)if(b.keyCode==13||b.keyCode==9){s(i);c.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}...
if (g_IsIE)
if (g_IsIE) {
GDownloadUrl(vocabsQuery, function(pData, pResponseCode) { if(pResponseCode == 200) { var XmlDoc = GXml.parse(pData); if (g_IsIE) XmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } // get the concept tag (i...
if (aConcepts.length == 0) {
if (aConcepts.length === 0) {
GDownloadUrl(vocabsQuery, function(pData, pResponseCode) { if(pResponseCode == 200) { var XmlDoc = GXml.parse(pData); if (g_IsIE) XmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } // get the concept tag (i...
width: oWidth}, conf.speed, function() { if (conf.fixed) { pos.top -= w.scrollTop(); pos.left -= w.scrollLeft(); pos.position = 'fixed'; img.add(overlay).css(pos); }
width: oWidth}, conf.speed, function() {
width: oWidth}, conf.speed, function() { if (conf.fixed) { pos.top -= w.scrollTop(); pos.left -= w.scrollLeft(); pos.position = 'fixed'; img.add(overlay).css(pos); } // set close button and content over the image overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() { ...
CKEDITOR.dialog.add('specialchar',function(a){var b,c=a.lang.specialChar,d=function(k){var l=a.getSelection(),m=l.getRanges(),n,o;a.fire('saveSnapshot');for(var p=0,q=m.length;p<q;p++){n=m[p];n.deleteContents();o=CKEDITOR.dom.element.createFromHtml(k);n.insertNode(o);}n.moveToPosition(o,CKEDITOR.POSITION_AFTER_END);n.s...
CKEDITOR.dialog.add('specialchar',function(a){var b,c=a.lang.specialChar,d=function(k){var l=a.getSelection(),m=l.getRanges(true),n,o;a.fire('saveSnapshot');for(var p=m.length-1;p>=0;p--){n=m[p];n.deleteContents();o=CKEDITOR.dom.element.createFromHtml(k);n.insertNode(o);}if(n){n.moveToPosition(o,CKEDITOR.POSITION_AFTER...
CKEDITOR.dialog.add('specialchar',function(a){var b,c=a.lang.specialChar,d=function(k){var l=a.getSelection(),m=l.getRanges(),n,o;a.fire('saveSnapshot');for(var p=0,q=m.length;p<q;p++){n=m[p];n.deleteContents();o=CKEDITOR.dom.element.createFromHtml(k);n.insertNode(o);}n.moveToPosition(o,CKEDITOR.POSITION_AFTER_END);n.s...
newItem.date = Zotero.Utilities.cleanString(dates[0].text().toString());
newItem.date = Zotero.Utilities.trimInternal(dates[0].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("report"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.replace(/<...
var noteStr = Zotero.Utilities.cleanString(descriptions[j].text().toString());
var noteStr = Zotero.Utilities.trimInternal(descriptions[j].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("report"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.replace(/<...
var subjectValue = Zotero.Utilities.cleanString(subjects[j].text().toString());
var subjectValue = Zotero.Utilities.trimInternal(subjects[j].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("report"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.replace(/<...
var identifier = Zotero.Utilities.cleanString(identifiers[j].text().toString());
var identifier = Zotero.Utilities.trimInternal(identifiers[j].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("report"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.replace(/<...
line.each(function(el) { if (word_list.length !== 0) { if (word_list[0].skip) { switch (word_list[0].to) { case 'next': if (el.el_type === 'note' && el.pitch !== null && !inSlur) word_list.shift(); break; case 'slur': if (el.el_type === 'note' && el.pitch !== null) word_list.shift(); break; case 'bar': if (el.el_type =...
if (legalAccents.detect(function(acc) { return (ret[1] === acc); }))
line.each(function(el) { if (word_list.length !== 0) { if (word_list[0].skip) { switch (word_list[0].to) { case 'next': if (el.el_type === 'note' && el.pitch !== null && !inSlur) word_list.shift(); break; case 'slur': if (el.el_type === 'note' && el.pitch !== null) word_list.shift(); break; ...
searchTypes.splice( 0, 0, { value : 'quick', text : 'Keyword Search',
searchTypes.push( { value : 'classname', text : 'Classname Search',
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { //keyword is the default, we always want first in list searchTypes.splice( 0, 0, { value : 'quick', text : 'Keyword Search', scope : panel, handler : panel.switchSearchType, defaultQuickSearch : true, // use the default sto...
handler : panel.switchSearchType, defaultQuickSearch : true,
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { //keyword is the default, we always want first in list searchTypes.splice( 0, 0, { value : 'quick', text : 'Keyword Search', scope : panel, handler : panel.switchSearchType, defaultQuickSearch : true, // use the default sto...
showArtifactContainer : function() { return false; }, columnModel : new Ext.grid.ColumnModel({ columns: [ { id: 'group', header: "Group", dataIndex: 'groupId', sortable:true }, { id: 'artifact', header: "Artifact", dataIndex: 'artifactId', sortable:true }, { id: 'version', header: "Version", dataIndex: 'version', sorta...
handler : panel.switchSearchType,
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { //keyword is the default, we always want first in list searchTypes.splice( 0, 0, { value : 'quick', text : 'Keyword Search', scope : panel, handler : panel.switchSearchType, defaultQuickSearch : true, // use the default sto...
return true;
return value.search(/^[a-z.]*[A-Z]/) == 0;
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { //keyword is the default, we always want first in list searchTypes.splice( 0, 0, { value : 'quick', text : 'Keyword Search', scope : panel, handler : panel.switchSearchType, defaultQuickSearch : true, // use the default sto...
panel.grid.store.baseParams['q'] = value;
panel.grid.store.baseParams['cn'] = value;
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { //keyword is the default, we always want first in list searchTypes.splice( 0, 0, { value : 'quick', text : 'Keyword Search', scope : panel, handler : panel.switchSearchType, defaultQuickSearch : true, // use the default sto...
var author = Zotero.Utilities.cleanString(doc.evaluate('
var author = Zotero.Utilities.trimInternal(doc.evaluate('
Zotero.Utilities.processDocuments(records, function(doc) { var item = new Zotero.Item("bookSection"); var author = Zotero.Utilities.cleanString(doc.evaluate('//div[@id="content"]/p[strong="Author"]', doc, null, XPathResult.ANY_TYPE, null).iterateNext().lastChild.textContent); item.creators.push(Zotero.Utilities.cle...
item.title = Zotero.Utilities.cleanString(doc.evaluate(' var pubdetails = Zotero.Utilities.cleanString(doc.evaluate('
item.title = Zotero.Utilities.trimInternal(doc.evaluate(' var pubdetails = Zotero.Utilities.trimInternal(doc.evaluate('
Zotero.Utilities.processDocuments(records, function(doc) { var item = new Zotero.Item("bookSection"); var author = Zotero.Utilities.cleanString(doc.evaluate('//div[@id="content"]/p[strong="Author"]', doc, null, XPathResult.ANY_TYPE, null).iterateNext().lastChild.textContent); item.creators.push(Zotero.Utilities.cle...
var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); }
setTimeout(function() { if (!e.isDefaultPrevented()) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } } }, 1);
this.each(function() { var api = $(this).data("scrollable"), navi = find(api.getRoot(), conf.navi), buttons = api.getNaviButtons(), cls = conf.activeClass, history = conf.history && $.fn.history; // @deprecated stuff if (api) { ret = api; } api.getNaviButtons = function() { return b...
a.id;r=false}else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40){i=a.id;r=true}else{i=null;return true}var k=n?e.getElement(n):null;if(g()&&k)if(b.keyCode==13||b.keyCode==9){u(k);e.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||b.keyCode==34||b.keyCode==33...
b.keyCode==40){i=a.id;r=true}else{i=null;return true}var k=n?e.getElement(n):null;if(g()&&k)if(b.keyCode==13||b.keyCode==9){t(k);e.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||b.keyCode==34||b.keyCode==33){if(b.type.toUpperCase()=="KEYDOWN"){G=true;e.cancelEvent(...
a.id;r=false}else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40){i=a.id;r=true}else{i=null;return true}var k=n?e.getElement(n):null;if(g()&&k)if(b.keyCode==13||b.keyCode==9){u(k);e.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||b.keyCode==34||b.keyCode==33...
newItem.tags.push(Zotero.Utilities.cleanString(tags[j]));
newItem.tags.push(Zotero.Utilities.trimInternal(tags[j]));
Zotero.Utilities.HTTP.doGet(host+getString1+title+getString2, function(text){ var tagRe = new RegExp('>'+title+'</a>[^\[]*\\[([^\\]]*)\]', 'i'); var m = tagRe.exec(text); if(m[1] != "unclassified"){ var tagstring = m[1].replace("&amp;", "&", "g"); var tags = tagstring.split(";") for(var j in tags) { ...
author = Zotero.Utilities.cleanString(author);
author = Zotero.Utilities.trimInternal(author);
Zotero.Utilities.HTTP.doGet(host+getString1+title+getString2, function(text){ var tagRe = new RegExp('>'+title+'</a>[^\[]*\\[([^\\]]*)\]', 'i'); var m = tagRe.exec(text); if(m[1] != "unclassified"){ var tagstring = m[1].replace("&amp;", "&", "g"); var tags = tagstring.split(";") for(var j in tags) { ...
if(!u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),w.getValueOf('replace','txtReplaceCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'hbox',widths:['230px','90px'],children:[{...
if(!v.replace(x,x.getValueOf('replace','txtFindReplace'),x.getValueOf('replace','txtReplace'),x.getValueOf('replace','txtReplaceCaseChk'),x.getValueOf('replace','txtReplaceWordChk'),x.getValueOf('replace','txtReplaceCyclic')))alert(i.lang.findAndReplace.notFoundMsg);}}]},{type:'hbox',widths:['230px','90px'],children:[{...
if(!u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),w.getValueOf('replace','txtReplaceCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'hbox',widths:['230px','90px'],children:[{...
else { interceptClickEvent = true; }
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); if ($(element).hasClassName('tx-disable-confirm')) { doAction(); return; } runModalDialog(doAction); } });
body.id = configId;
body.id = config.id;
this.frame.addEventListener('load', function(e) { var frame = config.frame; var body = frame.contentDocument.getElementsByTagName('body')[0]; body.id = configId; // Allows for prefixing styles with "#GM_config" buildConfigWin(body, frame.contentDocument.getElementsByTagName('he...
conf[key] = parseFloat(val, 10);
if (val || val === 0) {; conf[key] = parseFloat(val, 10); }
$.each("min,max,step,value".split(","), function(i, key) { var val = input.attr(key); conf[key] = parseFloat(val, 10); });
$.post($(this).attr("href"), function(data) {
$.get($(this).attr("href"), function(data) {
$(document).ready(function() { /** * Handle the OpenID information Box. * It will open / hide the little popup */ $("#ShowOpenIDdesc").click(function() { if($("#OpenIDDescription").hasClass("showing")) { $("#OpenIDDescription").hide().removeClass("showing"); } else { $("#OpenIDDescription").show().addClass("s...
validator = $(form).find('form').validate();
$form = $(formContainer).find('form'); validator = $form.validate();
dialogOptions[okButton] = function() { validator = $(form).find('form').validate(); // Post to server and construct callback if ($(form).find('form').valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(a...
if ($(form).find('form').valid()) {
if ($form.valid()) {
dialogOptions[okButton] = function() { validator = $(form).find('form').validate(); // Post to server and construct callback if ($(form).find('form').valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(a...
$(form).attr("action"), $(form).serialize(),
$form.attr("action"), $form.serialize(),
dialogOptions[okButton] = function() { validator = $(form).find('form').validate(); // Post to server and construct callback if ($(form).find('form').valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(a...
validator = null;
dialogOptions[okButton] = function() { validator = $(form).find('form').validate(); // Post to server and construct callback if ($(form).find('form').valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(a...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,g){function n(c){var e,h,i,q=a.getElement(t).firstChild.childNodes;h=e=0;for(i=q.length;h<i;h++){var s=q[h];if(a.hasTag(s,"COLGROUP")){h=-1;q=s.childNodes;i=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(e==c)return s;else++e}return null}fu...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var f,j,l,q=a.getElement(t).firstChild.childNodes;j=f=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(f==c)return s;else++f}return null}fu...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,g){function n(c){var e,h,i,q=a.getElement(t).firstChild.childNodes;h=e=0;for(i=q.length;h<i;h++){var s=q[h];if(a.hasTag(s,"COLGROUP")){h=-1;q=s.childNodes;i=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(e==c)return s;else++e}return null}fu...
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A39E',version:'3.2.1',revision:'5372',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?...
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A8LE4JO',version:'3.4.1',revision:'5892',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckedito...
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A39E',version:'3.2.1',revision:'5372',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?...
var firstName = authors[j].ForeName.text().toString();
firstName = authors[j].ForeName.text().toString(); } var suffix = authors[j].Suffix.text().toString(); if(suffix && firstName != "") { firstName += ", " + authors[j].Suffix.text().toString();
Zotero.Utilities.HTTP.doGet(newUri, function(text) { // Remove xml parse instruction and doctype text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); var xml = new XML(text); for(var i=0; i<xml.PubmedArticle.length(); i++) { var newItem = new Zotero.Item("journalArticle"); var citation = x...
title = Zotero.Utilities.cleanString(citation.dc_title.text().toString());
title = Zotero.Utilities.trimInternal(citation.dc_title.text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("journalArticle"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.re...
newItem.date = Zotero.Utilities.cleanString(dates[0].text().toString());
newItem.date = Zotero.Utilities.trimInternal(dates[0].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("journalArticle"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.re...
var noteStr = Zotero.Utilities.cleanString(descriptions[j].text().toString());
var noteStr = Zotero.Utilities.trimInternal(descriptions[j].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("journalArticle"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.re...
var subjectValue = Zotero.Utilities.cleanString(subjects[j].text().toString());
var subjectValue = Zotero.Utilities.trimInternal(subjects[j].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("journalArticle"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.re...
var identifier = Zotero.Utilities.cleanString(identifiers[j].text().toString());
var identifier = Zotero.Utilities.trimInternal(identifiers[j].text().toString());
Zotero.Utilities.HTTP.doGet(newURIs, function(text) { var newItem = new Zotero.Item("journalArticle"); // remove header text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // fix non-compliant XML tags (colons) text = text.replace(/<dc:/g, "<dc_").replace(/<\/dc:/g, "</dc_"); text = text.re...
var biblink = doc.evaluate('
var biblink = 'http:
Zotero.Utilities.processDocuments(arts, function(doc) { var biblink = doc.evaluate('//a[contains(text(), "BibTex")]', doc, ns, XPathResult.ANY_TYPE, null).iterateNext().href; var newurl = doc.location.href; var tags = new Array(); if (doc.evaluate('//a[@class="keyword"]', doc, ns, XPathResult.ANY_TYPE, null).itera...
item.complete();
item.abstractNote = abstractNote; item.complete();
Zotero.Utilities.processDocuments(arts, function(doc) { var biblink = doc.evaluate('//a[contains(text(), "BibTex")]', doc, ns, XPathResult.ANY_TYPE, null).iterateNext().href; var newurl = doc.location.href; var tags = new Array(); if (doc.evaluate('//a[@class="keyword"]', doc, ns, XPathResult.ANY_TYPE, null).itera...
var ajax = new XMLHttpRequest(),
var ajax = new window.XMLHttpRequest(),
return function (path, context, timeout, retry) { var ajax = new XMLHttpRequest(), include_timeout; /** * Send the Ajax requst and start timeout timer. * * @return NULL. * @note This code is a separate function to reduce code duplication. ...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,h){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,i){function o(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,k...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,h){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k...
&& repoRecord.get( 'repoType' ) != 'virtual' ) {
&& repoRecord.data['repoType'] != 'virtual' ) {
function( menu, repoRecord, contentRecord ) { if ( Sonatype.lib.Permissions.checkPermission( 'nexus:index', Sonatype.lib.Permissions.DELETE ) && repoRecord.get( 'repoType' ) != 'virtual' ) { menu.add({ text: 'ReIndex', handler: function( rec ) { REINDEX_ACTION( rec, true ); ...
var submit_params = $.param(Pfs.UI.browserInfo()); $(this).attr('href', $(this).attr('href') + '?' + submit_params);
$(this).attr('href', $(this).attr('href'));
$(document).ready(function () { // Tweak the body tag to indicate JS is working. $(document.body).removeClass('noJS').addClass('hasJS'); // Wire up the advanced search toggle. $('#advanced_search_toggle > a').click(function () { ...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,i){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,h){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,i){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k...
panel.showArtifact(null);
panel.showArtifact(null, artifactContainer);
Sonatype.Events.addListener('fileContainerUpdate', function(artifactContainer, data) { var panel = artifactContainer.find('name', 'artifactInformationPanel')[0]; if (data == null || !data.leaf) { panel.showArtifact(null); } else { panel.showArtifact(data); } });