rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var a = this.moved(tree_component.cut_copy.copy_nodes,obj.children("ul:eq(0)").children("li:last").children("a:eq(0)"),"after", true);
var a = this.moved(tree_component.cut_copy.copy_nodes,obj.children("ul:eq(0)").children("li:last").children("a:eq(0)"),"after", false, true);
paste : function (obj, position) { if(this.locked) return this.error("LOCKED"); var root = false; if(obj == -1) { root = true; obj = this.container; } else obj = obj ? this.get_node(obj) : this.selected; if(!root && (!obj || !obj.size())) return this.error("PASTE: NO NODE SELECTED"); if(!tree_compo...
32&&a.keyCode<125:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};this.px=function(a,b){return G(w(a,b))};this.pxself=function(a,b){return G(a.style[b])};this.pctself=function(a,b){return U(a.style[b],0)};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;retu...
if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||g.isIE?true:g.isOpera?a.keyCode==13||a.keyCode==27||a.keyCode>=32&&a.keyCode<125:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};this.px=function(a,b){return G(w(a,b))};this.pxself=function(a...
32&&a.keyCode<125:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};this.px=function(a,b){return G(w(a,b))};this.pxself=function(a,b){return G(a.style[b])};this.pctself=function(a,b){return U(a.style[b],0)};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;retu...
a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.IEwidth=function(a,b,e){if(a.parentNode){var k=a.parentNode.clientWidth-h.px(a,"marginLeft")-h.px(a,"marginRigh...
a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.IEwidth=function(a,b,e){if(a.parentNode){var j=a.parentNode.clientWidth-g.px(a,"marginLeft")-g.px(a,"marginRigh...
a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.IEwidth=function(a,b,e){if(a.parentNode){var k=a.parentNode.clientWidth-h.px(a,"marginLeft")-h.px(a,"marginRigh...
this.px=function(a,b){a=w(a,b);if(a=="auto"||a==null)return 0;return X.test(a)?parseFloat(a):0};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?g.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0...
this.px=function(a,b){a=w(a,b);if(a=="auto"||a==null)return 0;return X.test(a)?parseFloat(a):0};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?h.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0...
this.px=function(a,b){a=w(a,b);if(a=="auto"||a==null)return 0;return X.test(a)?parseFloat(a):0};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?g.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0...
if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.IEwidth=function(a,b,f){i...
function(a){if(a.style.display=="none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?g.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=fu...
if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.IEwidth=function(a,b,f){i...
2?a[1]:"0")?parseFloat(f):0};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?k.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(a))&&a.length==2...
"none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?k.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(a))&&a.length==2?a[1]:"0")?parseFloat(a):0};this.pctself=function(a,b){a=a.style[b];if(a=="...
2?a[1]:"0")?parseFloat(f):0};this.isHidden=function(a){if(a.style.display=="none")return true;else{a=a.parentNode;return a!=null&&a.tagName.toLowerCase()!="body"?k.isHidden(a):false}};this.pxself=function(a,b){a=a.style[b];if(a=="auto"||a==null)return 0;return(a=(a=/^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(a))&&a.length==2...
$("persistent_url").update("http:
$("persistent_url").innerHTML = "http:
function pickTuneAndPdf(pdf_id, folder, abc_file){ var sel = abc_contents_output[abc_file]; $("persistent_url").update("http://" + window.location.host + "/comparison?tune=" + abc_file); var filename = abc_file.substring(0, abc_file.lastIndexOf('.')); var pdf_file = "/testdata/" + folder + '/' + filename.gsub('\\+', '%...
$("abcm2ps_output").update(sel.out.gsub(' ', '&nbsp;').gsub('\n', '<br />'));
$("abcm2ps_output").innerHTML = sel.out.gsub(' ', '&nbsp;').gsub('\n', '<br />');
function pickTuneAndPdf(pdf_id, folder, abc_file){ var sel = abc_contents_output[abc_file]; $("persistent_url").update("http://" + window.location.host + "/comparison?tune=" + abc_file); var filename = abc_file.substring(0, abc_file.lastIndexOf('.')); var pdf_file = "/testdata/" + folder + '/' + filename.gsub('\\+', '%...
play: function() {
play: function() {http:
play: function() { // do not start additional timer if already exists if (timer) { return; } // onBeforePlay var e = $.Event("onBeforePlay"); fire.trigger(e); if (e.isDefaultPrevented()) { return self; } stopped = false; // construct new timer timer = setInterval(tabs....
api.next();
api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new timer timer = setInterval(function() { api.next(); }, opts.interval); api.next(); };
var t = editArea.get(); if (abcParser === null) abcParser = new AbcParse(); abcParser.parse(t); playEmbedded.play(abcParser.getTune());
function play(){ var t = editArea.get(); if (abcParser === null) abcParser = new AbcParse(); abcParser.parse(t); //selection = editArea.getSelection(); playEmbedded.play(abcParser.getTune());}
var translation = this.lookup(scope, options);
var translation; try { translation = this.lookup(scope, options); } catch (error) {} if (!translation) { return this.missingTranslation(scope); }
I18n.pluralize = function(count, scope, options) { var translation = this.lookup(scope, options); var message; options = this.prepareOptions(options); options["count"] = count.toString(); switch(Math.abs(count)) { case 0: message = translation["zero"] || translation["none"] || translation["other"] || this.missingTra...
message = translation["one"] || this.missingTranslation(scope, "one");;
message = translation["one"] || this.missingTranslation(scope, "one");
I18n.pluralize = function(count, scope, options) { var translation = this.lookup(scope, options); var message; options = this.prepareOptions(options); options["count"] = count.toString(); switch(Math.abs(count)) { case 0: message = translation["zero"] || translation["none"] || translation["other"] || this.missingTra...
message = translation["other"] || this.missingTranslation(scope, "other");;
message = translation["other"] || this.missingTranslation(scope, "other");
I18n.pluralize = function(count, scope, options) { var translation = this.lookup(scope, options); var message; options = this.prepareOptions(options); options["count"] = count.toString(); switch(Math.abs(count)) { case 0: message = translation["zero"] || translation["none"] || translation["other"] || this.missingTra...
timer = pollDoScroll.defer();
timer = setTimeout(pollDoScroll, 10);
function pollDoScroll() { try { document.documentElement.doScroll('left'); } catch(e) { timer = pollDoScroll.defer(); return; } fireContentLoadedEvent(); }
var fullPoll=false;
var fullPoll=0;
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) {
var pollRequest; if(Browser.Engine.trident && Browser.Engine.version == 5) { pollRequest = new ServerReq('poll.php', function(response) { if(response.messages) { if(response.lastlid) nextLid = response.lastlid + 1; MBchat.updateables.poller.pollResponse(response.messages); } if (fullPoll == 2) { pollRequest.transmit.de...
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
nextLid = response.lastlid + 1;
if(response.lastlid) nextLid = response.lastlid + 1;
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
displayErrorMessage("read.php failure:"+errorMessage);
if(errorMessage != '') displayErrorMessage("read.php failure:"+errorMessage);
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
if (fullPoll) pollRequest.post($merge(myRequestOptions,{'lid':nextLid})); }});
if (fullPoll == 2) { pollRequest.post($merge(myRequestOptions,{'lid':nextLid})); } else { fullPoll = 0; } }
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
init : function (presenceInterval) { pollInterval = presenceInterval; fullPoll=true;
init : function (lid,presenceInterval) { lastId = lid; pollInterval = presenceInterval; pollerId = pollPresence.periodical(pollInterval,MBchat.updateables); MBchat.updateables.poller.start();
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
if (!lastId) { lastId = lid; pollerId = pollPresence.periodical(pollInterval,MBchat.updateables); if (fullPoll) pollRequest.post(myRequestOptions); } else { lastId = (lastId > lid)? lid : lastId; }
lastId = (lastId > lid)? lid : lastId;
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
if (!fullPoll) { fullPoll=true; pollRequest.post(myRequestOptions); }
if (fullPoll < 2) { fullPoll= 2; if(Browser.Engine.trident && Browser.Engine.version == 5) { pollRequest.transmit({'lid':lastId+1}); } else { pollRequest.post($merge(myRequestOptions,{'lid':lastId+1})); } }
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
lastId = (lastId < lid)? lid : lastId; if ( fullPoll) MBchat.updateables.processMessage(item);
if(lastId) { if (lid >= lastId) { if(lid > lastId+1) { displayErrorMessage("missed a log id, was "+lid+" expecting "+(lastId+1)); } lastId = lid; } } else { lastId = lid; } if ( fullPoll == 2) MBchat.updateables.processMessage(item);
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
fullPoll=false;
fullPoll=1;
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=false; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response) { if(response) { if(response.messages) { ...
if (fullPoll < 2) { fullPoll= 2;
if (fullPoll == 0) {
poller : function() { var pollerId; var lastId = null; var fullPoll=0; //0 = polling stopped, 1=polling requested to stop, but not yet done so, 2= polling running var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:...
fullPoll= 2;
poller : function() { var pollerId; var lastId = null; var fullPoll=0; //0 = polling stopped, 1=polling requested to stop, but not yet done so, 2= polling running var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:...
if(Browser.Engine.trident && Browser.Engine.version == 5) { pollRequest = new ServerReq('poll.php', function(response) { if(response.messages) { if(response.lastlid) nextLid = response.lastlid + 1; MBchat.updateables.poller.pollResponse(response.messages); } if (fullPoll == 2) { pollRequest.transmit.delay(2000,pollRequ...
var pollRequest = new Request.JSON({url:'read.php',link:'ignore',onComplete:function (r,t) { readComplete.delay(10,this,[r,t]); }});
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=0; //0 = polling stopped, 1=polling requested to stop, but not yet done so, 2= polling running var wid; var nextLid; var pollRequest; if(Browser.Engine.trident && Browser.Engine.version =...
if (fullPoll < 2) { fullPoll= 2; if(Browser.Engine.trident && Browser.Engine.version == 5) { pollRequest.transmit({'lid':lastId+1}); } else { pollRequest.post($merge(myRequestOptions,{'lid':lastId+1})); }
if (fullPoll == 0) { pollRequest.post($merge(myRequestOptions,{'lid':lastId+1}));
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=0; //0 = polling stopped, 1=polling requested to stop, but not yet done so, 2= polling running var wid; var nextLid; var pollRequest; if(Browser.Engine.trident && Browser.Engine.version =...
fullPoll= 2;
poller : function() { var pollInterval; var pollerId; var lastId = null; var fullPoll=0; //0 = polling stopped, 1=polling requested to stop, but not yet done so, 2= polling running var wid; var nextLid; var pollRequest; if(Browser.Engine.trident && Browser.Engine.version =...
var fullPoll=false;
var fullPoll=0;
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) {
var nextLid; var pollRequest; if(Browser.Engine.trident && Browser.Engine.version == 5) { pollRequest = new ServerReq('poll.php', function(response) { if(response.messages) { if(response.lastlid) nextLid = response.lastlid + 1; MBchat.updateables.poller.pollResponse(response.messages); } if (fullPoll == 2) { pollReques...
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
nextLid = response.lastlid + 1;
if(response.lastlid) nextLid = response.lastlid + 1;
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
displayErrorMessage("read.php failure:"+errorMessage);
if(errorMessage != '') displayErrorMessage("read.php failure:"+errorMessage);
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
if (fullPoll) pollRequest.post.delay(1,this,($merge(myRequestOptions,{'lid':nextLid}))); }});
if (fullPoll == 2) { pollRequest.post($merge(myRequestOptions,{'lid':nextLid})); } else { fullPoll = 0; } }
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
init : function (presenceInterval) { pollInterval = presenceInterval; fullPoll=true;
init : function (lid,presenceInterval) { lastId = lid; pollInterval = presenceInterval; pollerId = pollPresence.periodical(pollInterval,MBchat.updateables); MBchat.updateables.poller.start();
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
if (!lastId) { lastId = lid; pollerId = pollPresence.periodical(pollInterval,MBchat.updateables); if (fullPoll) pollRequest.post(myRequestOptions); } else { lastId = (lastId > lid)? lid : lastId; }
lastId = (lastId > lid)? lid : lastId;
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
if (!fullPoll) { fullPoll=true; pollRequest.post(myRequestOptions); }
if (fullPoll < 2) { fullPoll= 2; if(Browser.Engine.trident && Browser.Engine.version == 5) { pollRequest.transmit({'lid':lastId+1}); } else { pollRequest.post($merge(myRequestOptions,{'lid':lastId+1})); } }
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
if ( fullPoll) MBchat.updateables.processMessage(item);
if ( fullPoll == 2) MBchat.updateables.processMessage(item);
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
fullPoll=false;
fullPoll=1;
poller : function() { var pollerId; var lastId = null; var fullPoll=false; var pollInterval; var wid; var nextLid; var pollRequest = new Request.JSON({url:'read.php',link:'chain',onComplete: function(response,errorMessage) { if(response) { if(respons...
lastId = (lastId < lid)? lid : lastId; if ( fullPoll) MBchat.updateables.processMessage(item);
if(lastId) { if (lid >= lastId) { if(lid > lastId+1) { displayErrorMessage("missed a log id, was "+lid+" expecting "+(lastId+1)); } lastId = lid; } } else { lastId = lid; } if ( fullPoll == 2) MBchat.updateables.processMessage(item);
pollResponse : function(messages) { messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); var lid = item.lid; lastId = (lastId < lid)? lid : lastId; //This should throw away messages if lastId is null ...
if ( fullPoll) MBchat.updateables.processMessage(item);
if ( fullPoll == 2) MBchat.updateables.processMessage(item);
pollResponse : function(messages) { messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); var lid = item.lid; if(lastId) { if (lid >= lastId) { if(lid > lastId+1) { ...
this.whendone(true);
this.whendone(true,this.result);
poplevel: function() { if(this.stack.length > 0) { this.currentContext = this.stack.pop(); return true; } else { $clear(this.timerid); this.whendone(true); //signal done return false; } }.protect(),
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...
if(l.execCommand('paste')===false)l.on('dialogHide',function(o){o.removeListener();n();});else n();}});l.ui.addButton('PasteFromWord',{label:l.lang.pastefromword.toolbar,command:'pastefromword'});l.on('paste',function(o){var p=o.data,q;if((q=p.html)&&(m||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(q))){v...
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...
e,h);e={top:b.top-h.top+k,left:b.left-h.left+l};"using"in b?b.using.call(a,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;e.left-=...
e,h);e={top:b.top-h.top+k,left:b.left-h.left+l};"using"in b?b.using.call(a,e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),e=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;e.left-=...
e,h);e={top:b.top-h.top+k,left:b.left-h.left+l};"using"in b?b.using.call(a,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;e.left-=...
a.style.display="";g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.displa...
g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.display="block";if(f==g.H...
a.style.display="";g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.displa...
g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.display="block";if(f==g.H...
l]]="";a.style[r[n]]=f+"px";a.style[r[1-n]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(...
g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.display="block";if(f==g.H...
function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,k){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),o;if(k){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.display="block";if(...
function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,k){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),o;if(k){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute"...
function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,k){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),o;if(k){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.display="block";if(...
""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){J.value=L+"|"+C;if(u)J.value+="|"+D.join(",")}function e(g){if(g){if(!g||C!==g){C=g||L;E(unescape(C))}}else{C=L;E(unescape(C))}}functi...
""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){K.value=L+"|"+C;if(u)K.value+="|"+D.join(",")}function e(g){if(g){if(!g||C!==g){C=g||L;E(unescape(C))}}else{C=L;E(unescape(C))}}functi...
a.style.display="";h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e,j){a=h.getElement(a);b=h.getElement(b);var l=h.widgetPageCoordinates(b),n;if(j){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.displa...
""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var k,h;h=location.href;k=h.indexOf("#");return k>=0?h.substr(k+1):null}function b(){J.value=x+"|"+D;if(u)J.value+="|"+N.join(",")}function f(k){if(k){if(!k||D!==k){D=k||x;Y(unescape(D))}}else{D=x;Y(unescape(D))}}functi...
""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var k,h;h=location.href;k=h.indexOf("#");return k>=0?h.substr(k+1):null}function b(){J.value=x+"|"+D;if(u)J.value+="|"+O.join(",")}function f(k){if(k){if(!k||D!==k){D=k||x;Y(unescape(D))}}else{D=x;Y(unescape(D))}}functi...
a.style.display="";g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.displa...
k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this...
j=1}else{b-=q.x;b-=g.px(a,"marginLeft");j=0}if(e+E>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[C[j]]=b+"px";a.style[C[1-j]]="";a.style[w[i]]=e+"px";a.style[w[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isH...
k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this...
(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.ge...
(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=h.ge...
(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.ge...
a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1-h]]="";a.sty...
h]]="";a.style[x[k]]=f+"px";a.style[x[1-k]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Hori...
a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1-h]]="";a.sty...
if(b+a.offsetWidth>B+o.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>r+o.y){if(l>r+o.y)l=r+o.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<B)b=B+o.x-a.offsetWidth-3;if(f<r)f=r+o.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.sty...
q+n.y)l=q+n.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<E)b=E+n.x-a.offsetWidth-3;if(f<q)f=q+n.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.style.left=b-m.x+"px";a.style.top=f-m.y+"px"};this.positionXY=function(a,b,f){a=k.getElement(a);k.isHidden(a)||k.fitToWindow(a,b,...
if(b+a.offsetWidth>B+o.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>r+o.y){if(l>r+o.y)l=r+o.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<B)b=B+o.x-a.offsetWidth-3;if(f<r)f=r+o.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.sty...
console.log("global" + global);
function positionPopup(edit) { console.log("global" + global); WT.positionAtWidget(el.id, edit.id, WT.Vertical, global); }
a.style.display="";g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.displa...
g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.display="block";if(f==g.H...
B=["left","right"],r=["top","bottom"],C=g.px(a,"maxWidth")||a.offsetWidth,J=g.px(a,"maxHeight")||a.offsetHeight;if(b+C>L+o.x){l-=q.x;b=a.offsetParent.offsetWidth-(l+g.px(a,"marginRight"));l=1}else{b-=q.x;b-=g.px(a,"marginLeft");l=0}if(f+J>u+o.y){if(n>u+o.y)n=u+o.y;n-=q.y;f=a.offsetParent.offsetHeight-(n+g.px(a,"marginB...
B=["left","right"],r=["top","bottom"],C=g.px(a,"maxWidth")||a.offsetWidth,J=g.px(a,"maxHeight")||a.offsetHeight;if(b+C>L+o.x){l-=q.x;b=a.offsetParent.offsetWidth-(l+g.px(a,"marginRight"));l=1}else{b-=q.x;b-=g.px(a,"marginLeft");l=0}if(f+J>u+o.y){if(n>u+o.y)n=u+o.y;n-=q.y;f=a.offsetParent.offsetHeight-(n+g.px(a,"marginB...
l]]="";a.style[r[n]]=f+"px";a.style[r[1-n]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(...
B=["left","right"],r=["top","bottom"],C=g.px(a,"maxWidth")||a.offsetWidth,J=g.px(a,"maxHeight")||a.offsetHeight;if(b+C>L+o.x){l-=q.x;b=a.offsetParent.offsetWidth-(l+g.px(a,"marginRight"));l=1}else{b-=q.x;b-=g.px(a,"marginLeft");l=0}if(f+J>u+o.y){if(n>u+o.y)n=u+o.y;n-=q.y;f=a.offsetParent.offsetHeight-(n+g.px(a,"marginB...
s=g.widgetPageCoordinates(a.offsetParent),z=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){k-=s.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=s.x;b-=g.px(a,"marginLeft");k=0}if(f+v>u+o.y){if(h>u+o.y)h=u+o.y;h-=s.y;f=a.of...
s=g.widgetPageCoordinates(a.offsetParent),z=["left","right"],y=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,w=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){k-=s.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=s.x;b-=g.px(a,"marginLeft");k=0}if(f+w>v+o.y){if(h>v+o.y)h=v+o.y;h-=s.y;f=a.of...
s=g.widgetPageCoordinates(a.offsetParent),z=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){k-=s.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=s.x;b-=g.px(a,"marginLeft");k=0}if(f+v>u+o.y){if(h>u+o.y)h=u+o.y;h-=s.y;f=a.of...
s=["left","right"],y=["top","bottom"],I=h.px(a,"maxWidth")||a.offsetWidth,J=h.px(a,"maxHeight")||a.offsetHeight;if(b+I>H+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+h.px(a,"marginRight"));j=1}else{b-=q.x;b-=h.px(a,"marginLeft");j=0}if(e+J>u+n.y){if(l>u+n.y)l=u+n.y;l-=q.y;e=a.offsetParent.offsetHeight-(l+h.px(a,"marginB...
s=["left","right"],y=["top","bottom"],I=h.px(a,"maxWidth")||a.offsetWidth,K=h.px(a,"maxHeight")||a.offsetHeight;if(b+I>H+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+h.px(a,"marginRight"));j=1}else{b-=q.x;b-=h.px(a,"marginLeft");j=0}if(e+K>u+n.y){if(l>u+n.y)l=u+n.y;l-=q.y;e=a.offsetParent.offsetHeight-(l+h.px(a,"marginB...
s=["left","right"],y=["top","bottom"],I=h.px(a,"maxWidth")||a.offsetWidth,J=h.px(a,"maxHeight")||a.offsetHeight;if(b+I>H+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+h.px(a,"marginRight"));j=1}else{b-=q.x;b-=h.px(a,"marginLeft");j=0}if(e+J>u+n.y){if(l>u+n.y)l=u+n.y;l-=q.y;e=a.offsetParent.offsetHeight-(l+h.px(a,"marginB...
w.style.display = '';
this.positionXY = function(id, x, y) { var w = WT.getElement(id); w.style.display = ''; if (!WT.isHidden(w)) WT.fitToWindow(w, x, y, x, y);};
k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this...
j=1}else{b-=q.x;b-=g.px(a,"marginLeft");j=0}if(e+E>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[C[j]]=b+"px";a.style[C[1-j]]="";a.style[w[i]]=e+"px";a.style[w[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isH...
k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this...
(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.ge...
(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=h.ge...
(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.ge...
a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1-h]]="";a.sty...
h]]="";a.style[x[k]]=f+"px";a.style[x[1-k]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Hori...
a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1-h]]="";a.sty...
if(b+a.offsetWidth>B+o.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>r+o.y){if(l>r+o.y)l=r+o.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<B)b=B+o.x-a.offsetWidth-3;if(f<r)f=r+o.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.sty...
q+n.y)l=q+n.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<E)b=E+n.x-a.offsetWidth-3;if(f<q)f=q+n.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.style.left=b-m.x+"px";a.style.top=f-m.y+"px"};this.positionXY=function(a,b,f){a=k.getElement(a);k.isHidden(a)||k.fitToWindow(a,b,...
if(b+a.offsetWidth>B+o.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>r+o.y){if(l>r+o.y)l=r+o.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<B)b=B+o.x-a.offsetWidth-3;if(f<r)f=r+o.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.sty...
alert("Error " + ajax.status + ":\n" + ajax.responseText);
window.alert("Error " + ajax.status + ":\n" + ajax.responseText);
function post_to_server(server_URL, message, ajax, handler, extra_data) { ///TODO: Consider whether GET could be better than POST. ajax.open("POST", server_URL); ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.onreadystatechange = function () { ...
if (ajax.status != 0) {
if (ajax.status !== 0) {
function post_to_server(server_URL, message, ajax, handler) { ///TODO: Consider whether GET could be better than POST. ajax.open("POST", server_URL, true); ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.onreadystatechange = function () { if (ajax.readyState == 4) { if (ajax....
case "signon.rememberSignons": if (promptService.confirm(window, "Password management", "The KeeFox extension may not work correctly if you allow" + " Firefox to manage your passwords. Should KeeFox disable" + " the built-in Firefox password manager?")) { Application.prefs.setValue("signon.rememberSignons", false); } b...
preferenceChangeHandler: function(event) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt ser...
case "signon.rememberSignons": if (promptService.confirm(window, "Password management", "The KeeFox extension may not work correctly if you allow" + " Firefox to manage your passwords. Should KeeFox disable" + " the built-in Firefox password manager?")) { Application.prefs.setValue("signon.rememberSignons", false); } b...
preferenceChangeHandler: function(event) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt ser...
prefToArg: function (pref) { pref = pref.replace(/.*\./, ""); return util.Array.toObject(Sanitizer.prefArgList)[pref] || pref; },
prefToArg: function (pref) pref.toLowerCase().replace(/.*\./, "") }, {
prefToArg: function (pref) { pref = pref.replace(/.*\./, ""); return util.Array.toObject(Sanitizer.prefArgList)[pref] || pref; },
var img = new Image(); img.src = $(this).css('background-image').replace(/url\((.+)\)/, '$1'); })
var img = new Image(); img.src = $(this).css('background-image').replace(/^url\(\"?/, "").replace(/\"?\)$/, ""); });
function preloadImages(){ //TODO preload prev/next ? $('#facybox').find('.n, .close , .s, .w, .e, .nw, ne, sw, se').each(function() { var img = new Image(); img.src = $(this).css('background-image').replace(/url\((.+)\)/, '$1'); }) // var img = new Image(); // img.src = 'images/loading.gif'; /* TODO: remo...
search_terms_arr = lang.filter_terms_for_highlighter(search_terms)
search_terms_arr = lang.filter_terms_for_highlighter(search_terms);
function prepare_highlighter(search_terms) { var count = 0, i, j, len_before, len_after, no_morph, term, stemmed_arr = [], search_terms_arr, stemmed_word; highlight_re = []; search_terms_arr = lang.filter_terms_for_highlighter(search_terms) first_loop:for (i in search_terms_arr) { term =...
if (raw_search_terms != last_search && last_type != MORPHOLOGICAL_SEARCH) {
if (raw_search_terms != last_search) {
function prepare_new_search(){ var raw_search_terms = q_obj.value, verse_id, last_search_prepared; waiting_for_first_search = true; last_search_prepared = prepare_search(raw_search_terms); if (last_search_prepared.length == 0) return false; /// Stop any old requests since we have a new one. /// Is readyState > 0 an...
var raw_search_terms = q_obj.value, verse_id, last_search_prepared, search_type_array;
var last_search_prepared, raw_search_terms = q_obj.value, search_type_array, verse_id;
function prepare_new_search() { var raw_search_terms = q_obj.value, verse_id, last_search_prepared, search_type_array; waiting_for_first_search = true; last_search_prepared = lang.prepare_search(raw_search_terms); if (last_search_prepared.length == 0) return false; /// Stop any old requests since we have ...
if (last_search_prepared.length == 0) return false;
if (last_search_prepared.length === 0) return false;
function prepare_new_search() { var last_search_prepared, raw_search_terms = q_obj.value, search_type_array, verse_id; waiting_for_first_search = true; last_search_prepared = lang.prepare_search(raw_search_terms); if (last_search_prepared.length == 0) return false; /// Stop any old requests since we...
return search_terms.replace(" IN RED", " AS RED").replace(/\s{2,}/g, " ").replace(/\sAND\s/g, " & ").replace(/\sOR\s/g, " | ").replace(/(?:\s-|\s*\bNOT)\s/g, " -").replace(/[‘’]/g, "'").replace(/[“”]/g, '"').replace(/[\u2011-\u2015]/g, "-").replace(/([0-9]+)[:.;,\s]title/ig, "$1:0");
return search_terms.replace(" IN RED", " AS RED").replace(/\s{2,}/g, " ").replace(/\sAND\s/g, " & ").replace(/\sOR\s/g, " | ").replace(/(?:\s-|\s*\bNOT)\s/g, " -").replace(/[‘’]/g, "'").replace(/[“”]/g, '"').replace(/[\u2011-\u2015]/g, "-").replace(/([0-9]+)[:.;,\s]title/ig, "$1:0").replace(/subscription/ig, "255");
prepare_search: function (search_terms) { ///NOTE: /\s{2,}/g gets rid of double spaces within the words (e.g., "here there" becomes "here there"). ///NOTE: /\s+-\s+/g ensures that filter_array() will filter out negative words like "this - that" (i.e., "that" does not need to be h...
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.d...
"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,e){return c.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return c.dir(a,"previousSibling",e)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents...
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.d...
s["%k"] = hr;
s["%k"] = '' + hr;
Date.prototype.print = function (str) { var m = this.getMonth(); var d = this.getDate(); var y = this.getFullYear(); var wn = this.getWeekNumber(); var w = this.getDay(); var s = {}; var hr = this.getHours(); var pm = (hr >= 12); var ir = (pm) ? (hr - 12) : hr; var dy = this.getDayOfYear(); if (ir == 0) ir = 12; var m...
if (mainOptions.printMode == 'iframe') { if ($.browser.opera || (/chrome/.test(navigator.userAgent.toLowerCase()))) mainOptions.printMode = 'popup'; }
$.fn.printElement = function(options) { var mainOptions = $.extend({}, $.fn.printElement.defaults, options); //Remove previously printed iframe if exists $("[id^='printElement_']").remove(); return this.each(function() { //Support Metadata Plug-in if available var o...
var item = new Zotero.Item("book"); var refXML = xml.doi_record[0].crossref.book.book_metadata; var metadataXML = refXML; var seriesXML = metadataXML.series_metadata;
if(xml.doi_record[0].crossref.book.@book_type.length() && xml.doi_record[0].crossref.book.@book_type == 'edited_book') { var item = new Zotero.Item("bookSection"); var refXML = xml.doi_record[0].crossref.book.content_item; var metadataXML = xml.doi_record[0].crossref.book.book_series_metadata; item.publicationTitle = ...
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
if(creatorXML.contributor_role == "editor") {
if(creatorXML.@contributor_role == "editor") {
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
} else if(creatorXML.contributor_role == "translator") {
} else if(creatorXML.@contributor_role == "translator") {
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
} else if(creatorXML.contributor_role == "chair") {
} else if(creatorXML.@contributor_role == "chair") {
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
item.date = refXML.publication_date[0].year.toString(); if(refXML.publication_date[0].month.length()) { item.date = refXML.publication_date[0].month.toString()+"/"+item.date;
pubDateNode = refXML.publication_date; } else if(metadataXML.publication_date.length()) { pubDateNode = metadataXML.publication_date; } if(pubDateNode) { item.date = pubDateNode[0].year.toString(); if(pubDateNode[0].month.length()) { item.date = pubDateNode[0].month.toString()+"/"+item.date;
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
}
} else if(xml.doi_record[0].crossref.book.@book_type.length() && xml.doi_record[0].crossref.book.@book_type == 'reference' && xml.doi_record[0].crossref.book.content_item.@component_type == 'reference_entry') { var item = new Zotero.Item("bookSection"); var refXML = xml.doi_record[0].crossref.book.content_item; var met...
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
else {
} else {
function processCrossRef(xmlOutput) { xmlOutput = xmlOutput.replace(/<\?xml[^>]*\?>/, ""); // parse XML with E4X try { var xml = new XML(xmlOutput); if(!xml.doi_record.length()) { var xml = new XML(xmlOutput); } } catch(e) { return false; } // "with ({});" needed to fix default namespace scope issue // See http...
item.pages = value.replace(/--/g, "-");
if (item.itemType == "book" || item.itemType == "thesis" || item.itemType == "manuscript") { item.numPages = value; } else { item.pages = value.replace(/--/g, "-"); }
function processField(item, field, value) { if(fieldMap[field]) { item[fieldMap[field]] = value; } else if(inputFieldMap[field]) { item[inputFieldMap[field]] = value; } else if(field == "journal") { if(item.publicationTitle) { item.journalAbbreviation = value; } else { item.publicationTitle = value; } } else i...
var [filetitle, filepath, filetype] = value.split(":"); if (filetitle.length == 0) { filetitle = "Attachment"; } if (filetype.match(/pdf/i)) { item.attachments = [{url:"file: } else { item.attachments = [{url:"file:
for each(var attachment in value.split(";")){ var [filetitle, filepath, filetype] = attachment.split(":"); if (filetitle.length == 0) { filetitle = "Attachment"; } if (filetype.match(/pdf/i)) { item.attachments.push({url:"file: } else { item.attachments.push({url:"file: }
function processField(item, field, value) { if(fieldMap[field]) { item[fieldMap[field]] = value; } else if(inputFieldMap[field]) { item[inputFieldMap[field]] = value; } else if(field == "journal") { if(item.publicationTitle) { item.journalAbbreviation = value; } else { item.publicationTitle = value; } } else i...
value = Zotero.Utilities.trim(value);
function processTag(item, tag, value) { if (Zotero.Utilities.unescapeHTML) { value = Zotero.Utilities.unescapeHTML(value.replace("\n", "<br>", "g")); } if(fieldMap[tag]) { item[fieldMap[tag]] = value; } else if(inputFieldMap[tag]) { item[inputFieldMap[tag]] = value; } else if(tag == "TY") { // look for type //...
newItem.creators.push(Zotero.Utilities.cleanString(match[2]));
newItem.creators.push(Zotero.Utilities.trimInternal(match[2]));
function processURLs(urls) { if(!urls.length) { // last url Zotero.done(); return; } var newUrl = urls.shift(); Zotero.Utilities.HTTP.doPost(newUrl, 'exportselect=record&exporttype=plaintext', function(text) { var lineRegexp = new RegExp(); lineRegexp.compile("^([\\w() ]+): *(.*)$"); var newItem = new Zotero.I...
match[2] = Zotero.Utilities.cleanString(match[2]);
match[2] = Zotero.Utilities.trimInternal(match[2]);
function processURLs(urls) { if(!urls.length) { // last url Zotero.done(); return; } var newUrl = urls.shift(); Zotero.Utilities.HTTP.doPost(newUrl, 'exportselect=record&exporttype=plaintext', function(text) { var lineRegexp = new RegExp(); lineRegexp.compile("^([\\w() ]+): *(.*)$"); var newItem = new Zotero.I...
newItem.tags.push(Zotero.Utilities.cleanString(tags[j]));
newItem.tags.push(Zotero.Utilities.trimInternal(tags[j]));
function processURLs(urls) { if(!urls.length) { // last url Zotero.done(); return; } var newUrl = urls.shift(); Zotero.Utilities.HTTP.doPost(newUrl, 'exportselect=record&exporttype=plaintext', function(text) { var lineRegexp = new RegExp(); lineRegexp.compile("^([\\w() ]+): *(.*)$"); var newItem = new Zotero.I...
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);...
return d;})();var b=a.env;var c=b.ie;if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElement...
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);...
return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var h=b.length;g<h;g++)a[e++]=b[g];else for(;b[g]!==v;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&g.push(a[h]);return g},map:function(a,b,e){for(var g=[],h,k=0,l=a.length;...
return-1},merge:function(a,b){var e=a.length,f=0;if(typeof b.length==="number")for(var h=b.length;f<h;f++)a[e++]=b[f];else for(;b[f]!==v;)a[e++]=b[f++];a.length=e;return a},grep:function(a,b,e){for(var f=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&f.push(a[h]);return f},map:function(a,b,e){for(var f=[],h,k=0,l=a.length;...
return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var h=b.length;g<h;g++)a[e++]=b[g];else for(;b[g]!==v;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&g.push(a[h]);return g},map:function(a,b,e){for(var g=[],h,k=0,l=a.length;...
last.position = scimoz.currentPos;
if (last.position != currentPos) { var currentPos = scimoz.currentPos; var currentLine = scimoz.lineFromPosition(currentPos); var mode = this.prefs.editGranularity; try { switch (mode) { case "a": this.addPositionToStack(this.lastEditStack); break; case "s": last.position = currentPos; last.line = currentLine; last.col...
pushEdit : function() { var currView = ko.views.manager.currentView; if (!currView.document) { return; } if (!currView.document.isDirty) { return; } var scimoz = currView.scintilla.scimoz; var last = null; if (this.las...
this.lastEditStack.push({ view : currView, position : scimoz.currentPos}); this.updateCommands();
this.addPositionToStack(this.lastEditStack);
pushEdit : function() { var currView = ko.views.manager.currentView; if (!currView.document) { return; } if (!currView.document.isDirty) { return; } var scimoz = currView.scintilla.scimoz; var last = null; if (this.las...
msg = msg[conf.lang];
msg = msg[conf.lang] || v.messages["*"].en;
function pushMessage(to, matcher, returnValue) { // only one message allowed if (!conf.grouped && to.length) { return; } // the error message var msg; // substitutions are returned if (returnValue === false || $.isArray(returnValue)) { msg = v.messages[matcher.key || matcher] || v.messages["*"...
var v = null; if (document.defaultView && document.defaultView.getComputedStyle) { v = document.defaultView.getComputedStyle(c, null)[s]; } else if (c.currentStyle) { v = c.currentStyle[s]; } else { v = c.style[s]; }
var v = css(c, s);
this.px = function(c, s) { var v = null; if (document.defaultView && document.defaultView.getComputedStyle) { v = document.defaultView.getComputedStyle(c, null)[s]; } else if (c.currentStyle) { v = c.currentStyle[s]; } else { v = c.style[s]; } if (v == 'auto' || v == null) return 0; var m = /^\s*(-?\...
var m = /^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/.exec(v); v = m && m.length == 2 ? m[1] : "0"; return v ? parseFloat(v) : 0;
if (rnumpx.test(v)) return parseFloat(v); else return 0;
this.px = function(c, s) { var v = null; if (document.defaultView && document.defaultView.getComputedStyle) { v = document.defaultView.getComputedStyle(c, null)[s]; } else if (c.currentStyle) { v = c.currentStyle[s]; } else { v = c.style[s]; } if (v == 'auto' || v == null) return 0; var m = /^\s*(-?\...
if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||g.isIE?true:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};var Z=/^-?\d+(?:px)?$/i;this.px=function(a,b){a=w(a,b);if(a=="auto"||a==null)return 0;return Z.test(a)?parseFloat(a):0};this.isHidd...
b;a.selectionEnd=f}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",f-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||g.isIE?true:a.k...
if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||g.isIE?true:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};var Z=/^-?\d+(?:px)?$/i;this.px=function(a,b){a=w(a,b);if(a=="auto"||a==null)return 0;return Z.test(a)?parseFloat(a):0};this.isHidd...
function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||k.isIE?true:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};this.px=function(a,b){var f=null;f=document.defaultView&&document.defaultView.getComputedStyle?doc...
f);a.moveStart("character",b);a.select()}else if(a.setSelectionRange){a.focus();a.setSelectionRange(b,f)}};this.isKeyPress=function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||k.isIE?true:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.ke...
function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||k.isIE?true:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode>46&&a.keyCode<112};this.px=function(a,b){var f=null;f=document.defaultView&&document.defaultView.getComputedStyle?doc...