rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
"Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=... | "CustomFormat";Xmla.PROP_CONTENT="Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){g(this.options,a,true... | "Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=... |
setSelection : function(start, end) | this.setSelection = function(start, end) | setSelection : function(start, end) { //editAreaLoader.setSelectionRange('abc', pos, parseInt(pos)+1); $(this._id).setSelectionRange(start,end); $(this._id).focus(); }, |
}, | }; | setSelection : function(start, end) { //editAreaLoader.setSelectionRange('abc', pos, parseInt(pos)+1); $(this._id).setSelectionRange(start,end); $(this._id).focus(); }, |
"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart... | 0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>l.length)f=l.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(typeof a.selectionStart!=="undefined"){a.selectionStart=b;a.selectionEnd=f... | "");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart... |
if (elem.selectionStart != undefined) { | if (typeof elem.selectionStart !== 'undefined') { | this.setSelectionRange = function(elem, start, end) { /** * @preserve Includes jQuery Caret Range plugin * Copyright (c) 2009 Matt Zabriskie * Released under the MIT and GPL licenses. */ var val = $(elem).val(); if (typeof start != "number") start = -1; if (typeof end != "number") end = -1; if (start < 0) ... |
end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart=... | "");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart... | end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart=... |
this.setSelectionRange=function(a,b,e){var k=$(a).val();if(typeof b!="number")b=-1;if(typeof e!="number")e=-1;if(b<0)b=0;if(e>k.length)e=k.length;if(e<b)e=b;if(b>e)b=e;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=e}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveS... | this.setSelectionRange=function(a,b,e){var j=$(a).val();if(typeof b!="number")b=-1;if(typeof e!="number")e=-1;if(b<0)b=0;if(e>j.length)e=j.length;if(e<b)e=b;if(b>e)b=e;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=e}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveS... | this.setSelectionRange=function(a,b,e){var k=$(a).val();if(typeof b!="number")b=-1;if(typeof e!="number")e=-1;if(b<0)b=0;if(e>k.length)e=k.length;if(e<b)e=b;if(b>e)b=e;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=e}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveS... |
k.length;if(e<b)e=b;if(b>e)b=e;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=e}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",e-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.me... | k.length;if(e<b)e=b;if(b>e)b=e;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=e}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",e-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.me... | function(a){var b,e;if(a.selectionStart!=undefined){b=a.selectionStart;e=a.selectionEnd}else if(document.selection){a=$(a).val();e=document.selection.createRange().duplicate();e.moveEnd("character",a.length);b=e.text==""?a.length:a.lastIndexOf(e.text);e=document.selection.createRange().duplicate();e.moveStart("characte... |
a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var h=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>h.length)f=h.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.select... | f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f... | a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var h=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>h.length)f=h.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.select... |
function(a){if(document.selection){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);f.setEndPoint("EndToEnd",b);a=f.text.length-b.text.length;return{start:a,end:a+b.text.length}}else return{start:a.selectionStart,end:a.selectionEnd}};this.setSelectionRange=function(a,b,f){if(a.createTextRan... | y:f}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);f.setEndPoint("EndToEnd",b);a=f.text.length-b.text.length;return{start:a... | function(a){if(document.selection){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);f.setEndPoint("EndToEnd",b);a=f.text.length-b.text.length;return{start:a,end:a+b.text.length}}else return{start:a.selectionStart,end:a.selectionEnd}};this.setSelectionRange=function(a,b,f){if(a.createTextRan... |
if(!c&&l!=m)return false;for(var n=0;n<l;n++){var o=j[n];if((!c||o.specified&&o.nodeName!='_cke_expando')&&o.nodeValue!=i.getAttribute(o.nodeName))return false;}if(c)for(n=0;n<m;n++){o=k[n];if(o.specified&&o.nodeName!='_cke_expando'&&o.nodeValue!=this.getAttribute(o.nodeName))return false;}return true;},isVisible:funct... | },setAttribute:(function(){var i=function(j,k){this.$.setAttribute(j,k);return this;};if(c&&(b.ie7Compat||b.ie6Compat))return function(j,k){var l=this;if(j=='class')l.$.className=k;else if(j=='style')l.$.style.cssText=k;else if(j=='tabindex')l.$.tabIndex=k;else if(j=='checked')l.$.checked=k;else i.apply(l,arguments);re... | if(!c&&l!=m)return false;for(var n=0;n<l;n++){var o=j[n];if((!c||o.specified&&o.nodeName!='_cke_expando')&&o.nodeValue!=i.getAttribute(o.nodeName))return false;}if(c)for(n=0;n<m;n++){o=k[n];if(o.specified&&o.nodeName!='_cke_expando'&&o.nodeValue!=this.getAttribute(o.nodeName))return false;}return true;},isVisible:funct... |
var tempo = {}; var delaySet = true; var token = tokens.shift(); if (token.type === 'quote') { tempo.preString = token.token; | var tempo = {}; var delaySet = true; var token = tokens.shift(); if (token.type === 'quote') { tempo.preString = token.token; token = tokens.shift(); if (tokens.length === 0) { return { type: 'immediate', tempo: tempo }; } } if (token.type === 'alpha' && token.token === 'C') { if (tokens.length === 0) throw "Missing t... | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
if (tokens.length === 0) { return { type: 'immediate', tempo: tempo }; } } if (token.type === 'alpha' && token.token === 'C') { if (tokens.length === 0) throw "Missing tempo after C in Q: field"; | if (token.type !== 'number') throw "Expected number after = in Q: field"; tempo.duration = [1]; tempo.bpm = parseInt(token.token); } else if (token.type === 'number') { tempo.duration = [parseInt(token.token)]; if (tokens.length === 0) throw "Missing = after duration in Q: field"; | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
if (token.type === 'punct' && token.token === '=') { if (tokens.length === 0) throw "Missing tempo after = in Q: field"; | if (token.type !== 'punct' || token.token !== '=') throw "Expected = after duration in Q: field"; if (tokens.length === 0) throw "Missing tempo after = in Q: field"; token = tokens.shift(); if (token.type !== 'number') throw "Expected number after = in Q: field"; tempo.bpm = parseInt(token.token); } else throw "Expecte... | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
if (token.type !== 'number') throw "Expected number after = in Q: field"; tempo.duration = [1]; tempo.bpm = parseInt(token.token); } else if (token.type === 'number') { tempo.duration = [parseInt(token.token)]; if (tokens.length === 0) throw "Missing = after duration in Q: field"; token = tokens.shift(); if (token.typ... | if (token.type !== 'number') throw "Expected fraction in Q: field"; num = parseInt(token.token); | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
var den = parseInt(token.token); tempo.duration = [num/den]; while (tokens.length > 0 && tokens[0].token !== '=' && tokens[0].type !== 'quote') { token = tokens.shift(); if (token.type !== 'number') throw "Expected fraction in Q: field"; num = parseInt(token.token); token = tokens.shift(); if (token.type !== 'punct' ... | den = parseInt(token.token); tempo.duration.push(num/den); | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
} else throw "Unknown value in Q: field"; if (tokens.length !== 0) { | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... | |
if (token.type === 'quote') { tempo.postString = token.token; token = tokens.shift(); } if (tokens.length !== 0) throw "Unexpected string at end of Q: field"; | if (token.type !== 'punct' && token.token !== '=') throw "Expected = in Q: field"; token = tokens.shift(); if (token.type !== 'number') throw "Expected tempo in Q: field"; tempo.bpm = parseInt(token.token); | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
return { type: delaySet?'delaySet':'immediate', tempo: tempo }; } catch (msg) { warn(msg, line, start); return { type: 'none' }; | } else throw "Unknown value in Q: field"; if (tokens.length !== 0) { token = tokens.shift(); if (token.type === 'quote') { tempo.postString = token.token; token = tokens.shift(); } if (tokens.length !== 0) throw "Unexpected string at end of Q: field"; | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
}; | return { type: delaySet?'delaySet':'immediate', tempo: tempo }; } catch (msg) { warn(msg, line, start); return { type: 'none' }; } }; | this.setTempo = function(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may a... |
multilineVars.tempo = {}; | var tempo = {}; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.preString = token.token; | tempo.preString = token.token; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
tune.metaText.tempo = multilineVars.tempo; delete multilineVars.tempo; return; | return { type: 'immediate', tempo: tempo }; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.duration = [1]; multilineVars.tempo.bpm = parseInt(token.token); | tempo.duration = [1]; tempo.bpm = parseInt(token.token); | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.duration = [parseInt(token.token)]; | tempo.duration = [parseInt(token.token)]; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.bpm = parseInt(token.token); | tempo.bpm = parseInt(token.token); | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.duration = [1]; multilineVars.tempo.bpm = num; | tempo.duration = [1]; tempo.bpm = num; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.duration = [num/den]; | tempo.duration = [num/den]; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.duration.push(num/den); | tempo.duration.push(num/den); | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
multilineVars.tempo.postString = token.token; | tempo.postString = token.token; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
if (!delaySet) { tune.metaText.tempo = multilineVars.tempo; delete multilineVars.tempo; } | return { type: delaySet?'delaySet':'immediate', tempo: tempo }; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... |
return { type: 'none' }; | function setTempo(line, start, end) { //Q - tempo; can be used to specify the notes per minute, e.g. if //the default note length is an eighth note then Q:120 or Q:C=120 //is 120 eighth notes per minute. Similarly Q:C3=40 would be 40 //dotted quarter notes per minute. An absolute tempo may also be ... | |
this.raw_istream = this.transport.openInputStream(0, 0, 0); this.raw_ostream = this.transport.openOutputStream(0, 0, 0); | this.raw_istream = this.transport.openInputStream(0, 512, 0); this.raw_ostream = this.transport.openOutputStream(0, 512, 0); | setTransport: function(transport) { try { this.transport = transport; this.raw_istream = this.transport.openInputStream(0, 0, 0); this.raw_ostream = this.transport.openOutputStream(0, 0, 0); const replacementChar = Components.interfaces ... |
log.debug("async input wait begun"); | log.debug("async input wait begun."); | setTransport: function(transport) { try { this.transport = transport; this.raw_istream = this.transport.openInputStream(0, 0, 0); this.raw_ostream = this.transport.openOutputStream(0, 0, 0); const replacementChar = Components.interfaces ... |
log.debug("onconnect"); | log.debug("transport stream is already alive"); | setTransport: function(transport) { try { this.transport = transport; this.raw_istream = this.transport.openInputStream(0, 0, 0); this.raw_ostream = this.transport.openOutputStream(0, 0, 0); const replacementChar = Components.interfaces ... |
} catch(ex) { log.error(ex, "setTransport failed: "); this.onNotify("connect-failed", "setTransport failed, Unable to connect; Exception "+ex); this.disconnect(); | } catch (ex) { log.error("setTransport failed: " + ex); this.onNotify("connect-failed", "setTransport failed, Unable to connect; Exception " + ex); this.disconnect(); | setTransport: function(transport) { try { this.transport = transport; this.raw_istream = this.transport.openInputStream(0, 0, 0); this.raw_ostream = this.transport.openOutputStream(0, 0, 0); const replacementChar = Components.interfaces ... |
} | }, | setTreeViewGroupChooser : function() { // TODO: Check to see if we are logged in and trigger an attempt to if not (fail or create dummy chooser if can't log in?) // Get array of group names (and guids somehow) which are ordered by depth-first queries to the group folder structure from KeePassRPC. ke... |
var containerWidth = this.container.offsetWidth; var tabPosition = tabIndex * containerWidth; | var containerHeight = this.container.offsetHeight; var tabPosition = tabIndex * containerHeight; | setup: function(tab) { var tabIndex = this.tabs.index(tab); var containerWidth = this.container.offsetWidth; var tabPosition = tabIndex * containerWidth; if (isNaN(tabPosition) || tabPosition < 0) { tabPosition = 0; } ... |
top: "0px", left: tabPosition + "px" | top: tabPosition + "px", left: "0px" | setup: function(tab) { var tabIndex = this.tabs.index(tab); var containerWidth = this.container.offsetWidth; var tabPosition = tabIndex * containerWidth; if (isNaN(tabPosition) || tabPosition < 0) { tabPosition = 0; } ... |
alert('MA JONG'); | setup: function(editor) { // add the correct class when the editor becomes active editor.onActivate.add(function(editor) { alert('MA JONG'); $(editor.getContainer()).addClass('expanded'); }); // remove the class when the editor isn't active editor.onDeactivate.add(function(editor) { $(editor.getCo... | |
$(editor.getContainer()).removeClass('tinyActive'); | setup: function(editor) { // catch some events editor.onSaveContent.add(jsBackend.tinyMCE.afterSave); editor.onBeforeSetContent.add(jsBackend.tinyMCE.beforeLoad); // set content editor.onLoadContent.add(jsBackend.tinyMCE.checkContent); // add event editor.onKeyUp.add(function(editor, event) { // show if($(... | |
* Our workaround is real ugly, we watch each event and add the class on the container, | * Our workaround is really ugly, we watch each event and add the class on the container, | setup: function(editor) { editor.onLoadContent.add(jsBackend.tinyMCE.checkContent); /** * It seems like onActivate isn't called when their is just a single instance. * Our workaround is real ugly, we watch each event and add the class on the container, * see: http://tinymce.moxiecode.com/punbb/viewtopic.php?i... |
$(editor.getContainer()).addClass('expanded'); | setup: function(editor) { editor.onLoadContent.add(jsBackend.tinyMCE.checkContent); /** * It seems like onActivate isn't called when their is just a single instance. * Our workaround is really ugly, we watch each event and add the class on the container, * see: http://tinymce.moxiecode.com/punbb/viewtopic.ph... | |
$(editor.getContainer()).removeClass('expanded'); | setup: function(editor) { editor.onLoadContent.add(jsBackend.tinyMCE.checkContent); /** * It seems like onActivate isn't called when their is just a single instance. * Our workaround is really ugly, we watch each event and add the class on the container, * see: http://tinymce.moxiecode.com/punbb/viewtopic.ph... | |
number: { percentage: { format: { delimiter: "", separator: ",", precision: 2 } } }, | setup: function() { I18n.defaultLocale = "en"; I18n.locale = null; I18n.translations = { en: { hello: "Hello World!", greetings: { stranger: "Hello stranger!", name: "Hello {{name}}!" }, profile: { details: "{{name}} is {{age}}-years old" }, inbox: { one: "You have {{count}} mess... | |
editor.onActivate.add(function(editor) { $(editor.getContainer()).addClass('expanded'); }); editor.onDeactivate.add(function(editor) { $(editor.getContainer()).removeClass('expanded'); }); | if($('.inputEditor').length == 1) { var added = false; editor.onEvent.add(function(editor, evt) { if(!added) { $(editor.getContainer()).addClass('expanded'); added = true; } }); } else { editor.onActivate.add(function(editor, otherEditor) { $(editor.getContainer()).addClass('expanded'); }); editor.onDeactiva... | setup: function(editor) { // add the correct class when the editor becomes active editor.onActivate.add(function(editor) { $(editor.getContainer()).addClass('expanded'); }); // remove the class when the editor isn't active editor.onDeactivate.add(function(editor) { $(editor.getContainer()).removeClass('ex... |
if (mainButton === undefined || mainButton == null) return; | setupButton_install: function(targetWindow) { KFLog.debug("setupButton_install start"); var mainWindow = targetWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfa... | |
if (mainButton === undefined || mainButton == null) return; | setupButton_loadKeePass: function(targetWindow) { KFLog.debug("setupButton_loadKeePass start"); var mainWindow = targetWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components... | |
if (DBname == null || DBname == "") | if (DBname === null) | setupButton_ready: function(targetWindow, mainWindowIN) { KFLog.debug("setupButton_ready start"); var mainButton; var mainWindow; if (mainWindowIN != null) mainWindow = mainWindowIN; else { mainWindow = targetWindow.QueryInterface(Components.in... |
mainWindow.KFdownloadFile("IC1SecDownload", KF_NET35_DOWNLOAD_PATH + KF_NET35_FILE_NAME, KF_NET35_FILE_NAME, mainWindow, window); | persist = mainWindow.KFdownloadFile("IC1SecDownload", KF_NET35_DOWNLOAD_PATH + KF_NET35_FILE_NAME, KF_NET35_FILE_NAME, mainWindow, window, persist); | function setupNET35ExeInstall() {//TODO: cancel net2 downloadinstallState = KF_INSTALL_STATE_NET35_DOWNLOADING | KF_INSTALL_STATE_KI_DOWNLOADED; mainWindow.KFdownloadFile("IC1SecDownload", KF_NET35_DOWNLOAD_PATH + KF_NET35_FILE_NAME, KF_NET35_FILE_NAME, mainWindow, window); hideInstallView(); showProgr... |
if (parseInt(month, 10) >= 0) { | if (parseInt(month, 10) >= -1) { | setValue: function(year, month, day) { var date; if (parseInt(month, 10) >= 0) { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getYea... |
if (!val || val == value) { return self; } | if (val === NaN || val == value) { return self; } | setValue: function(val, e) { val = parseFloat(val); if (!val || val == value) { return self; } var x = (val - conf.min) * (len / range); return seek(x, e); }, |
if (!$(this).hasClass(css.disabled)) { select($(this).data("date"), conf, e); | var el = $(this); if (!el.hasClass(css.disabled)) { $("#" + css.current).removeAttr("id"); el.attr("id", css.current); select(el.data("date"), conf, e); | setValue: function(year, month, day) { var date; if (parseInt(month, 10) >= 0) { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getYea... |
if (typeof month == 'number') { | if (parseInt(month, 10) >= 0) { | setValue: function(year, month, day) { var date; if (typeof month == 'number') { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getYea... |
for (var j = 0, a, num; j < 35; j++) { | for (var j = 0, a, num; j < 42; j++) { | setValue: function(year, month, day) { var date; if (typeof month == 'number') { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getYea... |
year = date.getYear() + 1900; | year = date.getFullYear(); | setValue: function(year, month, day) { var date; if (parseInt(month, 10) >= -1) { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getYe... |
if (min < new Date(i + 1, -1, 0) && max > new Date(i, 0, 0)) { | if (min <= new Date(i + 1, -1, 1) && max > new Date(i, 0, 0)) { | setValue: function(year, month, day) { var date; if (parseInt(month, 10) >= -1) { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getFu... |
if (month) { | if (typeof month == 'number') { | setValue: function(year, month, day) { var date; if (month) { // strings to numbers year = integer(year); month = integer(month); day = integer(day); date = new Date(year, month, day); } else { date = year || value; year = date.getYear() % 100 + 2000; ... |
return slide(e || $.Event(), undefined, val - conf.min); | return slide(e || $.Event("api"), undefined, val, true); | setValue: function(val, e) { return slide(e || $.Event(), undefined, val - conf.min); }, |
f.pageCoordinates(c);a=d.x-h.x;d=d.y-h.y;var g=k.create();g[0]=e[0];g[1]=e[4];g[2]=e[8];var j=b.create();b.identity(j);b.translate(j,i);b.rotate(j,d*n,g);b.rotate(j,a*o,m);k.negate(i);b.translate(j,i);k.negate(i);b.multiply(e,j,e);this.paintGl();h=f.pageCoordinates(c)};this.mouseWheelLookAt=function(a,c){f.cancelEvent(... | [a,a,a]);l.negate(i);b.translate(e,i);l.negate(i);this.paintGL()}};this.setWalkParams=function(a,c,d){e=a;p=c;q=d};this.mouseDragWalk=function(a,c){if(this.ctx!=null){var d=f.pageCoordinates(c);a=d.x-h.x;d=d.y-h.y;var g=b.create();b.identity(g);b.rotateY(g,a*q);a=l.create();a[0]=0;a[1]=0;a[2]=-p*d;b.translate(g,a);b.mu... | f.pageCoordinates(c);a=d.x-h.x;d=d.y-h.y;var g=k.create();g[0]=e[0];g[1]=e[4];g[2]=e[8];var j=b.create();b.identity(j);b.translate(j,i);b.rotate(j,d*n,g);b.rotate(j,a*o,m);k.negate(i);b.translate(j,i);k.negate(i);b.multiply(e,j,e);this.paintGl();h=f.pageCoordinates(c)};this.mouseWheelLookAt=function(a,c){f.cancelEvent(... |
this.paintGl()};this.setWalkParams=function(a,c,d){e=a;p=c;q=d};this.mouseDragWalk=function(a,c){var d=f.pageCoordinates(c);a=d.x-h.x;d=d.y-h.y;var g=b.create();b.identity(g);b.rotateY(g,a*q);a=k.create();a[0]=0;a[1]=0;a[2]=-p*d;b.translate(g,a);b.multiply(g,e,e);this.paintGl();h=f.pageCoordinates(c)};this.mouseDown=fu... | f.pageCoordinates(c);a=d.x-h.x;d=d.y-h.y;var g=k.create();g[0]=e[0];g[1]=e[4];g[2]=e[8];var j=b.create();b.identity(j);b.translate(j,i);b.rotate(j,d*n,g);b.rotate(j,a*o,m);k.negate(i);b.translate(j,i);k.negate(i);b.multiply(e,j,e);this.paintGl();h=f.pageCoordinates(c)};this.mouseWheelLookAt=function(a,c){f.cancelEvent(... | this.paintGl()};this.setWalkParams=function(a,c,d){e=a;p=c;q=d};this.mouseDragWalk=function(a,c){var d=f.pageCoordinates(c);a=d.x-h.x;d=d.y-h.y;var g=b.create();b.identity(g);b.rotateY(g,a*q);a=k.create();a[0]=0;a[1]=0;a[2]=-p*d;b.translate(g,a);b.multiply(g,e,e);this.paintGl();h=f.pageCoordinates(c)};this.mouseDown=fu... |
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:... | setTimeout(function(){c.hide(e)},b.delay);else c.hide(e)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q)d=f(q);else if(b.tip)d=f(b.tip).eq(0);else if(m)d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else{d=a.next();d.length||(d=a.pa... | (function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:... |
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... |
if (event[1]) { | if (event[1] && !trigger.is("input:not(:checkbox, :radio), textarea")) { | show: function(e) { // tip not initialized yet if (!tip) { // find a "manual" tooltip if (title) { tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body).hide(); } else if (conf.tip) { tip = $(conf.tip).eq(0); } else { tip = trigger.next(); if ... |
var pos = input.offset(); | var pos = input.position(); | show: function(e) { if (input.is("[readonly]") || opened) { return; } // onBeforeShow e = e || $.Event(); e.type = "onBeforeShow"; fire.trigger(e); if (e.isDefaultPrevented()) { return; } $.each(instances, function() { this.hide(); }); opened = true; // month sel... |
""};var B=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||a.target||a.srcElement};var S=false,Y=false;this.capture=function(a){ca();if(!(B&&a)){B=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectabl... | ""};var B=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||a.target||a.srcElement};var S=false,U=false;this.capture=function(a){ca();if(!(B&&a)){B=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectabl... | "paddingRight"),h=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(b);b=(h=h&&h.length==2?h[1]:"0")?parseFloat(h):0;f=(h=(h=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(f))&&h.length==2?h[1]:"100000")?parseFloat(h):1E5;return k<b?b-1:k>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style... |
var pos = input.position(); | var pos = input.offset(); | show: function(e) { if (input.is("[readonly]") || opened) { return; } // onBeforeShow e = e || $.Event(); e.type = "onBeforeShow"; fire.trigger(e); if (e.isDefaultPrevented()) { return; } $.each(instances, function() { this.hide(); }); opened = true; // month sel... |
if (input.is("[readonly]")) { return; } | if (input.is("[readonly]") || opened) { return; } | show: function(e) { if (input.is("[readonly]")) { return; } // onBeforeShow e = e || $.Event(); e.type = "onBeforeShow"; fire.trigger(e); if (e.isDefaultPrevented()) { return; } $.each(instances, function() { this.hide(); }); opened = true; // month selector m... |
tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body).hide(); | tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body) .hide().append(title); | show: function(e) { // tip not initialized yet if (!tip) { // find a "manual" tooltip if (title) { tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body).hide(); } else if (conf.tip) { tip = $(conf.tip).eq(0); } else { tip = trigger.next(); if ... |
if (title) { tip.html(title); } | show: function(e) { // tip not initialized yet if (!tip) { // find a "manual" tooltip if (title) { tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body).hide(); } else if (conf.tip) { tip = $(conf.tip).eq(0); } else { tip = trigger.next(); if ... | |
if (conf.tip) { tip = $(conf.tip); if (tip.length > 1) { tip = trigger.next(conf.tip); } | if (title) { tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body); } else { tip = trigger.next(); if (!tip.length) { tip = trigger.parent().next(); } if (!tip.length) { tip = $(conf.tip).eq(0); } | show: function(e) { // tip not initialized yet if (!tip) { // find a "manual" tooltip if (conf.tip) { tip = $(conf.tip); if (tip.length > 1) { tip = trigger.next(conf.tip); } } // create it if (!tip || !tip.length) { tip = $(conf.layout).addClass(conf.tipCla... |
if (!tip || !tip.length) { tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body); } | } if (tip.length) { tip.hide() } else { throw "Cannot find tooltip for " + trigger; | show: function(e) { // tip not initialized yet if (!tip) { // find a "manual" tooltip if (conf.tip) { tip = $(conf.tip); if (tip.length > 1) { tip = trigger.next(conf.tip); } } // create it if (!tip || !tip.length) { tip = $(conf.layout).addClass(conf.tipCla... |
"paddingRight"),k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(b);b=(k=k&&k.length==2?k[1]:"0")?parseFloat(k):0;f=(k=(k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(f))&&k.length==2?k[1]:"100000")?parseFloat(k):1E5;return h<b?b-1:h>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style... | "none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var B=null,S=false,Y=false;this.capture=function(a){ca();if(!(B&&a)){B=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture(... | "paddingRight"),k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(b);b=(k=k&&k.length==2?k[1]:"0")?parseFloat(k):0;f=(k=(k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(f))&&k.length==2?k[1]:"100000")?parseFloat(k):1E5;return h<b?b-1:h>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style... |
if(!c&&l!=m)return false;for(var n=0;n<l;n++){var o=j[n];if((!c||o.specified&&o.nodeName!='_cke_expando')&&o.nodeValue!=i.getAttribute(o.nodeName))return false;}if(c)for(n=0;n<m;n++){o=k[n];if(o.specified&&o.nodeName!='_cke_expando'&&o.nodeValue!=this.getAttribute(o.nodeName))return false;}return true;},isVisible:funct... | },show:function(l,m,n,o){this.editor.focus();this._.onMenu(l||a.document.getDocumentElement(),m,n||0,o||0);}}});(function(){j.add('div',{requires:['editingblock','domiterator','styles'],init:function(l){var m=l.lang.div;l.addCommand('creatediv',new a.dialogCommand('creatediv'));l.addCommand('editdiv',new a.dialogComman... | if(!c&&l!=m)return false;for(var n=0;n<l;n++){var o=j[n];if((!c||o.specified&&o.nodeName!='_cke_expando')&&o.nodeValue!=i.getAttribute(o.nodeName))return false;}if(c)for(n=0;n<m;n++){o=k[n];if(o.specified&&o.nodeName!='_cke_expando'&&o.nodeValue!=this.getAttribute(o.nodeName))return false;}return true;},isVisible:funct... |
}); | }); self.setDate(); | show: function() { // month selector monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); }); // year selector yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); }); // prev / ... |
self.setDate(); | var pos = input.offset(); root.css({ top: pos.top + input.outerHeight({margins: true}) + conf.offset[0], left: pos.left + conf.offset[1] }); | show: function() { // month selector monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); }); // year selector yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); }); // prev / ... |
var pos = input.offset(), h = root.height(), w = root.width(); root.css({ top: pos.top + input.outerHeight({margins: true}) + conf.offset[0], left: pos.left + conf.offset[1], width: 0, height: 0, opacity: 0 }).animate({height: h, width: w, opacity: 1}, conf.speed, conf.easing, function() { $(document).bind("keydo... | if (conf.speed) { root.show(conf.speed, setupKeyboard); } else { root.show(); setupKeyboard(); } | show: function() { // month selector monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); }); // year selector yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); }); // prev / ... |
BF.changeCSS(".verse a, .search_verse a, .first_verse a, .psalm_title a", "cursor: pointer;"); | BF.changeCSS(".verse a, .search_verse a, .first_verse a, .psalm_title a, .subscription a", "cursor: pointer;"); | function show_cursor() { /// Prevent the cursor from being hidden. clearTimeout(hide_cursor_timeout); if (!is_cursor_visible) { page.style.cursor = "auto"; BF.changeCSS(".verse a, .search_verse a, .first_verse a, .psalm_title a", ... |
lanelist.style.maxHeight = "620px" ; | var lch = parseInt ( document.getElementById('img_container').offsetHeight ) ; lch -= parseInt ( document.getElementById('chr_lanes_container').offsetHeight ) ; lch -= 74 ; lanelist.style.height = lch + "px" ; lanelist.style.maxHeight = lch + "px" ; | function show_lanes () { var form = document.createElement ( 'form' ) ; var h = document.createElement ( 'p' ) ; form.name = 'lanes' ; form.id = 'lanes_form' ; h.id = 'lanes_title' ; h.style.fontWeight = 'bold' ; h.style.borderBottom = '1px solid black' ; h.appendChild ( document.createTextNode ( i18n['lanes_title'] ) ... |
showArtifact : function(data) { | showArtifact : function(data, artifactContainer) { | showArtifact : function(data) { this.data = data; if (data == null) { this.find('name', 'repositoryPath')[0].setRawValue(null); this.find('name', 'uploader')[0].setRawValue(null); this.find('name', 'size')[0].setRawValue(null); this.find('name', 'uploaded')... |
showArtifactContainer : function() { return false; | showArtifactContainer : function( record ) { if ( 'COLLAPSED' == record.get('version') || 'COLLAPSED' == record.get('packaging') || 'COLLAPSED' == record.get('classifier') ) { return false; } return true; | showArtifactContainer : function() { return false; }, |
var selectedExtraId = $('#block_extra_id_'+ blockId).val(); | var selectedExtraId = $('#blockExtraId'+ blockId).val(); | showExtraDialog: function(evt) { // prevent the default action evt.preventDefault(); // get the block wherefor we will change the extra var blockId = $(this).attr('rel'); // get selected extra id var selectedExtraId = $('#block_extra_id_'+ blockId).val(); // populate the hidden field, so we know for which b... |
else $('#extraWarningAlreadyBlock').hide(); | showExtraDialog: function(evt) { // prevent the default action evt.preventDefault(); // get the block wherefor we will change the extra var blockId = $(this).attr('rel'); // get selected extra id var selectedExtraId = $('#blockExtraId'+ blockId).val(); // populate the hidden field, so we know for which bloc... | |
this.updateDownloadRemoteIndexCombo( formatField.getValue() ); | showHandler: function ( panel ) { var formatField = this.form.findField('format'); if ( formatField ){ this.updateDownloadRemoteIndexCombo( formatField.getValue() ); this.updateIndexableCombo( formatField.getValue() ); } }, | |
this.updateWritePolicy(); | showHandler: function ( panel ) { var formatField = this.form.findField('format'); if ( formatField ){ this.updateDownloadRemoteIndexCombo( formatField.getValue() ); this.updateIndexableCombo( formatField.getValue() ); } }, | |
lastFilterValue = null; | this.showPopup = function() { el.style.display = ''; selId = null; }; | |
d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){... | (f=e);if(f&&typeof f==="string")h=c.filter(f,h);h=this.length>1?c.unique(h):h;if((this.length>1||Da.test(f))&&Ca.test(a))h=h.reverse();return this.pushStack(h,a,I.call(arguments).join(","))}});c.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,e){var f=[];for(a=a[b];a&&a.... | d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){... |
if (val == undefined) { | if (val === undefined) { | function slide(evt, x, val, isSetValue) { // calculate value based on slide position if (val == undefined) { val = x / len * range; // x is calculated based on val. we need to strip off min during calculation } else if (isSetValue) { val -= conf.min; } // increment in steps if (step... |
if (isNaN(val) || val == value) { return self; } | if (isNaN(val)) { return self; } | function slide(evt, x, val, isSetValue) { // calculate value based on slide position if (val == undefined) { val = x / len * range; // x is calculated based on val. we need to strip off min during calculation } else if (isSetValue) { val -= conf.min; } // increment in steps if (step... |
input[0].valueAsNumber = val; | function slide(evt, x, val, isSetValue) { // calculate value based on slide position if (val === undefined) { val = x / len * range; // x is calculated based on val. we need to strip off min during calculation } else if (isSetValue) { val -= conf.min; } // increment in steps if (step) ... | |
function slide(evt, x, val, isClick) { | function slide(evt, x, val, isSetValue) { | function slide(evt, x, val, isClick) { // calculate value based on slide position if (val == undefined) { val = x / len * range; } // increment in steps if (step) { val = Math.round(val / step) * step; } // count x based on value or tweak x if stepping is done if (x == undefined || st... |
x = Math.max(0, Math.min(x, len)); | x = Math.max(0, Math.min(x, len)); val = x / len * range; if (isSetValue || !vertical) { val += conf.min; } | function slide(evt, x, val, isClick) { // calculate value based on slide position if (val == undefined) { val = x / len * range; } // increment in steps if (step) { val = Math.round(val / step) * step; } // count x based on value or tweak x if stepping is done if (x == undefined || st... |
val += conf.min; val = x / len * range; | if (vertical) { if (isSetValue) { x = len -x; } else { val = conf.max - val; } } | function slide(evt, x, val, isClick) { // calculate value based on slide position if (val == undefined) { val = x / len * range; } // increment in steps if (step) { val = Math.round(val / step) * step; } // count x based on value or tweak x if stepping is done if (x == undefined || st... |
if (conf.vertical) { | if (vertical) { | function slide(evt, x, val, isClick) { // calculate value based on slide position if (val == undefined) { val = x / len * range; } // increment in steps if (step) { val = Math.round(val / step) * step; } // count x based on value or tweak x if stepping is done if (x == undefined || st... |
if (conf.progress) { progress.animate({height: x}, speed); } | if (conf.progress) { progress.animate({height: len - x + handle.width() / 2}, speed); } | function slide(evt, x, val, isClick) { // calculate value based on slide position if (val == undefined) { val = x / len * range; } // increment in steps if (step) { val = Math.round(val / step) * step; } // count x based on value or tweak x if stepping is done if (x == undefined || st... |
if (conf.progress) { progress.animate({width: x}, speed); } | if (conf.progress) { progress.animate({width: x + handle.width() / 2}, speed); } | function slide(evt, x, val, isClick) { // calculate value based on slide position if (val == undefined) { val = x / len * range; } // increment in steps if (step) { val = Math.round(val / step) * step; } // count x based on value or tweak x if stepping is done if (x == undefined || st... |
e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } init(); var fix = handle.width() / 2; | var fireEvent = e.target != handle[0]; if (fireEvent) { e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } } init(); var fix = handle.width() / 2; | function Slider(input, conf) { // private variables var self = this, root = $("<div><div/><a/></div>"), range = conf.max - conf.min, value, callbacks, origo, len, pos, progress, handle; input.before(root); handle = root.addClass(conf.sliderClass).find("a").addClass(conf.h... |
e.type = "onSlideEnd"; fire.trigger(e); | if (fireEvent) { e.type = "onSlideEnd"; fire.trigger(e); } | function Slider(input, conf) { // private variables var self = this, root = $("<div><div/><a/></div>"), range = conf.max - conf.min, value, callbacks, origo, len, pos, progress, handle; input.before(root); handle = root.addClass(conf.sliderClass).find("a").addClass(conf.h... |
conf[key] = parseFloat(val, 10); | if (val || val === 0) {; conf[key] = parseFloat(val, 10); } | function Slider(input, conf) { // private variables var self = this, root = $("<div><div/><a/></div>").data("slider", self), value, // current value origo, // handle's start point len, // length of the slider pos, // current position of the handle progress, // progress "bar" han... |
var v = round(x / len * range + conf.min, conf.decimals); | var isClick = e && e.originalEvent && e.originalEvent.type == "click", v = round(x / len * range + conf.min, conf.decimals); | function Slider(input, conf) { // private variables var self = this, root = $("<div><div/><a/></div>").data("slider", self), value, // current value origo, // handle's start point len, // length of the slider pos, // current position of the handle progress, // progress "bar" han... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.