rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); });
$.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/images/detail/',check_id) },true); });
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); });
"bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false, "aaSorting": [[_config.sorting[0],_config.sorting[1]]] },_config.dataTable)); } else { dTable.fnClearTable(); } dTable.fnAddData(_config.items); dTablesArr.push(dTable); if (_config.dataTable.sPaginationType) {
"bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false, "bSortClasses": true, "aaSorting": [[_config.sorting[0],_config.sorting[1]]] },_config.dataTable)); } else { dTable.fnClearTable(); } dTable.fnAddData(_config.items); dTablesArr.push(dTable); if (_config.dataTable.sPaginationType) {
this.each(function() { dTable = _config.dTable[elCnt]; if (!dTable) { $(this).empty().append(_buildTable(elCnt)); dTable = $('#dataTable_'+elCnt).dataTable( $.extend({ "bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false,...
$('.tblSort').click( function() { _config.fnTableSorting(this); } );
this.each(function() { dTable = _config.dTable[elCnt]; if (!dTable) { $(this).empty().append(_buildTable(elCnt)); dTable = $('#dataTable_'+elCnt).dataTable( $.extend({ "bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false,...
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds());
bt_instance_stop.target.bind('click',function(){ bt_instance_stop.open(c_list.getCheckedInstanceIds());
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds()); });
? function() { exports.log('crash?', method, context, arguments); return context[method].apply(context, arguments); }
? function() { return context[method].apply(context, arguments); }
? function() { exports.log('crash?', method, context, arguments); return context[method].apply(context, arguments); }
viewElem = pane.view('iconclass').$(); ok(viewElem.hasClass('icon'), 'view element should have "icon" class'); ok(viewElem.find('img').hasClass('icon'), 'img element inside view should have "icon" class');
test("Check that all labels have the right classes set", function() { var viewElem=pane.view('basic').$(); ok(viewElem.hasClass('sc-view'), 'basic.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'basic.hasClass(sc-label-view) should be YES'); ok(!viewElem.hasClass('icon'), 'basic.hasClass(...
this._loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._loadDict(schema, _sync ? callback : null); if (!_sync) { callback(schema); } });
return $.grep(this._slots, function (e) { return e; }).join("");
this._loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._loadDict(schema, _sync ? callback : null); if (!_sync) { callback(schema); } });
if (window.media && window.media.matchMedium) { if (!window.media.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } else if(window.styleMedia && window.styleMedia.matchMedium) { if (!window.styleMedia.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO;
try{ if (window.media && window.media.matchMedium) { if (!window.media.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } else if(window.styleMedia && window.styleMedia.matchMedium) { if (!window.styleMedia.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; ...
(function(){ // a test element var el = document.createElement("div"); // the css and javascript to test var css_browsers = ["-moz-", "-moz-", "-o-", "-ms-", "-webkit-"]; var test_browsers = ["moz", "Moz", "o", "ms", "webkit"]; // prepare css var css = "", i = null; for (i = 0; i < css_browsers.length; i++) { ...
element.select('.menuBox form').invoke('observe', 'submit', function(evt) {
element.select('.menuBox form:not(.notAJAX)').invoke('observe', 'submit', function(evt) {
element.select('.menuBox form').invoke('observe', 'submit', function(evt) { evt.preventDefault(); var theForm = Event.element(evt); var formAction = theForm.readAttribute('action'); var formMethod = theForm.readAttribute('method'); var formData = theForm.se...
else if (liberator.forceNewTab) MsgOpenNewTabForFolder(folder.URI);
function (args) { let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox"; let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist");...
SelectFolder(folder.URI);
liberator.open(folder);
function (args) { let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox"; let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist");...
return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") return "<"; let res = tokens[token]; if (res === undefined) res = "<" + token + ">"; if (res === null) res = ""; if (quote && typeof res != "number") return Commands.quoteArg['"'](res); return res; });
function quote(str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q;
return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") // Don't quote, as in Vim (but, why so in Vim? You'd think people wouldn't say <q-lt> if they didn't want it) return "<"; let res = tokens[token]; if (res === undefi...
select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title));
select.append($(document.createElement("option")).attr({selected: repo.id == json['default'], title: repo.description, value:repo.id}).text(repo.title));
$("select.repository_list").each(function (i, select) { select = $(select).empty(); $.each(json.results, function (i, repo) { select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title)); }); ...
function (count) { tabs.select("$"); });
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
function (count) { tabs.select("$"); });
$$(".ddu_checkbox").each(function(el2) { if (el2.checked) totalChecked++; });
$$(".ddu_button").each( function(e) { e.disabled = false; });
$$(".ddu_checkbox").each(function(el2) { if (el2.checked) totalChecked++; });
function (args) { let arg = args[0]; try { dactyl.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); } catch (e) { dactyl.echoerr("Error opening " + arg.quote() + ": " + e); } }, {
function () { dactyl.beep(); },
function (args) { let arg = args[0]; try { dactyl.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); } catch (e) { dactyl.echoerr("Error openin...
return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true;
indexOf: (function () { const table = [ [0x00c0, 0x00c6, ["A"]], [0x00c7, 0x00c7, ["C"]], [0x00c8, 0x00cb, ["E"]], [0x00cc, 0x00cf, ["I"]], [0x00d1, 0x00d1, ["N"]], [0x00d2, 0x00d6, ["O"]], [0x00d8, 0x00d8, ["O"]], [0x00d9, 0x00dc, ["U"]], [0x00dd, 0x00dd, ["Y"]], [0x00e0, 0x00e6, ["a"]], [0x00e7, 0x00e7, ["c"]], [0x00...
return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], ...
let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); else return stringsAtBeginningOfWords(hintStrings, words, allowWordOverleaping); };
function translate(chr) { var m, c = chr.charCodeAt(0); var n = table.length; var i = 0; while (n) { m = Math.floor(n / 2); var t = table[i + m]; if (c >= t[0] && c <= t[1]) return t[3](c); if (c < t[0] || m == 0) n = m; else { i += m; n = n - m; } } return chr; } return function indexOf(dest, src) { var end = dest.le...
return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], ...
function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) ...
function (args) { tabs.reload(config.browser.mCurrentTab, args.bang); },
function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, ...
jQuery(function() { jQuery('textarea').addProofreader(); });
node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; });
jQuery(function() { jQuery('textarea').addProofreader();});
var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } return memo; }, []); });
var doc = createHTML(res.responseText); if(!doc.getElementById('title')) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); function getTags(part){ return $X('id("save-' + part + '-tags") } return { editPage : editPage = 'http: form : { item : doc.getElementById('title').value, description...
}).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } return memo; }, []); })...
return this.tags.value.split(this.delimiter).filter(function(i){ return i });
this.values().forEach(function(val){ check[val] = true; });
return this.tags.value.split(this.delimiter).filter(function(i){ return i });
function (count) { events.onEscape(); });
function (count) { modes.set(modes.VISUAL, dactyl.mode); });
function (count) { events.onEscape(); });
this._exMap[name] || !full && array.nth(this._exCommands, function (cmd) cmd.hasName(name), 0) || null,
return this._exCommands.filter(function (cmd) cmd.user);
this._exMap[name] || !full && array.nth(this._exCommands, function (cmd) cmd.hasName(name), 0) || null,
this._exCommands = this._exCommands.filter(function (c) c !== cmd);
if (Array.concat(cmd.domains(args)).some(function (domain) util.isSubdomain(domain, host)))
this._exCommands = this._exCommands.filter(function (c) c !== cmd);
function (args) { let arg = args[0] || "";
commandline.input("Upload file: ", function (path) { let file = io.File(path); dactyl.assert(file.exists());
function (args) { let arg = args[0] || ""; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["user...
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(buffer.focusedFrame, arg); },
elem.value = file.path; }, {
function (args) { let arg = args[0] || ""; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["user...
if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level;
Buffer.setZoom(level, args.bang);
function (args) { let arg = args[0]; let level; if (!arg) level = 100; else if (/^\d+$/.test(arg)) level = parseInt(arg, 10); else if (/^[+-]\d+$/.test(arg)) { if (args.bang) ...
return function (linkText) { linkText = linkText.toLowerCase(); return tokens.every(function (token) indexOf(linkText, token) >= 0); };
return tokens.every(function (token) indexOf(linkText, token) >= 0);
return function (linkText) { linkText = linkText.toLowerCase(); return tokens.every(function (token) indexOf(linkText, token) >= 0); };
function (count) { tabs.select(0); });
function () { dactyl.quit(true); },
function (count) { tabs.select(0); });
: function () this.text];
res.__defineGetter__(k, function () Class.replaceProperty(this, k, v.call(this, this.item)));
: function () this.text];
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData)));
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c....
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;r...
remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c....
let dialog = args[0];
let arg = args[0] || ""; let items = Dactyl.getMenuItems();
function (args) { let dialog = args[0]; dactyl.assert(dialog in config.dialogs, "E475: Invalid argument: " + dialog); try { config.dialogs[dialog][1](); } catch (e) { dactyl.echoerr("Error openin...
dactyl.assert(dialog in config.dialogs, "E475: Invalid argument: " + dialog); try { config.dialogs[dialog][1](); } catch (e) { dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e));
dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand();
function (args) { let dialog = args[0]; dactyl.assert(dialog in config.dialogs, "E475: Invalid argument: " + dialog); try { config.dialogs[dialog][1](); } catch (e) { dactyl.echoerr("Error openin...
function () { liberator.beep(); },
function (args) { let arg = args[0]; try { let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " ...
function () { liberator.beep(); },
let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg);
liberator.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1]();
function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCa...
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
function (count) { tabs.select("$"); });
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
function (args) { let arg = args.literalArg; function compare(a, b) util.compareIgnoreCase(a, b) == 0 if (compare(document.getElementById("sidebar-title").value, arg)) { document.getElementById("sidebar-box").focus(); return; } let menu = document.getElementById("viewSidebarMenu"); for (let [, panel] in Iterator(me...
function () { if (!document.getElementById("sidebar-box").hidden) window.toggleSidebar();
function (args) { let arg = args.literalArg; function compare(a, b) util.compareIgnoreCase(a, b) == 0 // focus if the requested sidebar is already open if (compare(document.getElementById("sidebar-title").value, arg)) { document....
node.click(function(event) {
return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none') return; if ($this.attr('id').length == 0) { $this.attr('id', 'AtD_' + parent.id++); } var id = $this.attr('id'); var node = jQuery('<span></span>'); node.attr('id', 'AtD_' + parent.id++); node.html(opts.proofread_content); node.c...
node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } if($this.val() != "") { AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }else{ jAlert( AtD.getLang('message_error_no_text', 'Pleas...
$this.wrap('<div></div>'); $this.before('<span class="atd-ajax-load"></span>'); $this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node ); } }); $th...
node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } if($this.val() != "") { AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }else{ jAlert( AtD.getLang('message_error_no_text', 'Pleas...
this.each(function(value) { results.push(value[property]); });
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
this.each(function(value) { results.push(value[property]); });
function (count) { events.onEscape(); });
function (count) { modes.push(modes.VISUAL); });
function (count) { events.onEscape(); });
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title);
function (args) { let arg = args[0] || ""; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(buffer.focusedFrame, ar...
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title);
context.filters.push(function (i) !set.has(have, i.text));
function (args) { args = (args[0] || "").trim(); function fmt(value) (typeof value == "number" ? "#" : typeof value == "function" ? "*" : " ") + value; if (!args || args == "g:") { let str = <table> { template.map(dactyl.globalVariables, function ([i, value]) { return <tr> <td style="width: 200px;">{i}</td> <td>{fmt(...
context.filters.push(function (i) !set.has(have, i.text));
return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") return "<"; let res = tokens[token]; if (res === undefined) res = "<" + token + ">"; if (res === null) res = ""; if (quote && typeof res != "number") return Commands.quoteArg['"'](res); return res; });
ArgType("no arg", function (arg) !arg || null),
return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") // Don't quote, as in Vim (but, why so in Vim? You'd think people wouldn't say <q-lt> if they didn't want it) return "<"; let res = tokens[token]; if (res === undefi...
select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title));
select.append($(document.createElement("option")).attr({selected: repo.id == json['default'], title: repo.description, value:repo.id}).text(repo.title));
$.each(json.results, function (i, repo) { select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title)); });
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
function (count) { tabs.select("+" + (count || 1), true); },
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
$$(".ddu_button").each( function(e) { e.disabled = false; });
$$(".ddu_button").each( function(e) { e.disabled = true; });
$$(".ddu_button").each( function(e) { e.disabled = false; });
let arg = args.literalArg; let items = Dactyl.getMenuItems();
let arg = args[0];
function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { ...
dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand();
try { dactyl.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); } catch (e) { dactyl.echoerr("Error opening " + arg.quote() + ": " + e);
function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { ...
function () { tabs.stop(config.browser.mCurrentTab); },
function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) ...
function () { tabs.stop(config.browser.mCurrentTab); },
let str = CommandLine.echoArgumentToString(args[0], true);
let str = CommandLine.echoArgumentToString(args[0] || "", true);
].forEach(function (command) { commands.add([command.name], command.description, function (args) { let str = CommandLine.echoArgumentToString(args[0], true); if (str != null) command.action(str); ...
if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){
if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){
$this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node, AtD_submit_check_callback ); } });
AtD_check( id, node, AtD_submit_check_callback );
AtD_check( id, node );
$this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node, AtD_submit_check_callback ); } });
this.values().forEach(function(val){ check[val] = true;
this.candidates.forEach(function(cand){ delete check[cand.value];
this.values().forEach(function(val){ check[val] = true; });
function (count) { modes.set(modes.VISUAL, modes.TEXTAREA | modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); });
function (count) { events.onEscape(); });
function (count) { modes.set(modes.VISUAL, modes.TEXTAREA | modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); });
array.nth(this._exCommands, function (cmd) cmd.user && cmd.hasName(name), 0) || null,
if (Array.concat(cmd.domains(args)).some(function (domain) util.isSubdomain(domain, host)))
array.nth(this._exCommands, function (cmd) cmd.user && cmd.hasName(name), 0) || null,
function () { commandline.open(":", "mail -subject=", modes.EX); });
function () { commandline.open("", "mail -subject=", modes.EX); });
function () { commandline.open(":", "mail -subject=", modes.EX); });
return tokens.every(function (token) indexOf(linkText, token) >= 0);
return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); else return stringsAtBeginningOfWords(hintStrings, words, allowW...
return tokens.every(function (token) indexOf(linkText, token) >= 0);
function (count) { tabs.select("$"); });
["TabMove", "TabOpen", "TabClose"].forEach(function (event) { events.addSessionListener(tabContainer, event, this.closure._updateTabCount, false); }, this);
function (count) { tabs.select("$"); });
res.__defineGetter__(k, function () Class.replaceProperty(this, k, v.call(this, this.item)));
res.__defineGetter__(k, function () Class.replaceProperty(this, k, this.item[v]));
res.__defineGetter__(k, function () Class.replaceProperty(this, k, v.call(this, this.item)));
let arg = args.literalArg;
let arg = args[0] || "";
function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { ...
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c....
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({fo...
remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c....
function (args) { let arg = args[0] || ""; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, {
dactyl.assert(items.some(function (i) i.fullMenuPath == arg),
function (args) { let arg = args[0] || ""; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { ...
let arg = args[0];
let arg = args.literalArg; let items = Liberator.getMenuItems();
function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCa...
try { let dialogs = config.dialogs;
liberator.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg);
function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCa...
for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e);
for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand();
function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCa...
return new DeferredHash(ds).addCallback(function(ress){ values(ress).forEach(function(pair){ var success = pair[0], res = pair[1]; if(!success) throw res; }); var res = ress.suggestions[1]; res.tags = ress.tags[1]; return res; });
return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } return memo; }, []);
return new DeferredHash(ds).addCallback(function(ress){ // エラーチェック values(ress).forEach(function(pair){ var success = pair[0], res = pair[1]; if(!success) throw res; }); var res = ress.suggestions[1]; res.tags = ress.tags[1]; return res; });
function (count) { tabs.select("+" + (count || 1), true); },
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
function (count) { tabs.select("+" + (count || 1), true); },
liberator.forceNewWindow = true; liberator.execute(args.string, null, true); liberator.forceNewWindow = false;
let arg = args.literalArg; function compare(a, b) util.compareIgnoreCase(a, b) == 0 if (compare(document.getElementById("sidebar-title").value, arg)) { document.getElementById("sidebar-box").focus(); return; } let menu = document.getElementById("viewSidebarMenu"); for (let [, panel] in Iterator(menu.childNodes)) { ...
function (args) { liberator.forceNewWindow = true; liberator.execute(args.string, null, true); liberator.forceNewWindow = false; },
$this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node );
node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } if($this.val() != "") { AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }else{ jAlert( AtD.getLang('message_error_no_text', 'Please enter some text in the ...
$this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node ); } });
this.each(function(value, index) { if (!iterator.call(context, value, index)) results.push(value); });
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
this.each(function(value, index) { if (!iterator.call(context, value, index)) results.push(value); });
function (count) { modes.push(modes.VISUAL, modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); });
function (count) { events.onEscape(); });
function (count) { modes.push(modes.VISUAL, modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); });
function (context) { context.generate = function () option.values.map(function (o) [o, ""]); });
template.map(dactyl.globalVariables, function ([i, value]) { return <tr> <td style="width: 200px;">{i}</td> <td>{fmt(value)}</td> </tr>; })
function (context) { context.generate = function () option.values.map(function (o) [o, ""]); });
function fixEscapes(str) str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4}|(.))/g, function (m, n1) n1 || m);
ArgType("string", function (val) val),
function fixEscapes(str) str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4}|(.))/g, function (m, n1) n1 || m);
let res = this._generate.call(this) || [];
let res = this._generate.call(this);
get generate() !this._generate ? null : function () { if (this.offset != this.cache.offset || this.lastActivated != this.top.runCount) { this.itemCache = {}; this.cache.offset = this.offset; this.lastActivated = this.top.runCount; } if (!this.itemCache[this.key]...
function (count) { tabs.select("+" + (count || 1), true); },
function (count) { tabs.select("-" + (count || 1), true); },
function (count) { tabs.select("+" + (count || 1), true); },
$$(".ddu_button").each( function(e) { e.disabled = true; });
$$(".ddu_checkbox").each(function(element) { element.observe("change", function(el) { var totalChecked = 0; $$(".ddu_checkbox").each(function(el2) { if (el2.checked) totalChecked++; }); if (totalChecked) { $$(".ddu_button").each( function(e) { e.disabled = false; }); } else { $$(".ddu_button").each( function(e) { e.di...
$$(".ddu_button").each( function(e) { e.disabled = true; });
dactyl.assert(items.some(function (i) i.fullMenuPath == arg),
function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, {
dactyl.assert(items.some(function (i) i.fullMenuPath == arg),
].forEach(function (start, stop, val) { if (typeof a[2] != "string") for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = val[(i - start) % val.length]; else { let n = val.charCodeAt(0); for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = String.fromCharCode(n + i - start); } });
a[3] = function (chr) String.fromCharCode(this[2].charCodeAt(0) + chr - this[0]);
].forEach(function (start, stop, val) { if (typeof a[2] != "string") for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = val[(i - start) % val.length]; else { let n = val.charCodeAt(0); for (i=start; i <= stop; i++) ...
function (args) { buffer.viewSource(args[0], args.bang); },
function () { tabs.stop(config.browser.mCurrentTab); },
function (args) { buffer.viewSource(args[0], args.bang); },
function (args) {
].forEach(function (command) { commands.add([command.name], command.description, function (args) {
function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); }, {
completer: function (context) completion.javascript(context), literal: 0 }); });
function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); }, {
let str = CommandLine.echoArgumentToString(args[0], true);
let str = CommandLine.echoArgumentToString(args[0] || "", true);
function (args) { let str = CommandLine.echoArgumentToString(args[0], true); if (str != null) command.action(str); }, {
this.candidates.forEach(function(cand){ delete check[cand.value]; });
setTimeout(function(){ this.tags.selectionStart = this.tags.selectionEnd = index; }, 0);
this.candidates.forEach(function(cand){ delete check[cand.value]; });
dactyl.assert(modes.extended & modes.TEXTAREA); editor.executeCommand("cmd_cut"); modes.set(modes.INSERT, modes.TEXTAREA);
modes.set(modes.VISUAL, modes.TEXTAREA | modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1);
function (count) { dactyl.assert(modes.extended & modes.TEXTAREA); editor.executeCommand("cmd_cut"); modes.set(modes.INSERT, modes.TEXTAREA); });
return this._exCommands.filter(function (cmd) cmd.user);
completeOpts = options.filter(function (opt) opt.multiple || !set.has(args, opt.names[0]));
return this._exCommands.filter(function (cmd) cmd.user);
commandline.open(":", "mail " + to + " -subject=", modes.EX);
commandline.open("", "mail " + to + " -subject=", modes.EX);
function () { try { let to = mail._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { liberator.beep(); } ...
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
function (count) { tabs.select(0); });
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); },
res.__defineGetter__(k, function () Class.replaceProperty(this, k, this.item[v]));
res.__defineSetter__(k, function (val) Class.replaceProperty(this, k, val));
res.__defineGetter__(k, function () Class.replaceProperty(this, k, this.item[v]));
].forEach(function (command) { commands.add([command.name], command.description, function (args) {
function (args) {
].forEach(function (command) { commands.add([command.name], command.description, function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); ...
completer: function (context) completion.javascript(context), literal: 0 }); });
].forEach(function (command) { commands.add([command.name], command.description, function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); ...
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c....
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;...
f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c....
dactyl.assert(items.some(function (i) i.fullMenuPath == arg),
function (args) { try { let cmd = dactyl.userEval(args[0] || ""); dactyl.execute(cmd, null, true); } catch (e) { dactyl.echoerr(e); } }, {
dactyl.assert(items.some(function (i) i.fullMenuPath == arg),
function (args) { let arg = args.literalArg; let items = Liberator.getMenuItems(); liberator.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, {
liberator.assert(items.some(function (i) i.fullMenuPath == arg),
function (args) { let arg = args.literalArg; let items = Liberator.getMenuItems(); liberator.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { ...
function (count) { tabs.select("-" + (count || 1), true); },
function (count) { tabs.select("+" + (count || 1), true); },
function (count) { tabs.select("-" + (count || 1), true); },
function () { window.close(); },
function (args) { liberator.forceNewWindow = true; liberator.execute(args.string, null, true); liberator.forceNewWindow = false; },
function () { window.close(); },