rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
console.info(conf);
$.fn.lazyload = function(conf, all) { // return existing instance var el = this.data("lazyload"); if (el) { return el; } // loadOnScroll shortcut if (conf === true) { conf = {loadOnScroll: true, progress: null}; } // configuration conf = $.extend(true, {}, tool.conf, conf); console.info(conf); /...
$(self).one("appear",function(){if(!this.loaded){$("<img />").attr("src",$(self).attr("original")).bind("load",function(){$(self).hide().attr("src",$(self).attr("original")) [settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self...
$(self).one("appear",function(){if(!this.loaded){$("<img />").bind("load",function(){$(self).hide().attr("src",$(self).attr("original")) [settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self...
(function($){$.fn.lazyload=function(options){var settings={threshold:0,failurelimit:0,event:"scroll",effect:"show"};if(options){$.extend(settings,options);}var elements=this;if("scroll"==settings.event){$(window).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$....
lastId = response.lastid.toInt();
if(response.lastid) lastId = response.lastid.toInt();
leaveRoom: function () { lastId = null; var request = new ServerReq ('exit.php',function(response) { response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid -1;...
lastId = response.lastid.toInt();
if(response.lastid)lastId = response.lastid.toInt();
leaveRoom: function () { lastId = null; var request = new ServerReq ('exit.php',function(response) { response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid -1;...
switch (ch)
var macro = multilineVars.macros[line[i]]; if (macro !== undefined) { if (macro[0] === '!' || macro[0] === '+') macro = macro.substring(1); if (macro[macro.length-1] === '!' || macro[macro.length-1] === '+') macro = macro.substring(0, macro.length-1); if (legalAccents.detect(function(acc) { return (macro === acc); }))...
var letter_to_accent = function(line, i) {// var ch = line[i];// var macro = multilineVars.macros[ch];//// if (macro !== undefined) {// ch = macro;// i = 0;// } switch (ch) { case '.':return [1, 'staccato']; case 'u':return [1, 'upbow']; case 'v':return [1, 'downbow']; case '~':return [...
var legalAccents = [ "trill", "lowermordent", "uppermordent", "mordent", "pralltriller", "accent", "emphasis", "fermata", "invertedfermata", "tenuto", "0", "1", "2", "3", "4", "5", "+", "wedge", "open", "thumb", "snap", "turn", "roll", "breath", "shortphrase", "mediumphrase", "longphrase", "segno", "coda", "D.S.", "D.C...
var letter_to_accent = function(line, i) {// var ch = line[i];// var macro = multilineVars.macros[ch];//// if (macro !== undefined) {// ch = macro;// i = 0;// } switch (ch) { case '.':return [1, 'staccato']; case 'u':return [1, 'upbow']; case 'v':return [1, 'downbow']; case '~':return [...
var macro = multilineVars.macros[line[i]]; if (macro !== undefined) { if (macro[0] === '!' || macro[0] === '+') macro = macro.substring(1); if (macro[macro.length-1] === '!' || macro[macro.length-1] === '+') macro = macro.substring(0, macro.length-1);
case '.':return [1, 'staccato']; case 'u':return [1, 'upbow']; case 'v':return [1, 'downbow']; case '~':return [1, 'roll']; case '!': case '+': var ret = tokenizer.getBrackettedSubstring(line, i, 5); if (ret[1].length > 0 && (ret[1][0] === '^' || ret[1][0] ==='_')) ret[1] = ret[1].substring(1);
var letter_to_accent = function(line, i) { var macro = multilineVars.macros[line[i]]; if (macro !== undefined) { if (macro[0] === '!' || macro[0] === '+') macro = macro.substring(1); if (macro[macro.length-1] === '!' || macro[macro.length-1] === '+') macro = macro.substring(0, macro.length-1); i...
return (macro === acc);
return (ret[1] === acc);
var letter_to_accent = function(line, i) { var macro = multilineVars.macros[line[i]]; if (macro !== undefined) { if (macro[0] === '!' || macro[0] === '+') macro = macro.substring(1); if (macro[macro.length-1] === '!' || macro[macro.length-1] === '+') macro = macro.substring(0, macro.length-1); i...
return [ 1, macro ]; } switch (line[i]) { case '.':return [1, 'staccato']; case 'u':return [1, 'upbow']; case 'v':return [1, 'downbow']; case '~':return [1, 'roll']; case '!': case '+': var ret = tokenizer.getBrackettedSubstring(line, i, 5); if (ret[1].length > 0 && (ret[1][0] === '^' || ret[1][0] ==='_')) ret[1] = re...
var letter_to_accent = function(line, i) { var macro = multilineVars.macros[line[i]]; if (macro !== undefined) { if (macro[0] === '!' || macro[0] === '+') macro = macro.substring(1); if (macro[macro.length-1] === '!' || macro[macro.length-1] === '+') macro = macro.substring(0, macro.length-1); i...
case 'H':return [1, 'fermata']; case 'J':return [1, 'slide']; case 'M':return [1, 'mordent']; case 'R':return [1, 'roll']; case 'T':return [1, 'trill']; } return [0, 0]; };
if (line[i] === '!' && (ret[0] === 1 || line[i+ret[0]-1] !== '!')) return [1, null ]; warn("Unknown decoration: " + ret[1], line, i); ret[1] = ""; return ret; case 'H':return [1, 'fermata']; case 'J':return [1, 'slide']; case 'M':return [1, 'mordent']; case 'R':return [1, 'roll']; case 'T':return [1, 'trill']; } return...
var letter_to_accent = function(line, i) { var macro = multilineVars.macros[line[i]]; if (macro !== undefined) { if (macro[0] === '!' || macro[0] === '+') macro = macro.substring(1); if (macro[macro.length-1] === '!' || macro[macro.length-1] === '+') macro = macro.substring(0, macro.length-1); i...
switch (line[i])
switch (ch)
var letter_to_accent = function(line, i) { switch (line[i]) { case '.':return [1, 'staccato']; case 'u':return [1, 'upbow']; case 'v':return [1, 'downbow']; case '~':return [1, 'roll']; case '!': case '+': var ret = getBrackettedSubstring(line, i, 5); // Be sure that the accent is recog...
{ var ret = tokenizer.getBarLine(line, curr_pos); if (ret.len === 0) return [0,""]; if (ret.warn) { warn(ret.warn, line, curr_pos); return [ret.len,""];
{ var ret = tokenizer.getBarLine(line, curr_pos); if (ret.len === 0) return [0,""]; if (ret.warn) { warn(ret.warn, line, curr_pos); return [ret.len,""]; } for (var ws = 0; ws < line.length; ws++) if (line[curr_pos+ret.len+ws] !== ' ') break; var orig_bar_len = ret.len; if (line[curr_pos+ret.len+ws] === '[') { ret....
var letter_to_bar = function(line, curr_pos) { var ret = tokenizer.getBarLine(line, curr_pos); if (ret.len === 0) return [0,""]; if (ret.warn) { warn(ret.warn, line, curr_pos); return [ret.len,""]; } // Now see if this is a repeated ending // A repeated ending is all of the characters 1,2,3,4,5,...
for (var ws = 0; ws < line.length; ws++) if (line[curr_pos+ret.len+ws] !== ' ') break; var orig_bar_len = ret.len; if (line[curr_pos+ret.len+ws] === '[') { ret.len += ws + 1; if (line[curr_pos+ret.len] === '"') { var ending = tokenizer.getBrackettedSubstring(line, curr_pos+ret.len, 5); return [ret.len+ending[0], ret.t...
return [ret.len+retRep.len, ret.token, retRep.token]; };
var letter_to_bar = function(line, curr_pos) { var ret = tokenizer.getBarLine(line, curr_pos); if (ret.len === 0) return [0,""]; if (ret.warn) { warn(ret.warn, line, curr_pos); return [ret.len,""]; } // Now see if this is a repeated ending // A repeated ending is all of the characters 1,2,3,4,5,...
return [ line.length, line[i], line.substring(i+2).strip()]; default: }
return [ line.length, line[i], line.substring(i+2).strip()]; default:
this.letter_to_body_header = function(line, i) { if (line.length >= i+3) { switch(line.substring(i, i+2)) { case "I:": var err = this.addDirective(line.substring(i+2)); if (err) warn(err, line, i); return [ line.length ]; case "M:": var meter = this.setMeter(line.substring(i+2)); ...
return [ 0 ]; };
} return [ 0 ]; };
this.letter_to_body_header = function(line, i) { if (line.length >= i+3) { switch(line.substring(i, i+2)) { case "I:": var err = this.addDirective(line.substring(i+2)); if (err) warn(err, line, i); return [ line.length ]; case "M:": var meter = this.setMeter(line.substring(i+2)); ...
tune.appendStartingElement('clef', -1, -1, {type: multilineVars.clef});
tune.appendStartingElement('clef', -1, -1, multilineVars.clef);
var letter_to_body_header = function(line, i) { if (line.length >= i+3) { switch(line.substring(i, i+2)) { case "I:": var err = addDirective(line.substring(i+2)); if (err) warn(err, line, i); return [ line.length ]; case "M:": setMeter(line.substring(i+2)); tune.appendStartin...
return [ line.length, line[i], line.substring(2).strip()];
return [ line.length, line[i], line.substring(i+2).strip()];
var letter_to_body_header = function(line, i) { if (line.length >= i+3) { switch(line.substring(i, i+2)) { case "I:": var err = addDirective(line.substring(i+2)); if (err) warn(err, line, i); return [ line.length ]; case "M:": setMeter(line.substring(i+2)); tune.appendStartin...
return [ line.length, line[i], line.substring(i+2).strip()];
var e = line.indexOf('\x12', i+2); if (e === -1) e = line.length; var tempo = setTempo(line, i+2, e); if (tempo.type === 'delaySet') tune.appendElement('tempo', -1, -1, calcTempo(tempo.tempo)); else if (tempo.type === 'immediate') tune.appendElement('tempo', -1, -1, tempo.tempo); return [ e, line[i], line.substring(i+2...
var letter_to_body_header = function(line, i) { if (line.length >= i+3) { switch(line.substring(i, i+2)) { case "I:": var err = addDirective(line.substring(i+2)); if (err) warn(err, line, i); return [ line.length ]; case "M:": setMeter(line.substring(i+2)); tune.appendStartin...
if (line[i] === '"') { var chord = tokenizer.getBrackettedSubstring(line, i, 5); if (!chord[2]) warn("Missing the closing quote while parsing the chord symbol", line , i); if (chord[0] > 0 && chord[1].length > 0 && chord[1][0] === '^') { chord[1] = chord[1].substring(1); chord[2] = 'above'; } else if (chord[0] > 0 &...
var chord = tokenizer.getBrackettedSubstring(line, i, 5); if (!chord[2]) warn("Missing the closing quote while parsing the chord symbol", line , i); if (chord[0] > 0 && chord[1].length > 0 && chord[1][0] === '^') { chord[1] = chord[1].substring(1); chord[2] = 'above'; } else if (chord[0] > 0 && chord[1].length > 0 &...
var letter_to_chord = function(line, i) { if (line[i] === '"') { var chord = tokenizer.getBrackettedSubstring(line, i, 5); if (!chord[2]) warn("Missing the closing quote while parsing the chord symbol", line , i); // If it starts with ^, then the chord appears above. // If it starts with _ then t...
ii = note.endChar; delete note.endChar; } else { if (gra[1][ii] === ' ') { if (gracenotes.length > 0) gracenotes[gracenotes.length-1].end_beam = true; } else warn("Unknown character '" + gra[1][ii] + "' while parsing grace note", line, i); ii++; }
ii = note.endChar; delete note.endChar;
var letter_to_grace = function(line, i) { // Grace notes are an array of: startslur, note, endslur, space; where note is accidental, pitch, duration if (line[i] === '{') { // fetch the gracenotes string and consume that into the array var gra = tokenizer.getBrackettedSubstring(line, i, 1, '}'); if (!gra...
if (gracenotes.length) return [gra[0], gracenotes];
else { if (gra[1][ii] === ' ') { if (gracenotes.length > 0) gracenotes[gracenotes.length-1].end_beam = true; } else warn("Unknown character '" + gra[1][ii] + "' while parsing grace note", line, i); ii++; } } if (gracenotes.length) return [gra[0], gracenotes];
var letter_to_grace = function(line, i) { // Grace notes are an array of: startslur, note, endslur, space; where note is accidental, pitch, duration if (line[i] === '{') { // fetch the gracenotes string and consume that into the array var gra = tokenizer.getBrackettedSubstring(line, i, 1, '}'); if (!gra...
default: }
default:
this.letter_to_inline_header = function(line, i) { var ws = tokenizer.eatWhiteSpace(line, i); i +=ws; if (line.length >= i+5 && line[i] === '[' && line[i+2] === ':') { var e = line.indexOf(']', i); switch(line.substring(i, i+3)) { case "[I:": var err = this.addDirective(line.substring(i+3, e)...
return [ 0 ]; };
} return [ 0 ]; };
this.letter_to_inline_header = function(line, i) { var ws = tokenizer.eatWhiteSpace(line, i); i +=ws; if (line.length >= i+5 && line[i] === '[' && line[i+2] === ':') { var e = line.indexOf(']', i); switch(line.substring(i, i+3)) { case "[I:": var err = this.addDirective(line.substring(i+3, e)...
tune.appendStartingElement('clef', -1, -1, {type: multilineVars.clef});
tune.appendStartingElement('clef', -1, -1, multilineVars.clef);
var letter_to_inline_header = function(line, i) { var ws = tokenizer.eatWhiteSpace(line, i); i +=ws; if (line.length >= i+5) { var e = line.indexOf(']', i); switch(line.substring(i, i+3)) { case "[I:": var err = addDirective(line.substring(i+3, e)); if (err) warn(err, line, i); retu...
setDefaultLength(line, i+3, e); return [ e-i+1+ws ];
var letter_to_inline_header = function(line, i) { var ws = tokenizer.eatWhiteSpace(line, i); i +=ws; if (line.length >= i+5) { var e = line.indexOf(']', i); switch(line.substring(i, i+3)) { case "[I:": var err = addDirective(line.substring(i+3, e)); if (err) warn(err, line, i); retu...
if (e > 0)
if (e > 0) { var tempo = setTempo(line, i+3, e); if (tempo.type === 'delaySet') tune.appendElement('tempo', -1, -1, calcTempo(tempo.tempo)); else if (tempo.type === 'immediate') tune.appendElement('tempo', -1, -1, tempo.tempo);
var letter_to_inline_header = function(line, i) { var ws = tokenizer.eatWhiteSpace(line, i); i +=ws; if (line.length >= i+5) { var e = line.indexOf(']', i); switch(line.substring(i, i+3)) { case "[I:": var err = addDirective(line.substring(i+3, e)); if (err) warn(err, line, i); retu...
}
var letter_to_inline_header = function(line, i) { var ws = tokenizer.eatWhiteSpace(line, i); i +=ws; if (line.length >= i+5) { var e = line.indexOf(']', i); switch(line.substring(i, i+3)) { case "[I:": var err = addDirective(line.substring(i+3, e)); if (err) warn(err, line, i); retu...
ret.num_notes = line - '0';
ret.num_notes = line.charAt(i+5) - '0';
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line.charAt(i) === '(' || to...
var ret = {}; var start = i; while (line[i] === '(' || tokenizer.isWhiteSpace(line[i])) { if (line[i] === '(') { if (i+1 < line.length && (line[i+1] >= '2' && line[i+1] <= '9')) { if (ret.triplet !== undefined) warn("Can't nest triplets", line, i); else { ret.triplet = line[i+1] - '0'; if (i+2 < line.length && line[i+2...
var ret = {}; var start = i; while (line[i] === '(' || tokenizer.isWhiteSpace(line[i])) { if (line[i] === '(') { if (i+1 < line.length && (line[i+1] >= '2' && line[i+1] <= '9')) { if (ret.triplet !== undefined) warn("Can't nest triplets", line, i); else { ret.triplet = line[i+1] - '0'; if (i+2 < line.length && line[i+2...
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line[i] === '(' || tok...
} else warn("expected number after the triplet to mark the duration", line, i); }
} else { ret.num_notes = ret.triplet; i += 3; } } else warn("expected number after the triplet to mark the duration", line, i);
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line[i] === '(' || tok...
i++;
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line[i] === '(' || tok...
else { if (ret.startSlur === undefined) ret.startSlur = 1; else ret.startSlur++; }
i++;
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line[i] === '(' || tok...
i++;
else { if (ret.startSlur === undefined) ret.startSlur = 1; else ret.startSlur++; }
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line[i] === '(' || tok...
ret.consumed = i-start; return ret; };
i++; } ret.consumed = i-start; return ret; };
var letter_to_open_slurs_and_triplets = function(line, i) { // consume spaces, and look for all the open parens. If there is a number after the open paren, // that is a triplet. Otherwise that is a slur. Collect all the slurs and the first triplet. var ret = {}; var start = i; while (line[i] === '(' || tok...
let dirs = abManager.directories;
let dirs = services.get("abManager").directories;
list: function (filter, newMail) { let addresses = []; let dirs = abManager.directories; let lowerFilter = filter.toLowerCase(); while (dirs.hasMoreElements()) { let addrbook = dirs.getNext().QueryInterface(Ci.nsIAbDirectory); let cards = addrbook.childCards; ...
if (initFunction)
if (initFunction) {
var listenerFunction = function() { GEvent.removeListener(listenerHandler); if (initFunction) initFunction(scope.map, windowLocation, initFunctionParam); };
}
var listenerFunction = function() { GEvent.removeListener(listenerHandler); if (initFunction) initFunction(scope.map, windowLocation, initFunctionParam); };
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link....
for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:...
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link....
filename = AssetCompress.classUrl + buildName.reverse().join('-') + '?file[]=' + args.join('&file[]=');
filename = AssetCompress.classUrl + AssetCompress.underscore(buildName.reverse().join('')) + '.js' + '?file[]=' + args.join('&file[]=');
AssetCompress.load = function () { function _appendScript(filename, callback) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.src = filename; var done = false; script.onload = script.onreadystatechange = function () { if (!done && (!this.readyState || ...
if (maskConf) { $.mask.load(overlay, maskConf); }
if (maskConf) { $(overlay).expose(maskConf); }
load: function(e) { // can be opened only once if (self.isOpened()) { return self; } // find the effect var eff = effects[conf.effect]; if (!eff) { throw "Overlay: cannot find effect : \"" + conf.effect + "\""; } // close other instances? if (conf.oneInstance) { $.each(instance...
if (!conf.absolute) { top += w.scrollTop(); left += w.scrollLeft(); } overlay.css({position: conf.fixed ? 'fixed' : 'absolute'}).css({top: top, left: left});
load: function(e) { // can be opened only once if (self.isOpened()) { return self; } // find the effect var eff = effects[conf.effect]; if (!eff) { throw "Overlay: cannot find effect : \"" + conf.effect + "\""; } // close other instances? if (conf.oneInstance) { $.each(instance...
eff[0].call(self, function() {
eff[0].call(self, {top: top, left: left}, function() {
load: function(e) { // can be opened only once if (self.isOpened()) { return self; } // find the effect var eff = effects[conf.effect]; if (!eff) { throw "Overlay: cannot find effect : \"" + conf.effect + "\""; } // close other instances? if (conf.oneInstance) { $.each(instance...
if (maskConf) {
if (maskConf && conf.closeOnClick) {
load: function(e) { // can be opened only once if (self.isOpened()) { return self; } // find the effect var eff = effects[conf.effect]; if (!eff) { throw "Overlay: cannot find effect : \"" + conf.effect + "\""; } // close other instances? if (conf.oneInstance) { $.each(instance...
App.load = function () {
AssetCompress.load = function () {
App.load = function () { function _appendScript(filename, callback) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.src = filename; var done = false; script.onload = script.onreadystatechange = function () { if (!done && (!this.readyState || this.ready...
if (window.className !== undefined) {
if (window[className] !== undefined) {
App.load = function () { function _appendScript(filename, callback) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.src = filename; var done = false; script.onload = script.onreadystatechange = function () { if (!done && (!this.readyState || this.ready...
for (var i = args.length; i; i--) {
var buildName = []; for (var i = args.length; i--;) {
AssetCompress.load = function () { function _appendScript(filename, callback) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.src = filename; var done = false; script.onload = script.onreadystatechange = function () { if (!done && (!this.readyState || ...
var filename = App.classUrl + args.join('/');
var filename = AssetCompress.classUrl + buildName.reverse().join('-') + '?file[]=' + args.join('&file[]=');
AssetCompress.load = function () { function _appendScript(filename, callback) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.src = filename; var done = false; script.onload = script.onreadystatechange = function () { if (!done && (!this.readyState || ...
load: function(els, conf) {
load: function(conf, els) {
load: function(els, conf) { // already loaded ? if (loaded) { return this; } // configuration if (typeof conf == 'string') { conf = {color: conf}; } exposed = els; // use latest config conf = conf || config; config = conf = $.extend($.extend({}, tool.conf), conf); // get t...
exposed = els;
load: function(els, conf) { // already loaded ? if (loaded) { return this; } // configuration if (typeof conf == 'string') { conf = {color: conf}; } exposed = els; // use latest config conf = conf || config; config = conf = $.extend($.extend({}, tool.conf), conf); // get t...
els.css({zIndex:Math.max(conf.zIndex + 1, overlayIndex == 'auto' ? 0 : overlayIndex)});
exposed = els.css({zIndex:Math.max(conf.zIndex + 1, overlayIndex == 'auto' ? 0 : overlayIndex)});
load: function(els, conf) { // already loaded ? if (loaded) { return this; } // configuration if (typeof conf == 'string') { conf = {color: conf}; } exposed = els; // use latest config conf = conf || config; config = conf = $.extend($.extend({}, tool.conf), conf); // get t...
self.bind("onLoad.tmp", function() {
$(self).bind("onLoad.tmp", function() {
load: function(begin, end) { // filtered set of nodes var nodes = null, preload = arguments[arguments.length -1] === true; if (begin && begin.jquery) { nodes = begin.filter(function() { return els.index(this) >= 0; }); } else { nodes = begin >= 0 ? els.slice(begin, en...
self.unbind("onLoad.tmp");
$(self).unbind("onLoad.tmp");
load: function(begin, end) { // filtered set of nodes var nodes = null, preload = arguments[arguments.length -1] === true; if (begin && begin.jquery) { nodes = begin.filter(function() { return els.index(this) >= 0; }); } else { nodes = begin >= 0 ? els.slice(begin, en...
$('#chooseExtra').dialog({ autoOpen: false, draggable: false, resizable: false, modal: true,
$('#chooseExtra').dialog({ autoOpen: false, draggable: false, resizable: false, modal: true, width: 500,
load: function() { // set correct $('input.block_extra_id').each(function() { jsBackend.pages.extras.changeExtra($(this).val(), $(this).attr('id').replace('blockExtraId', '')); }) // initialize the modal for choosing an extra if($('#chooseExtra').length > 0) { $('#chooseExtra').dialog({ autoOpen: false, dragga...
if (conf.color) {
var bg = mask.css("backgroundColor"); if (!bg || bg == 'transparent' || bg == 'rgba(0, 0, 0, 0)') {
load: function(els, conf) { // already loaded ? if (loaded) { return this; } // configuration if (typeof conf == 'string') { conf = {color: conf}; } config = conf = $.extend($.extend({}, tool.conf), conf); // get the mask mask = $("#" + conf.maskId); // or create it if (!mas...
exposed = els.css({zIndex:Math.max(conf.zIndex + 1, overlayIndex == 'auto' ? 0 : overlayIndex)});
els.css({zIndex:Math.max(conf.zIndex + 1, overlayIndex == 'auto' ? 0 : overlayIndex)});
load: function(els, conf) { // already loaded ? if (loaded) { return this; } // configuration if (typeof conf == 'string') { conf = {color: conf}; } config = conf = $.extend($.extend({}, tool.conf), conf); // get the mask mask = $("#" + conf.maskId); // or create it if (!mas...
if(opts.staticData) { callback.call(null, opts.staticData);
if(opts.static) { callback.call(null, opts.static);
load : function(data, tree, opts, callback) { if(opts.staticData) { callback.call(null, opts.staticData); } else { $.ajax({ 'type' : opts.method, 'url' : opts.url, 'data' : data, 'dataType' : "json", 'success' : function (d, textStatus) { callback.cal...
jsBackend.pages.template.changeTemplate();
if($('#templateList input:radio:checked').val() != $('#templateId').val()) { jsBackend.pages.template.changeTemplate(); }
load: function() { // set correct $('input.block_extra_id').each(function() { jsBackend.pages.extras.changeExtra($(this).val(), $(this).attr('id').replace('blockExtraId', '')); }) // initialize the modal for choosing an extra if($('#chooseExtra').length > 0) { $('#chooseExtra').dialog({ autoOpen: false, dragga...
var bg = mask.css("backgroundColor"); if (!bg || bg == 'transparent' || bg == 'rgba(0, 0, 0, 0)') {
if (conf.color) {
load: function(conf, els) { // already loaded ? if (loaded) { return this; } // configuration if (typeof conf == 'string') { conf = {color: conf}; } // use latest config conf = conf || config; config = conf = $.extend($.extend({}, tool.conf), conf); // get the mask mask = $("#" ...
$('.block_extra_id').val('');
load: function() { // set correct $('input.block_extra_id').each(function() { jsBackend.pages.extras.changeExtra($(this).val(), $(this).attr('id').replace('blockExtraId', '')); }) // initialize the modal for choosing an extra if($('#chooseExtra').length > 0) { $('#chooseExtra').dialog({ autoOpen: false, dragga...
if (!document.activeElement) { function trackActiveElement(evt) { if (evt && evt.target) { document.activeElement = evt.target == document ? null : evt.target; } } function trackActiveElementLost(evt) { document.activeElement = null; } document.addEventListener("focus", trackActiveElement, true); document.addEventLis...
function load() { WT.history._initialize(); initDragDrop(); if (!loaded) { loaded = true; _$_ONLOAD_$_(); keepAliveTimer = setTimeout(doKeepAlive, _$_KEEP_ALIVE_$_000); }};
head.innerHTML = '<a class=\"fref\" href=\".\">' + pending_tree + '</a>';
head.innerHTML = '<a class=\"fref\" href=\".\">' + escape(pending_tree) + '</a>';
function load_file_finalize(content) { var res = document.getElementById('content'); res.innerHTML = 'Done'; res.innerHTML = content; var head = document.getElementById('current_path'); head.innerHTML = '<a class=\"fref\" href=\".\">' + pending_tree + '</a>'; var path_walked = ''; var elems = pending_file.split(/\//); ...
'<a class=\"fref\" href=\"' + path_walked + elems[i] + '\">' + elems[i] + '</a>';
'<a class=\"fref\" href=\"' + escape(path_walked) + escape(elems[i]) + '\">' + escape(elems[i]) + '</a>';
function load_file_finalize(content) { var res = document.getElementById('content'); res.innerHTML = 'Done'; res.innerHTML = content; var head = document.getElementById('current_path'); head.innerHTML = '<a class=\"fref\" href=\".\">' + pending_tree + '</a>'; var path_walked = ''; var elems = pending_file.split(/\//); ...
});
lazy_check(); });
var load_url = function() { var url = $(this).attr('href'); var place = '#plugins'; if (get_container(this) == 'hosts-container') { $('#hosts a').each(function() { $(this).removeClass('selected'); }); $selected_host = $(this).html(); $.getJSON('cgi-bin/collection.modified.cgi?action=pluginlist_json&host=' + $sele...
lazy_check();
var load_url = function() { var url = $(this).attr('href'); var place = '#plugins'; if (get_container(this) == 'hosts-container') { $('#hosts a').each(function() { $(this).removeClass('selected'); }); $selected_host = $(this).html(); $.getJSON('cgi-bin/collection.modified.cgi?action=pluginlist_json&host=' + $sele...
var place = get_container(this) == 'hosts-container' ? '#plugins' : '#graph-container'; $(place).load(url); $('#plugins a').each(function() { $(this).removeClass('selected'); });
var place = '#plugins';
var load_url = function() { var url = $(this).attr('href'); var place = get_container(this) == 'hosts-container' ? '#plugins' : '#graph-container'; $(place).load(url); $('#plugins a').each(function() { $(this).removeClass('selected'); }); if (get_container(this) == 'hosts-container') { $('#hosts a').each(function()...
$('#plugins a').each(function() { $(this).removeClass('selected'); }); lazy_check();
var load_url = function() { var url = $(this).attr('href'); var place = get_container(this) == 'hosts-container' ? '#plugins' : '#graph-container'; $(place).load(url); $('#plugins a').each(function() { $(this).removeClass('selected'); }); if (get_container(this) == 'hosts-container') { $('#hosts a').each(function()...
loadAndAutoSubmit : function (usernameName,usernameValue,
loadAndAutoSubmit : function (button, ctrlClick, usernameName,usernameValue,
loadAndAutoSubmit : function (usernameName,usernameValue, actionURL,usernameID,formID,uniqueID) { if (KFLog.logSensitiveData) KFLog.debug("loading and auto submitting " + actionURL); else KFLog.debug("loading and auto submitting..."); ...
KFLog.debug("loading and auto submitting " + actionURL);
KFLog.debug("loading and auto submitting button " + button + ctrlClick + ":" + actionURL);
loadAndAutoSubmit : function (usernameName,usernameValue, actionURL,usernameID,formID,uniqueID) { if (KFLog.logSensitiveData) KFLog.debug("loading and auto submitting " + actionURL); else KFLog.debug("loading and auto submitting..."); ...
KFLog.debug("loading and auto submitting...");
KFLog.debug("loading and auto submitting button " + button + ctrlClick + "...");
loadAndAutoSubmit : function (usernameName,usernameValue, actionURL,usernameID,formID,uniqueID) { if (KFLog.logSensitiveData) KFLog.debug("loading and auto submitting " + actionURL); else KFLog.debug("loading and auto submitting..."); ...
var newTab = b.loadOneTab( actionURL, null, null, null, false, null ); newTab.setAttribute("KF_uniqueID", uniqueID); newTab.setAttribute("KF_autoSubmit", "yes");
var tab; if (button == 1 || (button == 0 && ctrlClick)) { tab = b.loadOneTab( actionURL, null, null, null, false, null ); tab.setAttribute("KF_uniqueID", uniqueID); tab.setAttribute("KF_autoSubmit", "yes"); } else { tab = b.selectedTab; tab.setAttribute("KF_uniqueID", uniqueID); tab.setAttribute("KF_autoSubmit", "yes"...
loadAndAutoSubmit : function (usernameName,usernameValue, actionURL,usernameID,formID,uniqueID) { if (KFLog.logSensitiveData) KFLog.debug("loading and auto submitting " + actionURL); else KFLog.debug("loading and auto submitting..."); ...
tab.setAttribute("KF_uniqueID", uniqueID); tab.setAttribute("KF_autoSubmit", "yes");
loadAndAutoSubmit : function (button, ctrlClick, usernameName,usernameValue, actionURL,usernameID,formID,uniqueID) { if (KFLog.logSensitiveData) KFLog.debug("loading and auto submitting button " + button + ctrlClick + ":" + actionURL); else KFLog.debug(...
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.edito...
j.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var j=this._.editor;j.container.getChild(1).removeClass('cke_focus');this.hasFocus=false;j.fire('blur');}}};(function(){var j={};a.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':1,en:1,eo:1,es:1,et:1,eu:1,...
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.edito...
var answer = confirm("${_('Sure to replace with last edit content?')}");
var answer = confirm("${_('Sure to restore the last edited content?')}");
function loadEditBuffer(evt) { var answer = confirm("${_('Sure to replace with last edit content?')}"); if (!answer) { return; } // get last ticket field values $.getJSON(rel_url + "query", function(result){ // repl...
img.css({border:0,position:'absolute',display:'none'}).width(oWidth);
img.css({border:0, position: opts.fixed ? 'fixed' : 'absolute', display:'none'}).width(oWidth);
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
img = overlay.data("img");
img = overlay.data("img"), position = conf.fixed ? 'fixed' : 'absolute';
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"...
position: 'absolute',
position: position,
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"...
pos.position = 'absolute';
pos.position = position;
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"...
width: oWidth}, conf.speed, function() { if (conf.fixed) { pos.top -= w.scrollTop(); pos.left -= w.scrollLeft(); pos.position = 'fixed'; img.add(overlay).css(pos); }
width: oWidth}, conf.speed, function() {
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"...
var loadEffect = function(onLoad) {
var loadEffect = function(pos, onLoad) {
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
opts = this.getConf(),
conf = this.getConf(),
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
img.css({border:0, position: opts.fixed ? 'fixed' : 'absolute', display:'none'}).width(oWidth);
img.css({border:0, display:'none'}).width(oWidth);
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
var w = $(window), itop = opts.start.top || Math.round(w.height() / 2), ileft = opts.start.left || Math.round(w.width() / 2);
var itop = conf.start.top || Math.round(w.height() / 2), ileft = conf.start.left || Math.round(w.width() / 2);
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
itop = p[0]; ileft = p[1];
itop = p.top; ileft = p.left;
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
if (!opts.start.absolute) { itop += w.scrollTop(); ileft += w.scrollLeft(); }
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
zIndex: opts.zIndex
zIndex: conf.zIndex
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
width: oWidth}, opts.speed, function() {
width: oWidth}, conf.speed, function() {
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() {
overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() {
var loadEffect = function(onLoad) { var overlay = this.getOverlay(), opts = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"); // growing image is required. if (!img) { var bg = overlay.css("backgroundImage"); ...
position: position,
position: 'absolute',
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"), position = conf.fixed ? 'fixed' : 'absolute'; // growing image is required. if (...
pos.top += w.scrollTop(); pos.left += w.scrollLeft();
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"), position = conf.fixed ? 'fixed' : 'absolute'; // growing image is required. if (...
});
}).css("position", position);
var loadEffect = function(pos, onLoad) { var overlay = this.getOverlay(), conf = this.getConf(), trigger = this.getTrigger(), self = this, oWidth = overlay.outerWidth({margin:true}), img = overlay.data("img"), position = conf.fixed ? 'fixed' : 'absolute'; // growing image is required. if (...
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTab...
});s.on('destroy',function(x){var y=x.editor,z=p.getScayt(y);if(!z)return;delete p.instances[y.name];p.setControlId(y,z.id);z.destroy(true);});s.on('afterSetData',function(){if(p.isScaytEnabled(s))window.setTimeout(function(){var x=p.getScayt(s);x&&x.refresh();},10);});s.on('insertElement',function(){var x=p.getScayt(s...
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTab...
getElements: function() { return els; },
function Loader(els, conf) { // private variables var self = this, $self = $(this), css = conf.css, progress; if (conf.progress) { progress = $("<div/>").addClass(css.progress).html(conf.progress); } // The API $.extend(self, { preload: function(begin, end) { return self.load(b...
self.bind("onLoad.tmp", function() {
$(self).bind("onLoad.tmp", function() {
function Loader(els, conf) { // private variables var self = this, trigger = els.add(this), css = conf.css, progress; if (conf.progress) { progress = $("<div/>").addClass(css.progress).html(conf.progress); } // The API $.extend(self, { preload: function(begin, end) { return sel...
self.unbind("onLoad.tmp");
$(self).unbind("onLoad.tmp");
function Loader(els, conf) { // private variables var self = this, trigger = els.add(this), css = conf.css, progress; if (conf.progress) { progress = $("<div/>").addClass(css.progress).html(conf.progress); } // The API $.extend(self, { preload: function(begin, end) { return sel...
throw "We couldn't find a favicon for this URL: " + url;
if (this._KFLog.logSensitiveData) throw "We couldn't find a favicon for this URL: " + url; else throw "We couldn't find a favicon";
loadFavicon: function(url) { try { var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"] .getService(Components.interfaces.nsIFaviconService); var ioservice = Components.classes["@mozilla.org/network/io-service;1"]...
this._KFLog.info("favicon load failed for " + url + " : " + ex); throw "We couldn't find a favicon for this URL: " + url + " BECAUSE: " + ex;
if (this._KFLog.logSensitiveData) { this._KFLog.info("favicon load failed for " + url + " : " + ex); throw "We couldn't find a favicon for this URL: " + url + " BECAUSE: " + ex; } else { this._KFLog.info("favicon load failed: " + ex); throw "We couldn't find a favicon BECAUSE: " + ex; }
loadFavicon: function(url) { try { var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"] .getService(Components.interfaces.nsIFaviconService); var ioservice = Components.classes["@mozilla.org/network/io-service;1"]...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
if(l.execCommand('paste')===false)l.on('dialogHide',function(o){o.removeListener();n();});else n();}});l.ui.addButton('PasteFromWord',{label:l.lang.pastefromword.toolbar,command:'pastefromword'});l.on('paste',function(o){var p=o.data,q;if((q=p.html)&&(m||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(q))){v...
m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.u...
this.find('name', 'twinpanel')[0].disable(); this.find('name', 'roles-privs-tree')[0].dragZone.lock(); this.find('name', 'all-roles-privs-tree')[0].dragZone.lock();
loadHandler : function() { if (!this.payload.data.userManaged) { this.find('name', 'internalResourceHeader')[0].setVisible(true); this.find('name', 'id')[0].disable(); this.find('name', 'name')[0].disable(); this.find('name', 'description')[0].disable(); ...
var formatField = this.form.findField('format'); if ( formatField ){ this.updateDownloadRemoteIndexCombo( formatField.getValue() ); this.updateIndexableCombo( formatField.getValue() ); }
loadHandler: function( form, action, receivedData ) { var repoType = receivedData.repoType; var repoPolicy = receivedData.repoPolicy; if ( repoType == 'proxy' &&! receivedData.remoteStorage.remoteStorageUrl .match( REPO_REMOTE_STORAGE_REGEXP ) ) { var rsUrl = this.form.findField( 'remoteStora...
if (cswRecord.getFilteredOnlineResources('WFS').length != 0) {
if (cswRecord.getFilteredOnlineResources('WFS').length !== 0) {
var loadLayer = function(activeLayerRecord) { var cswRecords = activeLayerRecord.getCSWRecords(); //We simplify things by treating the record list as a single type of WFS, WCS or WMS //So lets find the first record with a type we can choose (Prioritise WFS -> WCS -> WMS) if (cswRecords.leng...