rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
req.close();
req.end();
(function test_nonmatching_get_to_get_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/getstring2'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_nonmatching_post_to_post_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('POST', '/poststring2'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_nonmatching_put_to_put_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('PUT', '/putstring2'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_post_to_del_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('POST', '/delstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_post_to_get_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('POST', '/get'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_post_to_get_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('POST', '/getstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_post_to_post_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('POST', '/poststring'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); ...
req.close();
req.end();
(function test_post_to_put_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('POST', '/putstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_put_to_del_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('PUT', '/delstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_put_to_get_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('PUT', '/get'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_put_to_get_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('PUT', '/getstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_put_to_post_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('PUT', '/poststring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_put_to_put_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('PUT', '/putstring'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); asse...
req.close();
req.end();
(function test_read_dir() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/test_dir'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(501, res.statusCode); receive_callback(); }); req.close(); }());
req.close();
req.end();
(function test_static_file() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/test.html'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); assert_response(re...
req.close();
req.end();
(function test_unmatched_request_string() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/unmatched'); expect_callback(); req.addListener( 'response', function (res) { assert_not_found(res); }); req.close(); }());
assertEquals("five items in item array", ds.getItems().length, 6);
assertEquals("Correct number of items in item array", 6, ds.getItems().length);
function testItemsLoaded() { var ds = tm.datasets["test"]; assertEquals("five items in item array", ds.getItems().length, 6);}
assertEquals(item.getTitle() + " has type 'array'", item.getType(), "array");
assertEquals(item.getTitle() + " has type 'array'", "array", item.getType());
function testMultiplePlacemarks() { var ds = tm.datasets["test"]; var item, point; for (var x=4; x<5; x++) { item = ds.getItems()[x]; assertEquals(item.getTitle() + " has type 'array'", item.getType(), "array"); // check for array attributes assertNotUndefined(item.getTitle() + " pl...
assertEquals(item.getTitle() + " has 4 placemarks", item.placemark.length, 4);
assertEquals(item.getTitle() + " has 4 placemarks", 4, item.placemark.length);
function testMultiplePlacemarks() { var ds = tm.datasets["test"]; var item, point; for (var x=4; x<5; x++) { item = ds.getItems()[x]; assertEquals(item.getTitle() + " has type 'array'", item.getType(), "array"); // check for array attributes assertNotUndefined(item.getTitle() + " pl...
item = ds.getItems()[4];
item = ds.getItems()[3];
function testMultiplePlacemarks() { var ds = tm.datasets["test"]; var item, point; for (var x=4; x<5; x++) { item = ds.getItems()[x]; assertEquals(item.getTitle() + " has type 'array'", item.getType(), "array"); // check for array attributes assertNotUndefined(item.getTitle() + " pl...
item = ds.getItems()[5];
item = ds.getItems()[4];
function testMultiplePlacemarks() { var ds = tm.datasets["test"]; var item, point; for (var x=4; x<5; x++) { item = ds.getItems()[x]; assertEquals(item.getTitle() + " has type 'array'", item.getType(), "array"); // check for array attributes assertNotUndefined(item.getTitle() + " pl...
var polyline = ds.getItems()[2].placemark; assertEquals("polyline has 3 vertices", polyline.getVertexCount(), 3); var polygon = ds.getItems()[3].placemark; assertEquals("polyline has 6 vertices", polygon.getVertexCount(), 6);
var polyline = ds.getItems()[1].placemark; assertEquals("polyline has 3 vertices", 3, polyline.getVertexCount()); var polygon = ds.getItems()[2].placemark; assertEquals("polyline has 6 vertices", 6, polygon.getVertexCount());
function testPolyVertices() { var ds = tm.datasets["test"]; var polyline = ds.getItems()[2].placemark; assertEquals("polyline has 3 vertices", polyline.getVertexCount(), 3); var polygon = ds.getItems()[3].placemark; assertEquals("polyline has 6 vertices", polygon.getVertexCount(), 6);}
loadWithScrollTo(new Date(1980, 1, 1), 1980);
loadWithScrollTo(new Date(1990, 1, 1), 1990);
function testScrollToDateObject() { loadWithScrollTo(new Date(1980, 1, 1), 1980);}
area:[1,"<map>","</map>"],_default:[0,"",""]};O.optgroup=O.option;O.tbody=O.tfoot=O.colgroup=O.caption=O.thead;O.th=O.td;if(!c.support.htmlSerialize)O._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof ...
true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:...
area:[1,"<map>","</map>"],_default:[0,"",""]};O.optgroup=O.option;O.tbody=O.tfoot=O.colgroup=O.caption=O.thead;O.th=O.td;if(!c.support.htmlSerialize)O._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof ...
},text:function(a){return"text"==a.type; },radio:function(a){return"radio"==a.type;
},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text)); }var ret=""; jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);...
},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;
then: function() {
then: function then() {
then: function() { if ( ! cancelled ) { var args = arguments, i, type, _fired; if ( fired ) { _fired = fired; fired = 0; } for ( i in args ) { i = args[ i ]; type = jQuery.type( i ); if ( type === "array" ) { this....
for ( i in args ) { i = args[ i ]; type = jQuery.type( i );
for ( i = 0, length = args.length ; i < length ; i++ ) { elem = args[ i ]; type = jQuery.type( elem );
then: function() { if ( ! cancelled ) { var args = arguments, i, type, _fired; if ( fired ) { _fired = fired; fired = 0; } for ( i in args ) { i = args[ i ]; type = jQuery.type( i ); if ( type === "array" ) { this....
this.then.apply( this , i );
then.apply( this , elem );
then: function() { if ( ! cancelled ) { var args = arguments, i, type, _fired; if ( fired ) { _fired = fired; fired = 0; } for ( i in args ) { i = args[ i ]; type = jQuery.type( i ); if ( type === "array" ) { this....
callbacks.push( i );
callbacks.push( elem );
then: function() { if ( ! cancelled ) { var args = arguments, i, type, _fired; if ( fired ) { _fired = fired; fired = 0; } for ( i in args ) { i = args[ i ]; type = jQuery.type( i ); if ( type === "array" ) { this....
axis.tickFormatter = function (v, axis) { return "" + axisOptions.tickFormatter(v, axis); };
tickFormatter: function(n) { return(theConverter.bytes(n)) }
axis.tickFormatter = function (v, axis) { return "" + axisOptions.tickFormatter(v, axis); };
* {Boolean} noEventLoad Whether to skip loading events on the timeline * {Boolean} noPlacemarkLoad Whether to skip loading placemarks on the map
TimeMap, TimeMapFilterChain, TimeMapDataset, TimeMapTheme, TimeMapItem;/*---------------------------------------------------------------------------- * TimeMap Class *---------------------------------------------------------------------------*/ /** * @class * The TimeMap object holds references to timeline, map, an...
BiwaScheme.nil.to_array = function(){ return [] };
to_array: function() { return []; },
BiwaScheme.nil.to_array = function(){ return [] };
nette.toggle = function(id, visible) { var elem = document.getElementById(id); if (elem) { elem.style.display = visible ? "" : "none"; } }
toggle : function (n) { if(!n) return false; var t = $.tree.reference(n); n = t.get_node(n); if(n.children("a").hasClass("checked")) $.tree.plugins.checkbox.uncheck(n); else $.tree.plugins.checkbox.check(n); },
nette.toggle = function(id, visible) { var elem = document.getElementById(id); if (elem) { elem.style.display = visible ? "" : "none"; }}
toggle: function(container) { if (lang.isValue(container.group)) { var group = WireIt.GroupUtils.getOuterGroup(container.group); var index = this.groups.indexOf(group);
toggle: function(container) { if (lang.isValue(container.group)) { var group = WireIt.GroupUtils.getOuterGroup(container.group); var groupIndex = this.groups.indexOf(group);
toggle: function(container) { if (lang.isValue(container.group)) { var group = WireIt.GroupUtils.getOuterGroup(container.group); var index = this.groups.indexOf(group); if (index == -1) this.addGroup(group); else this.removeGroup(group, index); } else { var index = this.containers.ind...
if (index == -1) this.addGroup(group); else this.removeGroup(group, index); } else { var index = this.containers.indexOf(container); if (index == -1) this.addContainer(container) else this.removeContainer(container, index) } },
if (groupIndex == -1) this.addGroup(group); else this.removeGroup(group, groupIndex); } else { var index = this.containers.indexOf(container); if (index == -1) this.addContainer(container); else this.removeContainer(container, index); } },
toggle: function(container) { if (lang.isValue(container.group)) { var group = WireIt.GroupUtils.getOuterGroup(container.group); var index = this.groups.indexOf(group); if (index == -1) this.addGroup(group); else this.removeGroup(group, index); } else { var index = this.containers.ind...
var $arrow = $select.find("img"); $arrow.attr('src', ($select.hasClass('ui-state-hover') ? 'arrow_hover.gif' : 'arrow.gif') );
$select.find("img").attr('src', ($select.hasClass('ui-state-hover') ? 'arrow_hover.gif' : 'arrow.gif') );
function toggleArrow(){ var $arrow = $select.find("img"); $arrow.attr('src', ($select.hasClass('ui-state-hover') ? 'arrow_hover.gif' : 'arrow.gif') ); };
var expand = (content.style.display=="none"); content.style.display = (expand ? "block" : "none");
var styleSet = (content.style.display!=""); var isHidden; if (styleSet) isHidden = (content.style.display=="none"); if (!styleSet) isHidden = (content.className=="hidden"); content.style.display = (isHidden ? "block" : "none");
function toggleDisplay(content) { var expand = (content.style.display=="none"); content.style.display = (expand ? "block" : "none"); //var chevron = content.parentNode // .firstChild.childNodes[1].childNodes[0]; //chevron.src = chevron.src // .split(expand ? "expand.gif" : "collapse.gif") // ...
var checked = parentId?'checked':'none'; $("#pfg-qetable input[name=required-"+ parentId + "]").attr("checked", checked);
$("#pfg-qetable").find("input[name=required-"+ parentId + "]").attr("checked", "checked");
toggleRequired: function() { var requiredParent = $("span.required").parent(); $(requiredParent).each(function () { var parentId = $(this).attr('id').substr('archetypes-fieldname-'.length); var checked = parentId?'checked':'none'; $("#pfg-qetable input[name=required-"+ parentId + "]").attr("checked", checked);...
$("#pfg-qetable input[name^=required-]").change(function() {
$("#pfg-qetable").find("input[name^=required-]").bind('change', function(event) {
toggleRequired: function() { var requiredParent = $("span.required").parent(); $(requiredParent).each(function () { var parentId = $(this).attr('id').substr('archetypes-fieldname-'.length); var checked = parentId?'checked':'none'; $("#pfg-qetable input[name=required-"+ parentId + "]").attr("checked", checked);...
$('#archetypes-fieldname-'+id+' #'+id).removeAttr("required");
$('#archetypes-fieldname-'+id).find('[name^='+id+']').removeAttr("required");
toggleRequired: function() { var requiredParent = $("span.required").parent(); $(requiredParent).each(function () { var parentId = $(this).attr('id').substr('archetypes-fieldname-'.length); var checked = parentId?'checked':'none'; $("#pfg-qetable input[name=required-"+ parentId + "]").attr("checked", checked);...
$('#archetypes-fieldname-'+id+' #'+id).attr("required", "required")
$('#archetypes-fieldname-'+id).find('[name^='+id+']').attr("required", "required")
toggleRequired: function() { var requiredParent = $("span.required").parent(); $(requiredParent).each(function () { var parentId = $(this).attr('id').substr('archetypes-fieldname-'.length); var checked = parentId?'checked':'none'; $("#pfg-qetable input[name=required-"+ parentId + "]").attr("checked", checked);...
return true;
toggleRequired: function() { var requiredParent = $("span.required").parent(); $(requiredParent).each(function () { var parentId = $(this).attr('id').substr('archetypes-fieldname-'.length); var checked = parentId?'checked':'none'; $("#pfg-qetable input[name=required-"+ parentId + "]").attr("checked", checked);...
return '<nobr>' + indent + text + ' <em>(' + row.count + ' genes) ' + row.id + '</em></nobr>';
var title = ''; if(row.alternativeTerms.length) { for(var i in row.alternativeTerms) { var at = row.alternativeTerms[i]; var hat = $.highlightTerm(at, q, 'b'); if(hat != at) { text += ' [' + (at.length > 50 ? $.highlightTerm(at.substr(0, 50) + '...', q, 'b') : hat) + ']'; break; } } title += ' title="Alterantive terms:...
atlas.tokenizeConditionInput = function (fvalfield, factor, defaultvalue) { var actype = 'efv'; if(factor == '') { actype = 'efoefv'; } else if(factor == 'efo') { actype = 'efo'; } fvalfield.tokenInput(atlas.homeUrl + "fval", $.extend(true, {}, commonTokenOpt...
console.log("in track view");
trackView: function (options) { console.log("in track view"); var url = document.location.href, title = document.title, referrer = getReferrer(); fenixLog({_e: "hit", _u: url, _t: title, _r: referrer}); },
referrer = getReferrer();
referrer = getReferrer(), tm = -1, orig = "", t, o, now = new Date(); t = parseInt(getCookie(ts_cookie), 10); if(t) { tm = parseInt(now.getTime()/1000 - t, 10); o = getCookie(orig_cookie); if(o) { orig = o; } } else { orig = referrer; if(referrer !== "") { setCookie(orig_cookie, referrer, 365); } else { setCookie(orig_...
trackView: function (options) { console.log("in track view"); var url = document.location.href, title = document.title, referrer = getReferrer(); fenixLog({_e: "hit", _u: url, _t: title, _r: referrer}); },
fenixLog({_e: "hit", _u: url, _t: title, _r: referrer});
fenixLog({_e: "hit", _u: url, _t: title, _r: referrer, _o: orig, _tm: tm});
trackView: function (options) { console.log("in track view"); var url = document.location.href, title = document.title, referrer = getReferrer(); fenixLog({_e: "hit", _u: url, _t: title, _r: referrer}); },
traverse: function(event, start){
traverse: function(keycode, start){
traverse: function(event, start){ var $start = $(start), moveToLast = (event.keyCode === 38 || event.keyCode === 37) ? true : false, // select the first li that isn't an optgroup label / disabled $next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-opt...
moveToLast = (event.keyCode === 38 || event.keyCode === 37) ? true : false,
moveToLast = (keycode === 38 || keycode === 37) ? true : false,
traverse: function(event, start){ var $start = $(start), moveToLast = (event.keyCode === 38 || event.keyCode === 37) ? true : false, // select the first li that isn't an optgroup label / disabled $next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-opt...
$next.find('label').trigger('mouseenter');
$next.find('label').trigger('mouseover');
traverse: function(event, start){ var $start = $(start), moveToLast = (event.keyCode === 38 || event.keyCode === 37) ? true : false, // select the first li that isn't an optgroup label / disabled $next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-opt...
$toolkit.command.undo.undoable = false;
$toolkit.command.undo.undoable = 0;
this.trigger = function(e) { var view = ko.views.manager.currentView, scimoz = view.scimoz; // If autocomplete is visible and an item is focused, do not process as new line if (scimoz.autoCActive() && scimoz.autoCGetCurrent() >= 0) return false; // Find tag before and after current position var tagBefore = $t...
$toolkit.command.undo.undoable = true;
$toolkit.command.undo.undoable = 1;
this.trigger = function(e) { var view = ko.views.manager.currentView, scimoz = view.scimoz; // If autocomplete is visible and an item is focused, do not process as new line if (scimoz.autoCActive() && scimoz.autoCGetCurrent() >= 0) return false; // Find tag before and after current position var tagBefore = $t...
if ( ! e || ! e.preventUndo) { editorEndUndo = true; scimoz.beginUndoAction(); }
this.trigger = function(e) { var view = ko.views.manager.currentView, scimoz = view.scimoz, languagePair = [view.document.subLanguage, view.document.language]; // If we are working in a PHP buffer, check one position back to make sure we have HTML if (languagePair.indexOf('PHP') >= 0 && 'HTML' !== view.docume...
$toolkit.command.undo.undoable = false;
$toolkit.command.undo.undoable = 0;
this.trigger = function(e) { var view = ko.views.manager.currentView, scimoz = view.scimoz, languagePair = [view.document.subLanguage, view.document.language]; // If we are working in a PHP buffer, check one position back to make sure we have HTML if (languagePair.indexOf('PHP') >= 0 && 'HTML' !== view.docume...
$toolkit.command.undo.undoable = true;
$toolkit.command.undo.undoable = 2;
this.trigger = function(e) { var view = ko.views.manager.currentView, scimoz = view.scimoz, languagePair = [view.document.subLanguage, view.document.language]; // If we are working in a PHP buffer, check one position back to make sure we have HTML if (languagePair.indexOf('PHP') >= 0 && 'HTML' !== view.docume...
$self.undoable = false;
var levels = $self.undoable; $self.undoable = 0;
this.trigger = function(e) { $self.undoable = false; var scimoz = ko.views.manager.currentView.scimoz; if (scimoz.currentPos === $self.position) { scimoz.undo(); scimoz.anchor = scimoz.currentPos = $self.anchor; scimoz.scrollCaret(); // Do not process event any further e.preventDefault(); e.stopPropagat...
scimoz.undo(); scimoz.anchor = scimoz.currentPos = $self.anchor;
while (levels --) scimoz.undo(); scimoz.anchor = scimoz.currentPos = $self.anchor;
this.trigger = function(e) { $self.undoable = false; var scimoz = ko.views.manager.currentView.scimoz; if (scimoz.currentPos === $self.position) { scimoz.undo(); scimoz.anchor = scimoz.currentPos = $self.anchor; scimoz.scrollCaret(); // Do not process event any further e.preventDefault(); e.stopPropagat...
scimoz.focus = true;
try { scimoz.focus = true; } catch (e) { scimoz.isFocused = true; }
this.trigger = function() { var view = ko.views.manager.currentView, scimoz = view.scimoz, searchQuery = null, rangeStart = null, rangeEnd = null, searchStart = null, searchEnd = null; // If no active selection within the document if (scimoz.anchor === scimoz.currentPos) { // Start at cursor position and ...
var editorPosition = Math.min(scimoz.anchor, scimoz.currentPos), positionStyle = scimoz.getStyleAt(editorPosition); if (scimoz.anchor !== scimoz.currentPos && [scimoz.SCE_UDL_M_ATTRNAME, scimoz.SCE_UDL_M_STRING, scimoz.SCE_UDL_M_OPERATOR].indexOf(positionStyle) >= 0) return false;
this.trigger = function(e) { var view = ko.views.manager.currentView, scimoz = view.scimoz; // Ensure we don't have tabstops remaining within the buffer if (view.document.hasTabstopInsertionTable) { var tabstopsTable = view.document.getTabstopInsertionTable({}); // If we have one tabstop remaining, skip it if...
$toolkit.command.undo.undoable)
$toolkit.command.undo.undoable) { $toolkit.command.undo.undoable = 1;
this.trigger = function() { var view = ko.views.manager.currentView, scimoz = view.scimoz, abbreviation = null, rangeStart = null, rangeEnd = null; // If no active selection within the document if (scimoz.anchor === scimoz.currentPos) { // Start at cursor position and break at any non-tag character rangeS...
}
this.trigger = function() { var view = ko.views.manager.currentView, scimoz = view.scimoz, abbreviation = null, rangeStart = null, rangeEnd = null; // If no active selection within the document if (scimoz.anchor === scimoz.currentPos) { // Start at cursor position and break at any non-tag character rangeS...
/[^&]&$/.test(lineRange) ? scimoz.autoCShow(1, (function() {
/[^&]*&$/.test(lineRange) ? scimoz.autoCShow(1, (function() {
this.trigger = function(e) { this.onKeyEvent('up', function() { var _a, _b, _c, _d, entity, lineRange, lineStartPosition, scimoz; scimoz = ko.views.manager.currentView.scimoz; if (scimoz.currentPos === scimoz.anchor && scimoz.currentPos > 0 && scimoz.getStyleAt(scimoz.currentPos - 1) === scimoz.SCE_...
$toolkit.command.undo.undoable = false;
$toolkit.command.undo.undoable = 0;
this.trigger = function() { var view = ko.views.manager.currentView, scimoz = view.scimoz, searchQuery = null, rangeStart = null, rangeEnd = null, searchStart = null, searchEnd = null; // If no active selection within the document if (scimoz.anchor === scimoz.currentPos) { // Start at cursor position and ...
$toolkit.command.undo.undoable = true;
$toolkit.command.undo.undoable = 1;
this.trigger = function() { var view = ko.views.manager.currentView, scimoz = view.scimoz, searchQuery = null, rangeStart = null, rangeEnd = null, searchStart = null, searchEnd = null; // If no active selection within the document if (scimoz.anchor === scimoz.currentPos) { // Start at cursor position and ...
scimoz = ko.views.manager.currentView.scimoz; if (scimoz.autoCActive()) { return scimoz.autoCCancel();
if (root.pref('cssFillUpStopper.enabled') === 'true') { scimoz = ko.views.manager.currentView.scimoz; if (scimoz.autoCActive()) { return scimoz.autoCCancel(); }
this.trigger = function trigger(e) { var scimoz; scimoz = ko.views.manager.currentView.scimoz; if (scimoz.autoCActive()) { return scimoz.autoCCancel(); } };
output = '<iframe scrolling="no" border="0" frameborder="0" id="hider" style="position:absolute;background: #000; top:-200px;left:-110px;width:10px; height:30px; z-index: 999" src="/__lib/web/images/icons/asset_locator.png"></iframe>';
output = '<iframe scrolling="no" border="0" frameborder="0" id="hider" style="position:absolute;background: #000; top:-200px;left:-110px;width:10px; height:30px; z-index: 999" ></iframe>';
function tt_print(){ if (!document.getElementById("ToolBox")) { output = '<iframe scrolling="no" border="0" frameborder="0" id="hider" style="position:absolute;background: #000; top:-200px;left:-110px;width:10px; height:30px; z-index: 999" src="/__lib/web/images/icons/asset_locator.png"></iframe>'; output += '<table ...
output = '<iframe scrolling="no" border="0" frameborder="0" id="hider" style="position:absolute;background: #000; top:-200px;left:-110px;width:10px; height:30px; z-index: 999" ></iframe>';
output = '<iframe scrolling="no" border="0" frameborder="0" id="hider" style="position:absolute;background: #000; top:-200px;left:-110px;width:10px; height:30px; z-index: 999" src="/__lib/web/images/icons/asset_locator.png"></iframe>';
function tt_print(){ if (!document.getElementById("ToolBox")) { output = '<iframe scrolling="no" border="0" frameborder="0" id="hider" style="position:absolute;background: #000; top:-200px;left:-110px;width:10px; height:30px; z-index: 999" ></iframe>'; output += '<table cellspacing="0" cellpadding="0" border="0" id="...
} catch (exn) {}
} catch (exn_1) { }
function unblockSite(global){ var e = document.getElementById("unblockNowButton"); if (e) { e.disabled = true; } e = document.getElementById("unblockGlobalButton"); if (e) { e.disabled = true; } var req = false; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); ...
};
}
function unblockSite(global){ var e = document.getElementById("unblockNowButton"); if (e) { e.disabled = true; } e = document.getElementById("unblockGlobalButton"); if (e) { e.disabled = true; } var req = false; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); ...
uncheckAll: function(){ this._toggleChecked(false); this._trigger('uncheckAll'); return this; },
uncheckAll: function(){},
uncheckAll: function(){ this._toggleChecked(false); this._trigger('uncheckAll'); return this; },
$("tr.translate-translation-row").removeClass("translate-translation-fuzzy");
$("tr.edit-row").removeClass("translate-translation-fuzzy");
undoFuzzyArea: function() { $("tr.translate-translation-row").removeClass("translate-translation-fuzzy"); },
var checkbox = $("input.fuzzycheck"); if (this.isFuzzy()) { checkbox.removeAttr("checked"); }
$("input.fuzzycheck").removeAttr("checked");
undoFuzzyBox: function() { var checkbox = $("input.fuzzycheck"); if (this.isFuzzy()) { checkbox.removeAttr("checked"); } },
unselectFeature: function(feature) { },
unselectFeature: function() {},
unselectFeature: function(feature) { // override; do nothing },
$(".selected a").filter(function() { return this.target === frame || !this.target; })
jQuery(".selected a").filter(function() { return this.target === frame || !this.target; })
unselectFrame: function(frame) { $(".selected a").filter(function() { return this.target === frame || !this.target; }) .closest(".selected") .each(function() { n2.unselect(this.id); }); },
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.do...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.do...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
Membership.remove(Membership.getByName(session.user.name));
Membership.remove.call(Membership.getByName(session.user.name));
Site.prototype.unsubscribe_action = function() { if (req.postParams.proceed) { try { Membership.remove(Membership.getByName(session.user.name)); res.message = gettext("Successfully unsubscribed from site {0}.", this.title); res.redirect(User.getLocation() || this.href()); ...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.do...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.do...
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in...
gettext("Notification of membership change"));
gettext("[{0}] Notification of membership change", root.title));
Membership.prototype.update = function(data) { if (!data.role) { throw Error(gettext("Please choose a role for this member.")); } else if (this.user === session.user) { throw Error(gettext("Sorry, you are not allowed to edit your own membership.")); } else if (data.role !== this.role) { this.role =...
image.resized && (this.contentLength = this.getFile().getLength());
Image.prototype.update = function(data) { if (data.uploadError) { app.log(data.uploadError); // Looks like the file uploaded has exceeded the upload limit ... throw Error(gettext("File size is exceeding the upload limit.")); } if (!data.file_origin) { if (this.isTransient()) { thro...
} if(data.url != "") { if (!(this.url = validateUrl(data.url))) { throw Error(gettext("Please enter a valid URL")); }
} if (data.url && !(this.url = validateUrl(data.url))) { throw Error(gettext("Please enter a valid URL"));
User.prototype.update = function(data) { if (!data.digest && data.password) { data.digest = ((data.password + this.salt).md5() + session.data.token).md5(); } if (data.digest) { if (data.digest !== this.getDigest(session.data.token)) { throw Error(gettext("Oops, your old password is i...
update: function(event, ui){$.ajax({type: 'put', data: $('.tasks').sortable('serialize'), url: '/tasks/' + ui.item.attr('id') + '/sort?now=true'})},
update: function(event, ui){$.ajax({type: 'put', data: $(this).sortable('serialize'), url: '/tasks/' + ui.item.attr('id').substr(5) + '/sort'})},
update: function(event, ui){$.ajax({type: 'put', data: $('.tasks').sortable('serialize'), url: '/tasks/' + ui.item.attr('id') + '/sort?now=true'})},
throw Error(gettext("This type of file cannot be uploaded as image."));
throw Error(gettext("This seems not to be a (valid) JPG, PNG or GIF image file."));
Image.prototype.update = function(data) { if (data.uploadError) { app.log(data.uploadError); // Looks like the file uploaded has exceeded the upload limit ... throw Error(gettext("File size is exceeding the upload limit.")); } if (!data.file_origin) { if (this.isTransient()) { thro...
update: function( offset ){ if( offset === undefined ){ offset = 0; }
update: function(){
update: function( offset ){ if( offset === undefined ){ offset = 0; } var o = this.options, $inputs = this.labels.find('input'), $checked = $inputs.filter(':checked'), numChecked = $checked.length + offset, value; if( numChecked === 0 ){ value = o.noneSelectedText; } else { if($.isFunction(o.sel...
numChecked = $checked.length + offset,
numChecked = $checked.length,
update: function( offset ){ if( offset === undefined ){ offset = 0; } var o = this.options, $inputs = this.labels.find('input'), $checked = $inputs.filter(':checked'), numChecked = $checked.length + offset, value; if( numChecked === 0 ){ value = o.noneSelectedText; } else { if($.isFunction(o.sel...
$("img.ajax-loader").css('visibility', 'visible');
$("img.ajax-loader").css('visibility', 'visible'); $(item).width($(item).width());
update: function(e, ui) { if (ui.item.is("div.widget")) { // perform the operations on the newly dragged element from the widgets manager var item = ui.item; $(item).addClass("qechild"); $(item).addClass("item_" + i) $(item).wrap("<div class='qefield'></div>"); // on the fly wrapping with n...
for(var i in features.object.features) { features.object.features[i].geometry = features.object.features[i].geometry.transform(
var features_copy = features.object.clone(); for(var i in features_copy.features) { features_copy.features[i].geometry.transform(
function update(features) { WktWriter = new OpenLayers.Format.WKT(); for(var i in features.object.features) { features.object.features[i].geometry = features.object.features[i].geometry.transform( features.object.map.projection, new OpenLayers.Projection("EPSG:4326") ); } wkt_value = WktWriter.w...
wkt_value = WktWriter.write(features.object.features);
wkt_value = WktWriter.write(features_copy.features);
function update(features) { WktWriter = new OpenLayers.Format.WKT(); for(var i in features.object.features) { features.object.features[i].geometry = features.object.features[i].geometry.transform( features.object.map.projection, new OpenLayers.Projection("EPSG:4326") ); } wkt_value = WktWriter.w...
window.title = window.title.replace(/- \(\d+\)$/, '- (' + responseText.match(/<div id="unseen">(\d+)<\/div>/)[1] + ')');
document.title = document.title.replace(/- \(\d+\)$/, '- (' + responseText.match(/<div id="unseen">(\d+)<\/div>/)[1] + ')');
function update_foldertree(responseText, responseXML) { var folder_tree = responseText.match(/<ul[^>]*id="folder_tree"[^>]*>([\s\S]*)<\/ul>/i)[1]; // responseXML.getElementById doesn't work in IE window.title = window.title.replace(/- \(\d+\)$/, '- (' + responseText.match(/<div id="unseen">(\d+)<\/div>/)[1] + ')'...
update_node_count : function (newNode, newCount) { var newLabel = newNode.data.icon+'(<span class="AMB_count">'+newCount+'</span>) '+newNode.data.name; newNode.data.count = newCount; newNode.label = newLabel; },
YAHOO.ajax_marking_block.tree_base.prototype.update_node_count = function (newNode, newCount) { var newLabel = newNode.data.icon+'(<span class="AMB_count">'+newCount+'</span>) '+newNode.data.name; newNode.data.count = newCount; newNode.label = newLabel; };
update_node_count : function (newNode, newCount) { //var name = newNode.data.name; var newLabel = newNode.data.icon+'(<span class="AMB_count">'+newCount+'</span>) '+newNode.data.name; newNode.data.count = newCount; newNode.label = newLabel; },
if (!(pootle.editor.current_page in pootle.editor.pages_got)) { pootle.editor.get_view_units(pootle.editor.store, false, pootle.editor.current_page); }
pootle.editor.update_pager = function(pager) { pootle.editor.pager = pager; // If page number has changed, redraw pager if (pootle.editor.current_page != pager.number) { pootle.editor.current_page = pager.number; var newpager = $("#pager").tmpl({pager: pager}).get(0); $("div.translation-nav")....
if (!(pootle.editor.current_page + 1 in pootle.editor.pages_got)) { pootle.editor.get_view_units(pootle.editor.store, false, pootle.editor.current_page + 1); }
pootle.editor.check_pages();
pootle.editor.update_pager = function(pager) { pootle.editor.pager = pager; // If page number has changed, redraw pager if (pootle.editor.current_page != pager.number) { pootle.editor.current_page = pager.number; var newpager = $("#pager").tmpl({pager: pager}).get(0); $("div.translation-nav")....
if (this.current_page != pager.number) {
if (this.current_page != pager.number || this.current_num_pages != pager.num_pages) {
update_pager: function(pager) { this.pager = pager; // If page number has changed, redraw pager if (this.current_page != pager.number) { this.current_page = pager.number; var newpager = this.tmpl.pager($, {data: {pager: pager}}).join(""); $("div.translation-nav").children().replaceWith(newpage...
this.current_num_pages = pager.num_pages;
update_pager: function(pager) { this.pager = pager; // If page number has changed, redraw pager if (this.current_page != pager.number) { this.current_page = pager.number; var newpager = this.tmpl.pager($, {data: {pager: pager}}).join(""); $("div.translation-nav").children().replaceWith(newpage...
var newpager = this.tmpl.pager($, {data: {pager: pager}}).join(""); $("div.translation-nav").children().replaceWith(newpager);
var where = $("div.translation-nav"); var newpager = ""; if (this.current_num_pages > 1) { newpager = this.tmpl.pager($, {data: {pager: pager}}).join(""); } where.children().remove(); where.append(newpager);
update_pager: function(pager) { this.pager = pager; // If page number or num_pages has changed, redraw pager if (this.current_page != pager.number || this.current_num_pages != pager.num_pages) { this.current_page = pager.number; this.current_num_pages = pager.num_pages; var newpager = t...
pootle.editor.check_pages();
pootle.editor.update_pager = function(pager) { pootle.editor.pager = pager; // If page number has changed, redraw pager if (pootle.editor.current_page != pager.number) { pootle.editor.current_page = pager.number; var newpager = $("#pager").tmpl({pager: pager}).get(0); $("div.translation-nav")....
$("ul.pager").replaceWith(newpager);
$("div.translation-nav").children().remove(); $("div.translation-nav").append(newpager);
var update_pager = function(pager) { if (pager) { // XXX: For some reason replaceWith leaves a single element only // Related: http://dev.jquery.com/ticket/5917 var newpager = $("#pager").tmpl({pager: pager}).get(0); $("ul.pager").replaceWith(newpager); } };
update_parent_node : function(AJAXtree, node) {
YAHOO.ajax_marking_block.tree_base.prototype.update_parent_node = function(parent_node_to_update) {
update_parent_node : function(AJAXtree, node) { var counter = node.children.length; if (counter === 0) { AJAXtree.tree.removeNode(node, true); } else { if (node.data.type == 'course' || node.children[0].data.gid != 'undefined' || node.data.type == 'forum' || node.data.type...
var counter = node.children.length;
if (parent_node_to_update.isRoot()) { this.root.refresh(); this.update_total_count(); return true; }
update_parent_node : function(AJAXtree, node) { var counter = node.children.length; if (counter === 0) { AJAXtree.tree.removeNode(node, true); } else { if (node.data.type == 'course' || node.children[0].data.gid != 'undefined' || node.data.type == 'forum' || node.data.type...
if (counter === 0) { AJAXtree.tree.removeNode(node, true); } else {
var node_children_length = parent_node_to_update.children.length;
update_parent_node : function(AJAXtree, node) { var counter = node.children.length; if (counter === 0) { AJAXtree.tree.removeNode(node, true); } else { if (node.data.type == 'course' || node.children[0].data.gid != 'undefined' || node.data.type == 'forum' || node.data.type...