rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if(line != null && line.length > 0) { | if(line !== null && line.length > 0) { | success: function(response, options) { if (isGmlDataThere(response.responseText)) { //Parse the response var XmlDoc = GXml.parse(response.responseText); if (g_IsIE) { XmlDoc.setProperty("SelectionLanguage", "XPath"); } var rootNode = XmlDoc.documentElement; if (!... |
if(lineId.indexOf("cdp") == 0) { | if(lineId.indexOf("cdp") === 0) { | success: function(response, options) { if (isGmlDataThere(response.responseText)) { //Parse the response var XmlDoc = GXml.parse(response.responseText); if (g_IsIE) { XmlDoc.setProperty("SelectionLanguage", "XPath"); } var rootNode = XmlDoc.documentElement; if (!... |
jsBackend.layout.showMessage('error', 'page can\'t be moved'); | jsBackend.layout.showMessage('error', '{$errCantBeMoved}'); | success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); // show message jsBackend.layout.showMessage('error', 'page can\'t be moved'); // @todo label // rollback $.tree.rollback(rollback); } else { // show messa... |
jsBackend.layout.showMessage('success', 'page moved'); | jsBackend.layout.showMessage('success', '{$msgPageIsMoved}'); | success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); // show message jsBackend.layout.showMessage('error', 'page can\'t be moved'); // @todo label // rollback $.tree.rollback(rollback); } else { // show messa... |
jsBackend.layout.showMessage('error', 'page can\'t be moved'); | success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); // show error // @todo show errormessage // rollback $.tree.rollback(rollback); } else { // @todo show succesmessage } }, | |
jsBackend.layout.showMessage('success', 'page moved'); | success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); // show error // @todo show errormessage // rollback $.tree.rollback(rollback); } else { // @todo show succesmessage } }, | |
jsBackend.messages.add('success', '{$msgPageIsMoved}'); | jsBackend.messages.add('success', '{$msgPageIsMoved|addslashes}'.replace('%1$s', 'tet')); | success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); // show message jsBackend.messages.add('error', '{$errCantBeMoved}'); // rollback $.tree.rollback(rollback); } else { // show message jsBackend.messa... |
jsBackend.messages.add('success', '{$msgPageIsMoved|addslashes}'.replace('%1$s', 'tet')); | jsBackend.messages.add('success', '{$msgPageIsMoved|addslashes}'.replace('%1$s', json.data.title)); | success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); // show message jsBackend.messages.add('error', '{$errCantBeMoved}'); // rollback $.tree.rollback(rollback); } else { // show message jsBackend.messa... |
APP.emit(el, "select", line.id, edit.id); | function suggestionClicked(line) { var suggestion = line.firstChild, edit = WT.getElement(editId), sText = suggestion.innerHTML, sValue = suggestion.getAttribute('sug'); edit.focus(); replacerJS(edit, sText, sValue); hidePopup(); editId = null; }; | |
"1"}else if(a.currentStyle){e=b.replace(oa,qa);g=a.currentStyle[b]||a.currentStyle[e];if(!Qa.test(g)&&Ra.test(g)){b=h.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=e==="fontSize"?"1em":g||0;g=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=k}}return g},swap:function(a,b,e){var g={};for(var... | "-$1").toLowerCase();h=a.ownerDocument.defaultView;if(!h)return null;if(a=h.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){e=b.replace(oa,qa);f=a.currentStyle[b]||a.currentStyle[e];if(!Qa.test(f)&&Ra.test(f)){b=h.left;var k=a.runtimeStyle.left;a.runtimeStyle.left... | "1"}else if(a.currentStyle){e=b.replace(oa,qa);g=a.currentStyle[b]||a.currentStyle[e];if(!Qa.test(g)&&Ra.test(g)){b=h.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=e==="fontSize"?"1em":g||0;g=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=k}}return g},swap:function(a,b,e){var g={};for(var... |
log.debug("Preparing a synchronous request to the JSON-RPC server..." + method + ":" + params); | if (log.logSensitiveData) log.debug("Preparing a synchronous request to the JSON-RPC server:" + method + ":" + params); else log.debug("Preparing a synchronous request to the JSON-RPC server."); | this.syncRequest = function(session, method, params) { log.debug("Preparing a synchronous request to the JSON-RPC server..." + method + ":" + params); //this.syncRequestComplete = false; //ASSUMPTION: this operation is atomic (if not, very unfortunate // multi-thread timing co... |
log.debug("Waiting for the synchronous request to the JSON-RPC server to end..." + method + ":" + params); | if (log.logSensitiveData) log.debug("Waiting for the synchronous request to the JSON-RPC server to end:" + method + ":" + params); else log.debug("Waiting for the synchronous request to the JSON-RPC server to end."); | this.syncRequest = function(session, method, params) { log.debug("Preparing a synchronous request to the JSON-RPC server..." + method + ":" + params); //this.syncRequestComplete = false; //ASSUMPTION: this operation is atomic (if not, very unfortunate // multi-thread timing co... |
log.debug("Synchronous request to the JSON-RPC server has returned..." + method + ":" + params); | if (log.logSensitiveData) log.debug("Synchronous request to the JSON-RPC server has returned:" + method + ":" + params); else log.debug("Synchronous request to the JSON-RPC server has returned."); | this.syncRequest = function(session, method, params) { log.debug("Preparing a synchronous request to the JSON-RPC server..." + method + ":" + params); //this.syncRequestComplete = false; //ASSUMPTION: this operation is atomic (if not, very unfortunate // multi-thread timing co... |
window.keeFoxInst.KeePassRPC.syncRequestResults[resultWrapper.id] = resultWrapper.result; | if ("result" in resultWrapper && resultWrapper.result !== false) { if (resultWrapper.result !== null) window.keeFoxInst.KeePassRPC.syncRequestResults[resultWrapper.id] = resultWrapper.result; else window.keeFoxInst.KeePassRPC.syncRequestResults[resultWrapper.id] = new Error("Null return result received"); } else window... | this.syncRequest = function(session, method, params) { if (log.logSensitiveData) log.debug("Preparing a synchronous request to the JSON-RPC server:" + method + ":" + params); else log.debug("Preparing a synchronous request to the JSON-RPC server."); //ASSUMPTION... |
WT_DECLARE_WT_MEMBER(2,"WSuggestionPopupStdMatcher",function(s,f,x,C,q,y){function t(c){var g=c.value;c=c.selectionStart?c.selectionStart:g.length;for(var d=x?g.lastIndexOf(x,c-1)+1:0;d<c&&C.indexOf(g.charAt(d))!=-1;)++d;return{start:d,end:c}}this.match=function(c){var g=t(c),d=c.value.substring(g.start,g.end),m="^";if... | WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(s,f,w,C,q,x,y){function c(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function g(){return f.style.display!="none"}function d(){f.style.display="none"}function m(a){e.positionAtWidget(f.id,a.id,e.Vertical,y)}function o(a){a=e.targe... | WT_DECLARE_WT_MEMBER(2,"WSuggestionPopupStdMatcher",function(s,f,x,C,q,y){function t(c){var g=c.value;c=c.selectionStart?c.selectionStart:g.length;for(var d=x?g.lastIndexOf(x,c-1)+1:0;d<c&&C.indexOf(g.charAt(d))!=-1;)++d;return{start:d,end:c}}this.match=function(c){var g=t(c),d=c.value.substring(g.start,g.end),m="^";if... |
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,y,z,r){function m(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function s(){return d.style.display!="none"}function k(){d.style.display="none"}function A(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function B(a){a=a||window.eve... | WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,A,B,r){function m(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function t(){return d.style.display!="none"}function l(){d.style.display="none"}function C(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function D(a){a=a||window.eve... | WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,y,z,r){function m(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function s(){return d.style.display!="none"}function k(){d.style.display="none"}function A(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function B(a){a=a||window.eve... |
a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return S=false}else return true}function T(a){var b=t(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIE){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return f... | a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return S=false}else return true}function T(a){var b=u(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIE){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return f... | a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return S=false}else return true}function T(a){var b=t(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIE){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return f... |
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;h.condCall(C,"onmousemove",a);return false}els... | var _$_WT_CLASS_$_=new (function(){function v(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(B!=null){if(!a)a=window.event;g.condCall(B,"onmousemove",a);return false}els... | var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;h.condCall(C,"onmousemove",a);return false}els... |
c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.... | c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.... | c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.... |
function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="un... | "&").replace(/</g,"<").replace(/>/g,">")}var o=document.getElementsByTagNameNS?function(a,b,d,c){return a.getElementsByTagNameNS(b,c)}:function(a,b,d,c){return d?a.getElementsByTagName(d+":"+c):a.getElementsByTagName(c)},C=document.documentElement.getAttributeNS?function(a,b,d,c){return a.getAttributeNS(b,c)}... | function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="un... |
this.tabs = new Array(); | this.tabs = []; | function tabberObj(argsObj){ var arg; /* name of an argument to override */ /* Element for the main tabber div. If you supply this in argsObj, then the init() method will be called. */ this.div = null; /* Class of the main tabber div */ this.classMain = "tabber"; /* Rename classMain to classMainLive after ta... |
this.each(function(i) { | this.each(function() { | $.fn.tabs = function(paneSelector, conf) { // return existing instance var el = this.data("tabs"); if (el) { return el; } if ($.isFunction(conf)) { conf = {onBeforeClick: conf}; } // setup conf conf = $.extend({}, $.tools.tabs.conf, conf); this.each(function(i) { el = new Tabs($(this), paneSele... |
if (location.hash && conf.tabs === "a" && root.find(conf.tabs + location.hash)) { | if (location.hash && conf.tabs === "a" && root.find(conf.tabs + location.hash).length) { | function Tabs(root, paneSelector, conf) { var self = this, trigger = root.add(this), tabs = root.find(conf.tabs), panes = paneSelector.jquery ? paneSelector : root.children(paneSelector), current; // make sure tabs and panes are found if (!tabs.length) { tabs = root.children(); } if (!pan... |
lazies = lconf === true ? panes : root.find(lconf.select || lconf); | if (lconf === true) { lconf = "img, :backgroundImage"; } lazies = root.find(lconf.select || lconf); | function Tabs(tabs, panes, conf) { var self = this, $self = $(this), root = panes.parent(), current; // public methods $.extend(this, { click: function(i, e) { var pane = self.getCurrentPane(), tab = tabs.eq(i); if (typeof i == 'string' && i.replace("#", ""... |
var lconf = $.tools.lazyload && conf.lazyload, loader; if (lconf) { if (typeof lconf != 'object') { lconf = { select: lconf }; } if (typeof lconf.select != 'string') { lconf.select = "img, :backgroundImage"; } $.extend(lconf, { growParent: panes.parent(), api: true }, lconf); loader = panes.parent().find(lconf.sel... | function Tabs(root, paneSelector, conf) { var self = this, trigger = root.add(this), tabs = root.find(conf.tabs), panes = paneSelector.jquery ? paneSelector : root.children(paneSelector), current; // make sure tabs and panes are found if (!tabs.length) { tabs = root.children(); } if (!pan... | |
if (panes.eq(i).is(":visible")) { return self; } | function Tabs(root, paneSelector, conf) { var self = this, trigger = root.add(this), tabs = root.find(conf.tabs), panes = paneSelector.jquery ? paneSelector : root.children(paneSelector), current; // make sure tabs and panes are found if (!tabs.length) { tabs = root.children(); } if (!pan... | |
$(self).bind(name, fn); | if (fn) { $(self).bind(name, fn); } | function Tabs(root, paneSelector, conf) { var self = this, trigger = root.add(this), tabs = root.find(conf.tabs), panes = paneSelector.jquery ? paneSelector : root.children(paneSelector), current; // make sure tabs and panes are found if (!tabs.length) { tabs = root.children(); } if (!pan... |
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTag... | n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChi... | q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTag... |
0)o.find.TAG=function(f,i){i=i.getElementsByTagName(f[1]);if(f[1]==="*"){f=[];for(var j=0;i[j];j++)i[j].nodeType===1&&f.push(i[j]);i=f}return i};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(f){return f.... | " "+c[1].replace(/\\/g,"")+" ";if(m)return c;m=0;for(var t;(t=f[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))i||j.push(t);else if(i)f[m]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(... | 0)o.find.TAG=function(f,i){i=i.getElementsByTagName(f[1]);if(f[1]==="*"){f=[];for(var j=0;i[j];j++)i[j].nodeType===1&&f.push(i[j]);i=f}return i};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(f){return f.... |
$('#addValue-'+ id).live('keypress', function(evt) { | $('#addValue-'+ id).live('keyup', function(evt) { | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(fun... |
$('label[for="'+ id +'"]').attr('for', 'addValue-'+ id); | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true }; // extend options var options = $.extend(defaults, options); // loop all elements return t... | |
if(code == 13 || String.fromCharCode(code) == options.splitChar) | if(code == 13 || $(this).val().indexOf(options.splitChar) != -1) | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', errorMessage: 'Add the tag before submitting', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true, multiple: true }; // extend options var option... |
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); | var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, ''); | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', errorMessage: 'Add the tag before submitting', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true, multiple: true }; // extend options var option... |
.css('top', '-9000px;') .css('left', '-9000px;') | .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(fun... |
' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+ | ' <p><input class="inputText" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(fun... |
$(this).hide() | $(this).css('visibility', 'hidden') | $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(fun... |
if($('#leftColumn input.tagBox').length > 0) { $('#leftColumn input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}', showIconOnly: false }); } | if($('#leftColumn input.tagBox, #tabTags input.tagBox').length > 0) { $('#leftColumn input.tagBox, #tabTags input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE... | tagBoxes: function() { if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftColumn... |
$('input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAddTag|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete' }); | $('input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete' }); | tagBoxes: function() { if($('input.tagBox').length > 0) { $('input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAddTag|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete' }); } }, |
if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftColumn input.tagBox, #tabTags in... | if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteThisTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftColumn input.tagBox, #tabTag... | tagBoxes: function() { if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftColumn... |
if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteThisTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftColumn input.tagBox, #tabTag... | if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags|addslashes}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteThisTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftColumn input.tagB... | tagBoxes: function() { if($('#sidebar input.tagBox').length > 0) { $('#sidebar input.tagBox').tagBox({ emptyMessage: '{$msgNoTags}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteThisTag|ucfirst}', autoCompleteUrl: '/backend/ajax.php?module=tags&action=autocomplete&language={$LANGUAGE}' }); } if($('#leftCo... |
console.log("tagTextArea:"+text); | function tagTextArea(text){ console.log("tagTextArea:"+text); // We don't want to tag all text boxen, especially if they are hidden var display = text.style.getPropertyCSSValue('display'); if (display && display.cssText=="none") { console.log(" invisible text box"); return; } // Also skip textarea... | |
console.log(" invisible text box"); | function tagTextArea(text){ console.log("tagTextArea:"+text); // We don't want to tag all text boxen, especially if they are hidden var display = text.style.getPropertyCSSValue('display'); if (display && display.cssText=="none") { console.log(" invisible text box"); return; } // Also skip textarea... | |
console.log(" skipping tagged textarea:" +existing_id); | function tagTextArea(text){ console.log("tagTextArea:"+text); // We don't want to tag all text boxen, especially if they are hidden var display = text.style.getPropertyCSSValue('display'); if (display && display.cssText=="none") { console.log(" invisible text box"); return; } // Also skip textarea... | |
else { interceptClickEvent = true; } | Tapestry.Initializer.tapxConfirm = function(spec) { var element = $(spec.clientId); var type = element.type; /* * This function is executed with "early" priority, so it gets to add its * own "click" handlers before others. Function that runs the dialog, and * invokes the proceed button if the user clicks "Yes" Other... | |
$(yesId).observe("click", function() { | $(yesId).observe("click", function(event) { event.stop(); | Tapestry.Initializer.tapxConfirm = function(spec) { var element = $(spec.clientId); var type = element.type; /* * This function is executed with "early" priority, so it gets to add its * own "click" handlers before others. Function that runs the dialog, and * invokes the proceed button if the user clicks "Yes" Other... |
return; | Tapestry.Initializer.tapxConfirm = function(spec) { var element = $(spec.clientId); var type = element.type; /* * This function is executed with "early" priority, so it gets to add its * own "click" handlers before others. Function that runs the dialog, and * invokes the proceed button if the user clicks "Yes" Other... | |
var runModalDialog = function(proceed) { var div = new Element('div', { className : 'mb-confirm' }).update(new Element('p').update(spec.message)); var baseId = "mb-" + new Date().getTime(); var yesId = baseId + "-yes"; var noId = baseId + "-no"; var yesButton = new Element('button', { className : 'mb-yes-button', id... | Tapestry.Initializer.tapxConfirm = function(spec) { var element = $(spec.clientId); var type = element.type; /* * This function is executed with "early" priority, so it gets to add its * own "click" handlers before others. Function that runs the dialog, and * invokes the proceed button if the user clicks "Yes" Other... | |
runModalDialog(doAction); } else { | Tapx.runModalDialog(spec.title, spec.message, doAction); } else { | Tapestry.Initializer.tapxConfirm = function(spec) { var element = $(spec.clientId); var type = element.type; /* * This function is executed with "early" priority, so it gets to add its * own "click" handlers before others. Function that runs the dialog, and * invokes the proceed button if the user clicks "Yes" Other... |
g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).styl... | "block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||a.target||a.srcElement};var da=false;this.capture=function(a){W();if(!(z&&a)){z=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b)... | g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).styl... |
g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.b... | g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).styl... | g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.b... |
var lang = document.getElementById(objname+'_lang').value; | var dis = document.getElementById(objname+'_dis').value; var hl = document.getElementById(objname+'_hl').value; | function tc_setDay(objname, dvalue, path){ var obj = document.getElementById(objname); var date_array = obj.value.split("-"); //check if date is not allow to select if(!isDateAllow(objname, dvalue, date_array[1], date_array[0])){ alert(l_not_allowed); restoreDate(objname); }else{ if(isDate(dvalue, date_array[1], dat... |
obj.src = path+"calendar_form.php?objname="+objname.toString()+"&selected_day="+dvalue+"&selected_month="+date_array[1]+"&selected_year="+date_array[0]+"&year_start="+year_start+"&year_end="+year_end+"&dp="+dp+"&mon="+smon+"&da1="+da1+"&da2="+da2+"&sna="+sna+"&aut="+aut+"&frm="+frm+"&tar="+tar+"&inp="+inp+"&fmt="+fmt+"... | obj.src = path+"calendar_form.php?objname="+objname.toString()+"&selected_day="+dvalue+"&selected_month="+date_array[1]+"&selected_year="+date_array[0]+"&year_start="+year_start+"&year_end="+year_end+"&dp="+dp+"&mon="+smon+"&da1="+da1+"&da2="+da2+"&sna="+sna+"&aut="+aut+"&frm="+frm+"&tar="+tar+"&inp="+inp+"&fmt="+fmt+"... | function tc_setDay(objname, dvalue, path){ var obj = document.getElementById(objname); var date_array = obj.value.split("-"); //check if date is not allow to select if(!isDateAllow(objname, dvalue, date_array[1], date_array[0])){ alert(l_not_allowed); restoreDate(objname); }else{ if(isDate(dvalue, date_array[1], dat... |
var lang = document.getElementById(objname+'_lang').value; | var dis = document.getElementById(objname+'_dis').value; var hl = document.getElementById(objname+'_hl').value; | function tc_setMonth(objname, mvalue, path){ var obj = document.getElementById(objname); var date_array = obj.value.split("-"); //check if date is not allow to select if(!isDateAllow(objname, date_array[2], mvalue, date_array[0])){ alert(l_not_allowed); restoreDate(objname); }else{ if(document.getElementById(objname... |
obj.src = path+"calendar_form.php?objname="+objname.toString()+"&selected_day="+date_array[2]+"&selected_month="+mvalue+"&selected_year="+date_array[0]+"&year_start="+year_start+"&year_end="+year_end+"&dp="+dp+"&mon="+smon+"&da1="+da1+"&da2="+da2+"&sna="+sna+"&aut="+aut+"&frm="+frm+"&tar="+tar+"&inp="+inp+"&fmt="+fmt+"... | obj.src = path+"calendar_form.php?objname="+objname.toString()+"&selected_day="+date_array[2]+"&selected_month="+mvalue+"&selected_year="+date_array[0]+"&year_start="+year_start+"&year_end="+year_end+"&dp="+dp+"&mon="+smon+"&da1="+da1+"&da2="+da2+"&sna="+sna+"&aut="+aut+"&frm="+frm+"&tar="+tar+"&inp="+inp+"&fmt="+fmt+"... | function tc_setMonth(objname, mvalue, path){ var obj = document.getElementById(objname); var date_array = obj.value.split("-"); //check if date is not allow to select if(!isDateAllow(objname, date_array[2], mvalue, date_array[0])){ alert(l_not_allowed); restoreDate(objname); }else{ if(document.getElementById(objname... |
var lang = document.getElementById(objname+'_lang').value; | var dis = document.getElementById(objname+'_dis').value; var hl = document.getElementById(objname+'_hl').value; | function tc_setYear(objname, yvalue, path){ var obj = document.getElementById(objname); var date_array = obj.value.split("-"); //check if date is not allow to select if(!isDateAllow(objname, date_array[2], date_array[1], yvalue)){ alert(l_not_allowed); restoreDate(objname); }else{ if(document.getElementById(objname+... |
obj.src = path+"calendar_form.php?objname="+objname.toString()+"&selected_day="+date_array[2]+"&selected_month="+date_array[1]+"&selected_year="+yvalue+"&year_start="+year_start+"&year_end="+year_end+"&dp="+dp+"&mon="+smon+"&da1="+da1+"&da2="+da2+"&sna="+sna+"&aut="+aut+"&frm="+frm+"&tar="+tar+"&inp="+inp+"&fmt="+fmt+"... | obj.src = path+"calendar_form.php?objname="+objname.toString()+"&selected_day="+date_array[2]+"&selected_month="+date_array[1]+"&selected_year="+yvalue+"&year_start="+year_start+"&year_end="+year_end+"&dp="+dp+"&mon="+smon+"&da1="+da1+"&da2="+da2+"&sna="+sna+"&aut="+aut+"&frm="+frm+"&tar="+tar+"&inp="+inp+"&fmt="+fmt+"... | function tc_setYear(objname, yvalue, path){ var obj = document.getElementById(objname); var date_array = obj.value.split("-"); //check if date is not allow to select if(!isDateAllow(objname, date_array[2], date_array[1], yvalue)){ alert(l_not_allowed); restoreDate(objname); }else{ if(document.getElementById(objname+... |
delimiter: ",", separator: ".", | delimiter: ".", separator: ",", | testCurrentWithCustomSettings: function() { with(this) { I18n.translations["en"] = { number: { currency: { format: { format: "%n %u", unit: "USD", delimiter: ",", separator: ".", precision: 2 } } } }; assertEqual("12,00 USD", I18n.toCurrency(12)); assertEqual("123,00 US... |
}}, | }} | testDefaultValueForPluralizeShouldNotBeUsedWhenScopeExist: function() { with(this) { options = {defaultValue: { none: "No things here!", one: "There is {{count}} thing here!", other: "There are {{count}} things here!" }}; assertEqual("You have no messages", I18n.pluralize(0, "inbox", options)); assertEqual... |
assertEqual("1,234,567.00", I18n.localize("number", 1234567)); | assertEqual("1,234,567.000", I18n.localize("number", 1234567)); | testLocalizeNumbers: function() { with(this) { assertEqual("1,234,567.00", I18n.localize("number", 1234567)); }}, |
assertEqual("1.00", I18n.toNumber(1, options)); assertEqual("12.00", I18n.toNumber(12, options)); assertEqual("123.00", I18n.toNumber(123, options)); assertEqual("1,234.00", I18n.toNumber(1234, options)); assertEqual("123,456.00", I18n.toNumber(123456, options)); assertEqual("1,234,567.00", I18n.toNumber(1234567, optio... | assertEqual("1,00", I18n.toNumber(1, options)); assertEqual("12,00", I18n.toNumber(12, options)); assertEqual("123,00", I18n.toNumber(123, options)); assertEqual("1.234,00", I18n.toNumber(1234, options)); assertEqual("123.456,00", I18n.toNumber(123456, options)); assertEqual("1.234.567,00", I18n.toNumber(1234567, optio... | testNumbersConsideringOptions: function() { with(this) { options = { precision: 2, separator: ",", delimiter: "." }; assertEqual("1.00", I18n.toNumber(1, options)); assertEqual("12.00", I18n.toNumber(12, options)); assertEqual("123.00", I18n.toNumber(123, options)); assertEqual("1,234.00", I18n.toNumber(... |
options = {separator: ",", delimiter: "."}; | options = {separator: ".", delimiter: ","}; | testNumbersWithDifferentPrecisions: function() { with(this) { options = {separator: ",", delimiter: "."}; options["precision"] = 2; assertEqual("1.98", I18n.toNumber(1.98, options)); options["precision"] = 3; assertEqual("1.980", I18n.toNumber(1.98, options)); options["precision"] = 3; assertEqual("1.980"... |
options["precision"] = 3; assertEqual("1.980", I18n.toNumber(1.98, options)); | testNumbersWithDifferentPrecisions: function() { with(this) { options = {separator: ",", delimiter: "."}; options["precision"] = 2; assertEqual("1.98", I18n.toNumber(1.98, options)); options["precision"] = 3; assertEqual("1.980", I18n.toNumber(1.98, options)); options["precision"] = 3; assertEqual("1.980"... | |
expected = new Date(Date.UTC(2010, 2, 3, 0, 43, 0)); assertEqual(expected.toString(), I18n.parseDate("2010-03-03T00:43:00+00:00").toString()); | testParseDate: function() { with(this) { expected = new Date(2009, 0, 24, 0, 0, 0); assertEqual(expected.toString(), I18n.parseDate("2009-01-24").toString()); expected = new Date(2009, 0, 24, 15, 33, 44); assertEqual(expected.toString(), I18n.parseDate("2009-01-24 15:33:44").toString()); expected = new Date(2009,... | |
expected = new Date(Date.UTC(2010, 2, 3, 0, 43, 0)); assertEqual(expected.toString(), I18n.parseDate("2010-03-03T00:43:00+00:00").toString()); | testParseDate: function() { with(this) { expected = new Date(2009, 0, 24, 0, 0, 0); assertEqual(expected.toString(), I18n.parseDate("2009-01-24").toString()); expected = new Date(2009, 0, 24, 15, 33, 44); assertEqual(expected.toString(), I18n.parseDate("2009-01-24 15:33:44").toString()); expected = new Date(2009,... | |
expected = new Date(2009, 0, 24, 0, 15, 0); assertEqual(expected.toString(), I18n.parseDate("2009-01-24 00:15:00").toString()); expected = new Date(2009, 0, 24, 0, 0, 15); assertEqual(expected.toString(), I18n.parseDate("2009-01-24 00:00:15").toString()); | testParseDate: function() { with(this) { expected = new Date(2009, 0, 24, 0, 0, 0); assertEqual(expected.toString(), I18n.parseDate("2009-01-24").toString()); expected = new Date(2009, 0, 24, 15, 33, 44); assertEqual(expected.toString(), I18n.parseDate("2009-01-24 15:33:44").toString()); expected = new Date(2009,... | |
assertEqual("1234%", I18n.toPercentage(1234, {delimiter: "", precision: 0})); | assertEqual("1_234%", I18n.toPercentage(1234, {delimiter: "_", precision: 0})); | testPercentageWithCustomOptions: function() { with(this) { assertEqual("1234%", I18n.toPercentage(1234, {delimiter: "", precision: 0})); }}, |
assertEqual("1,234.000%", I18n.toPercentage(1234)); | assertEqual("1234.000%", I18n.toPercentage(1234)); | testPercentageWithDefaults: function() { with(this) { assertEqual("1,234.000%", I18n.toPercentage(1234)); }}, |
}}, | }} | testPercentageWithTranslationAndCustomOptions: function() { with(this) { I18n.translations.en.number = { percentage: { format: { precision: 2, delimiter: ".", separator: "," } } } assertEqual("1-234+0000%", I18n.toPercentage(1234, {precision: 4, delimiter: "-", separator: "+"})); }}, |
}}, | }} | testReturnTranslationForCustomScopeSeparator: function() { with(this) { I18n.defaultSeparator = "•"; actual = I18n.translate("greetings•stranger"); assertEqual("Hello stranger!", actual); }}, |
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","... | "<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P... | a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","... |
_default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v... | text: function(a){return "text"==a.type;}, | _default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v... |
area:[1,"<map>","</map>"],_default:[0,"",""]};O.optgroup=O.option;O.tbody=O.tfoot=O.colgroup=O.caption=O.thead;O.th=O.td;if(!c.support.htmlSerialize)O._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof ... | "<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P... | area:[1,"<map>","</map>"],_default:[0,"",""]};O.optgroup=O.option;O.tbody=O.tfoot=O.colgroup=O.caption=O.thead;O.th=O.td;if(!c.support.htmlSerialize)O._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof ... |
var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;}... | },onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.leng... | var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;}... |
console.log("textareas_message_handler: "+JSON.stringify(msg)); | function textareas_message_handler(msg, port) { console.log("textareas_message_handler: "+JSON.stringify(msg)); // What was the bidding? var cmd = msg.msg; if (cmd == "find_edit") { findActiveTextArea(); } else if (cmd == "update") { var id = msg.id; var content = msg.text; updateTextArea(id, content); ... | |
this.updateEvents = function() { updateEvent(this.text, 'focus', this.focusListener); updateEvent(this.text, 'dblclick', this.dblclickListener); if (this.image) updateEvent(this.image, 'click', this.clickListener); } | function textAreaTracker(text){ this.edit_id = "eta_"+page_edit_id; page_edit_id = page_edit_id + 1; this.text = text; this.text.setAttribute("edit_id", this.edit_id); // The text areas event handlers we attach this.focusListener = setFocused; this.dblclickListener = function(){sendTextArea(this);}... | |
this.text.addEventListener('keydown', this.keydownListener); | function textAreaTracker(text){ this.edit_id = "eta_"+page_edit_id; page_edit_id = page_edit_id + 1; this.text = text; this.text.setAttribute("edit_id", this.edit_id); // The text areas event handlers we attach this.focusListener = setFocused; this.dblclickListener = function(){sendTextArea(this);}... | |
console.error(msg+" at D:"+this.stack.length+" S:"+this.currentContext.step); | throwerror:function(msg) { $clear(this.timerid); console.error(msg+" at D:"+this.stack.length+" S:"+this.currentContext.step); this.whendone(false,msg); throw "NS terminating"; //need to throw in order not to return to calling function }.protect(), | |
if (config.tabbrowser.mTabs.length > 1) config.tabbrowser.removeTab(tab); | if (config.tabbrowser.mTabs.length > 1 && !tab.hasAttribute("first-tab")) config.tabbrowser.closeTab(tab); | Thunderbird: function (tab) { if (config.tabbrowser.mTabs.length > 1) config.tabbrowser.removeTab(tab); else liberator.beep(); }, |
this.tilePoint = new GPoint((point.x % this.tileSize),(point.y % this.tileSize) ); } | this.tilePoint = new GPoint((point.x % this.tileSize),(point.y % this.tileSize) ); }; | Tile = function( iMap,iLatLng) { // The GM tiles are assumed to be quadratic. // All tiles have the same tile size. this.tileSize = iMap.getCurrentMapType().getTileSize(); this.width = this.tileSize; this.height = this.tileSize; this.map = iMap; this.zoom = iMap.getZoom(); this.latlng = iLatLng; ... |
obj.onclick(); | if (obj.onclick) obj.onclick(); | var tm = function() { var obj = WT.getElement(timerid); if (obj) { if (repeat) obj.timer = setTimeout(obj.tm, msec); else { obj.timer = null; obj.tm = null; } obj.onclick(); } }; |
if (!options) { options = { unit: "$", precision: 2, format: "%u%n", separator: ",", delimiter: "." }; } | options = options || { unit: "$", precision: 2, format: "%u%n", separator: ".", delimiter: "," }; | I18n.toCurrency = function(number) { var options = this.lookup("number.currency.format"); if (!options) { options = { unit: "$", precision: 2, format: "%u%n", separator: ",", delimiter: "." }; } // first, convert number number = this.toNumber(number, options); number = options["format"] .replace("%u", ... |
var defaults = this.optionsWithDefaults({ | options = this.optionsWithDefaults(this.lookup("number.currency.format"), options); options = this.optionsWithDefaults(this.lookup("number.format"), options); options = this.optionsWithDefaults({ | I18n.toCurrency = function(number, options) { var defaults = this.optionsWithDefaults({ unit: "$", precision: 2, format: "%u%n" }, this.lookup("number.currency.format")); options = this.optionsWithDefaults(defaults, options); // first, convert number number = this.toNumber(number, options); number = options["format"... |
format: "%u%n" }, this.lookup("number.currency.format")); | format: "%u%n", delimiter: ",", separator: "." }, options); | I18n.toCurrency = function(number, options) { var defaults = this.optionsWithDefaults({ unit: "$", precision: 2, format: "%u%n" }, this.lookup("number.currency.format")); options = this.optionsWithDefaults(defaults, options); // first, convert number number = this.toNumber(number, options); number = options["format"... |
options = this.optionsWithDefaults(defaults, options); | I18n.toCurrency = function(number, options) { var defaults = this.optionsWithDefaults({ unit: "$", precision: 2, format: "%u%n" }, this.lookup("number.currency.format")); options = this.optionsWithDefaults(defaults, options); // first, convert number number = this.toNumber(number, options); number = options["format"... | |
k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q... | this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(fun... | k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q... |
tokens.push({ type: 'quote', token: line.substring(start+1, i)}); | tokens.push({ type: 'quote', token: line.substring(start+1, i), start: start+1, end: i}); | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
} else if ((line[start] >= 'A' && line[start] <= 'Z') || (line[start] >= 'a' && line[start] <= 'z')) { | } else if (isLetter(line[start])) { | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
while (i < end && ((line[i] >= 'A' && line[i] <= 'Z') || (line[i] >= 'a' && line[i] <= 'z'))) i++; tokens.push({ type: 'alpha', token: line.substring(start, i)}); | while (i < end && isLetter(line[i])) i++; tokens.push({ type: 'alpha', token: line.substring(start, i), continueId: isNumber(line[i]), start: start, end: i}); | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
} else if ((line[start] >= '0' && line[start] <= '9')) { | } else if (isNumber(line[start])) { | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
while (i < end && line[i] >= '0' && line[i] <= '9') i++; tokens.push({ type: 'number', token: line.substring(start, i)}); | while (i < end && isNumber(line[i])) i++; tokens.push({ type: 'number', token: line.substring(start, i), continueId: isLetter(line[i]), start: start, end: i}); | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
tokens.push({ type: 'punct', token: line[start]}); | tokens.push({ type: 'punct', token: line[start], start: start, end: start+1}); | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
var ret = this.getMeat(line, start, end); start = ret.start; end = ret.end; var tokens = []; var i; while (start < end) { if (line[start] === '"') { i = start+1; while (i < end && line[i] !== '"') i++; tokens.push({ type: 'quote', token: line.substring(start+1, i), start: start+1, end: i}); i++; } else if (isLetter(lin... | var ret = this.getMeat(line, start, end); start = ret.start; end = ret.end; var tokens = []; var i; while (start < end) { if (line[start] === '"') { i = start+1; while (i < end && line[i] !== '"') i++; tokens.push({ type: 'quote', token: line.substring(start+1, i), start: start+1, end: i}); i++; } else if (isLetter(lin... | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
return tokens; }; | start = i; } return tokens; }; | this.tokenize = function(line, start, end) { // this returns all the tokens inside the passed string. A token is a punctuation mark, a string of digits, a string of letters. // Quoted strings are one token. // The type of token is returned: quote, alpha, number, punct var ret = this.getMeat(line, start, end)... |
id: 'GM_config_field_' + id, | id: 'GM_config_field_' + id | toNode: function() { var field = this.settings, value = this.value, options = field.options, label = field.label, id = this.id, create = this.create; var retNode = create('div', { className: 'config_var', title: field.title || '' }); if (fi... |
id = this.id; | id = this.id, | toNode: function() { var field = this.settings, value = this.value, options = field.options, label = field.label, id = this.id; create = this.create; var retNode = create('div', { className: 'config_var', title: field.title || '' }); if (fi... |
precision: 2, separator: ',', delimiter: '.' } | precision: 3, separator: '.', delimiter: ',' }; | I18n.toNumber = function(number, options) { options = options || { precision: 2, separator: ',', delimiter: '.' } var string = number.toFixed(options["precision"]).toString(); var parts = string.split("."); number = parts[0]; var precision = parts[1]; var n = []; while (number.length > 0) { n.unshift(number.sub... |
return n.join(options["separator"]) + options["delimiter"] + parts[1]; | return n.join(options["delimiter"]) + options["separator"] + parts[1]; | I18n.toNumber = function(number, options) { options = options || { precision: 2, separator: ',', delimiter: '.' } var string = number.toFixed(options["precision"]).toString(); var parts = string.split("."); number = parts[0]; var precision = parts[1]; var n = []; while (number.length > 0) { n.unshift(number.sub... |
var defaults = this.optionsWithDefaults({ | options = this.optionsWithDefaults(this.lookup("number.format"), options); options = this.optionsWithDefaults({ | I18n.toNumber = function(number, options) { var defaults = this.optionsWithDefaults({ precision: 3, separator: '.', delimiter: ',' }, this.lookup("number.format")); options = this.optionsWithDefaults(defaults, options); var string = number.toFixed(options["precision"]).toString(); var parts = string.split("."); numb... |
}, this.lookup("number.format")); options = this.optionsWithDefaults(defaults, options); | }, options); | I18n.toNumber = function(number, options) { var defaults = this.optionsWithDefaults({ precision: 3, separator: '.', delimiter: ',' }, this.lookup("number.format")); options = this.optionsWithDefaults(defaults, options); var string = number.toFixed(options["precision"]).toString(); var parts = string.split("."); numb... |
var string = number.toFixed(options["precision"]).toString(); | var negative = number < 0; var string = Math.abs(number).toFixed(options["precision"]).toString(); | I18n.toNumber = function(number, options) { options = this.prepareOptions( options, this.lookup("number.format"), {precision: 3, separator: ".", delimiter: ","} ); var string = number.toFixed(options["precision"]).toString(); var parts = string.split("."); number = parts[0]; var precision = parts[1]; var n = []; whi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.