rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
$.each(selectorsToIgnore, function (index, selectorToIgnore) { delete selectors[selectorToIgnore]; });
var node = fluid.dom.iterateDom(rootNode, function(node) { return node.nodeType === 8 || node.nodeType === 4? "stop" : null; }, true);
$.each(selectorsToIgnore, function (index, selectorToIgnore) { delete selectors[selectorToIgnore]; });
.focus(function() { uiDialogTitlebarClose.addClass('ui-state-focus'); })
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
.focus(function() { uiDialogTitlebarClose.addClass('ui-state-focus'); })
return fluid.each(entry, function (value, key) { return key !== "decorators"; }) === false;
$.each(repeatingSelectors, function (index, repeatingSelector) { if (selector === repeatingSelector) { selector = selector + ":"; } });
return fluid.each(entry, function (value, key) { return key !== "decorators"; }) === false;
setTimeout(function () { if (blurPending) { handler(control); } }, 150);
return fluid.each(entry, function (value, key) { return key !== "decorators"; }) === false;
setTimeout(function () { if (blurPending) { handler(control); } }, 150);
return fluid.transform(args, function(arg, index) { upgradeBound(args, index, renderOptions.model); return args[index].value; });
return fluid.transform(optionlist, function(option, index) { return { ID: opts.rowID, children: [ {ID: opts.inputID, parentRelativeID: "..::" + opts.selectID, choiceindex: index}, {ID: opts.labelID, parentRelativeID: "..::" + opts.selectID, choiceindex: index}] }; });
return fluid.transform(args, function(arg, index) { upgradeBound(args, index, renderOptions.model); return args[index].value; });
return external? function() {
(function ($, fluid) { var resourceCache = {}; var pendingClass = {}; fluid.fetchResources = function(resourceSpecs, callback, options) { var that = fluid.initLittleComponent("fluid.fetchResources", options); that.resourceSpecs = resourceSpecs; that.callback = callback; that.operate = function() { fluid.fetchRes...
return external? function() { try { external.apply(null, arguments); } catch (e) { fluid.log("Exception applying external fetchResources callback: " + e); } internal.apply(null, arguments); // call the internal callback without...
}; fluid.fetchResources.composePolicy = function(target, source, key) { target[key] = fluid.fetchResources.composeCallbacks(target[key], source[key]); }; fluid.defaults("fluid.fetchResources.issueRequest", { mergePolicy: { success: fluid.fetchResources.composePolicy, error: fluid.fetchResources.composePolicy, url: "r...
return external? function() { try { external.apply(null, arguments); } catch (e) { fluid.log("Exception applying external fetchResources callback: " + e); } internal.apply(null, arguments); // call the internal callback without...
$.each(repeatingSelectors, function (index, repeatingSelector) {
(function ($, fluid) { if (!fluid.renderer) { fluid.fail("fluidRenderer.js is a necessary dependency of RendererUtilities"); } fluid.registerNamespace("fluid.renderer.selection"); fluid.expect = function (name, members, target) { fluid.transform($.makeArray(members), function(key) { if (!target[key]) { fluid.fail(n...
$.each(repeatingSelectors, function (index, repeatingSelector) { if (selector === repeatingSelector) { selector = selector + ":"; } });
} return selector; }; fluid.renderer.selectorsToCutpoints = function (selectors, options) { var togo = []; options = options || {}; selectors = fluid.copy(selectors); if (options.selectorsToIgnore) { selectors = removeSelectors(selectors, options.selectorsToIgnore); } for (var selector in selectors) { togo.push({ id...
$.each(repeatingSelectors, function (index, repeatingSelector) { if (selector === repeatingSelector) { selector = selector + ":"; } });
.blur(function() { uiDialogTitlebarClose.removeClass('ui-state-focus'); })
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
.blur(function() { uiDialogTitlebarClose.removeClass('ui-state-focus'); })
setTimeout(function() { that.editView.value(that.model.value)}, 1);
fluid.each(expanded, function(el) {target[target.length] = el});
setTimeout(function() { that.editView.value(that.model.value)}, 1);
return fluid.transform(optionlist, function(option, index) { return { ID: opts.rowID, children: [ {ID: opts.inputID, parentRelativeID: "..::" + opts.selectID, choiceindex: index}, {ID: opts.labelID, parentRelativeID: "..::" + opts.selectID, choiceindex: index}] }; });
return function (messagecodes, args) { if (typeof(messagecodes) === "string") { messagecodes = [messagecodes]; } for (var i = 0; i < messagecodes.length; ++ i) { var code = messagecodes[i]; var message = messageBase[code]; if (message === undefined) { continue; } return resolveFunc(message, args); } return "[Message st...
return fluid.transform(optionlist, function(option, index) { return { ID: opts.rowID, children: [ {ID: opts.inputID, parentRelativeID: "..::" + opts.selectID, choiceindex: index}, {ID: opts.labelID, parentRelativeID: "..::" + opts.selectID...
setTimeout(function() { that.callback(resourceSpecs); }, 1);
fluid.each(resourceSpecs, function(resourceSpec) { resourceSpec.recurseFirer = fluid.event.getEventFirer(); resourceSpec.recurseFirer.addListener(that.operate); if (resourceSpec.url && !resourceSpec.href) { resourceSpec.href = resourceSpec.url; } });
setTimeout(function() { that.callback(resourceSpecs); }, 1);
return fluid.each(entry, function (value, key) { return key !== "decorators"; }) === false;
fluid.transform($.makeArray(members), function(key) { if (!target[key]) { fluid.fail(name + " missing required parameter " + key); } });
return fluid.each(entry, function (value, key) { return key !== "decorators"; }) === false;
.mousedown(function(ev) { ev.stopPropagation(); })
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
.mousedown(function(ev) { ev.stopPropagation(); })
;(function($) { var helper = {}, current, title, tID, IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), track = false; $.tooltip = { blocked: false, defaults: { delay: 200, showURL: true, extraClass: "", top: 15, left: 15, id: "tooltip" }, block: function() { $.tooltip.blocked = !$.tooltip.bl...
fluid.each(expanded, function(el) {target[target.length] = el});
;(function($) { // the tooltip element var helper = {}, // the current tooltipped element current, // the title of the current element, used for restoring title, // timeout id for delayed tooltips tID, // IE 5.5 or 6 IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), // flag for mouse track...
setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0);
;(function($) { var helper = {}, current, title, tID, IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), track = false; $.tooltip = { blocked: false, defaults: { delay: 200, showURL: true, extraClass: "", top: 15, left: 15, id: "tooltip" }, block: function() { $.tooltip.blocked = !$.tooltip.bl...
setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0);
return function (messagecodes, args) { if (typeof(messagecodes) === "string") { messagecodes = [messagecodes]; } for (var i = 0; i < messagecodes.length; ++ i) { var code = messagecodes[i]; var message = messageBase[code]; if (message === undefined) { continue; } return resolveFunc(message, args); } return "[Message st...
var node = fluid.dom.iterateDom(rootNode, function(node) { return node.nodeType === 8 || node.nodeType === 4? "stop" : null; }, true);
return function (messagecodes, args) { if (typeof(messagecodes) === "string") { messagecodes = [messagecodes]; } for (var i = 0; i < messagecodes.length; ++ i) { var code = messagecodes[i]; var message = messageBase[code]; ...
(function ($) { $("head").append("<style type='text/css'>.fl-progEnhance-basic, .fl-ProgEnhance-basic { display: none; }</style>"); })(jQuery);
fluid.each(classes, function(clazz) { var pending = pendingClass[clazz]; fluid.each(pending, function(pendingrec, canon) { specs[clazz+"!"+canon] = pendingrec; pendingrec.recurseFirer.addListener(operator); }); });
(function ($) { // Note: the use of fl-ProgEnhance-basic is deprecated, and replaced by fl-progEnhance-basic. // It is included here for backward compatibility only. $("head").append("<style type='text/css'>.fl-progEnhance-basic, .fl-ProgEnhance-basic { display: none; }</style>");})(jQuery);
fluid.each(expanded, function(el) {target[target.length] = el});
var rows = fluid.transform(selection.optionlist.value, function(option, index) { var togo = {}; var element = {parentRelativeID: "..::" + options.selectID, choiceindex: index}; togo[options.inputID] = element; togo[options.labelID] = fluid.copy(element); return togo; });
fluid.each(expanded, function(el) {target[target.length] = el});
.click(function(event) { self.close(event); return false; })
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
.click(function(event) { self.close(event); return false; })
return this.each(function() {
;(function($) { var helper = {}, current, title, tID, IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), track = false; $.tooltip = { blocked: false, defaults: { delay: 200, showURL: true, extraClass: "", top: 15, left: 15, id: "tooltip" }, block: function() { $.tooltip.blocked = !$.tooltip.bl...
return this.each(function() { $.data(this, "tooltip-settings", settings); // copy tooltip into its own expando and remove the title this.tooltipText = this.title; $(this).removeAttr("title"); // also remove alt attribute to prevent default tooltip in IE this.alt = ""; })
.hover(save, hide) .click(hide); }, fixPNG: IE ? function() { return this.each(function () { var image = $(this).css('backgroundImage'); if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) { image = RegExp.$1; $(this).css({ 'backgroundImage': 'none', 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=t...
return this.each(function() { $.data(this, "tooltip-settings", settings); // copy tooltip into its own expando and remove the title this.tooltipText = this.title; $(this).removeAttr("title"); // also remove alt attribute to prevent default tooltip in IE this.alt = ""; })
return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { return false; } edit(that); return true; };
return this.each(function() { $.data(this, "tooltip-settings", settings); this.tooltipText = this.title; $(this).removeAttr("title"); this.alt = ""; })
return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { return false; } edit(that); return true; };
var node = fluid.dom.iterateDom(rootNode, function(node) { return node.nodeType === 8 || node.nodeType === 4? "stop" : null; }, true);
(function ($, fluid) { if (!fluid.renderer) { fluid.fail("fluidRenderer.js is a necessary dependency of RendererUtilities"); } fluid.registerNamespace("fluid.renderer.selection"); fluid.expect = function (name, members, target) { fluid.transform($.makeArray(members), function(key) { if (!target[key]) { fluid.fail(n...
var node = fluid.dom.iterateDom(rootNode, function(node) { // NB, in Firefox at least, comment and cdata nodes cannot be distinguished! return node.nodeType === 8 || node.nodeType === 4? "stop" : null; }, true);
fluid.each(array, function(el) { togo[el] = true; });
(function ($, fluid) { fluid.XMLP = function(strXML) { return fluid.XMLP.XMLPImpl(strXML); }; fluid.XMLP.closedTags = { abbr: true, br: true, col: true, img: true, input: true, link: true, meta: true, param: true, hr: true, area: true, embed:true }; fluid.XMLP._NONE = 0; fluid.XMLP._ELM_B = 1; fluid.XMLP._ELM_E = ...
fluid.each(array, function(el) { togo[el] = true; });
;(function($) { var helper = {}, current, title, tID, IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), track = false; $.tooltip = { blocked: false, defaults: { delay: 200, showURL: true, extraClass: "", top: 15, left: 15, id: "tooltip" }, block: function() { $.tooltip.blocked = !$.tooltip.bl...
var expanded = fluid.transform(list, function(element, i) { var EL = fluid.model.composePath(path, i); var envAdd = {}; if (options.pathAs) { envAdd[options.pathAs] = EL; } if (options.valueAs) { envAdd[options.valueAs] = fluid.model.getBeanValue(config.model, EL); } var expandrow = fluid.withEnvironment(envAdd, functi...
;(function($) { // the tooltip element var helper = {}, // the current tooltipped element current, // the title of the current element, used for restoring title, // timeout id for delayed tooltips tID, // IE 5.5 or 6 IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), // flag for mouse track...
_init: function() {},
_create: function() {},
test('widget creation', function() { var myPrototype = { _init: function() {}, creationTest: function() {} }; $.widget('ui.testWidget', myPrototype); ok($.isFunction($.ui.testWidget), 'constructor was created'); equals('object', typeof $.ui.testWidget.prototype, 'prototype was created'); equals($.ui.testWidget.proto...
equals($.ui.testWidget.prototype._init, myPrototype._init, 'init function is copied over');
equals($.ui.testWidget.prototype._create, myPrototype._create, 'create function is copied over');
test('widget creation', function() { var myPrototype = { _init: function() {}, creationTest: function() {} }; $.widget('ui.testWidget', myPrototype); ok($.isFunction($.ui.testWidget), 'constructor was created'); equals('object', typeof $.ui.testWidget.prototype, 'prototype was created'); equals($.ui.testWidget.proto...
input.val(item.urn); input.change();
if (item) { input.val(item.urn); input.change(); }
autoCompleteInput.autocomplete(opts).autocomplete("result", function (e, item) { input.val(item.urn); input.change(); });
passwordValidatorTest.test("Default lengths", function () {
passwordValidatorTest.test("Show hide appropriately", function () {
passwordValidatorTest.test("Default lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main"); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("1234567").change(); jqUnit.is...
pw.val("1234567").change();
pw.val(samplePasswords.invalidTooSmall).change();
passwordValidatorTest.test("Default lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main"); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("1234567").change(); jqUnit.is...
pw.val("12345678").change(); jqUnit.notVisible("On exact min length password, message should not be visible", msg); pw.val("12345678901234567890123").change(); jqUnit.notVisible("On exact max length password, message should not be visible", msg); pw.val("123456789012345678901234").change();
pw.val(samplePasswords.validInBetween).change(); jqUnit.notVisible("On long-enough password, message should not be visible", msg); pw.val(samplePasswords.invalidTooLong).change();
passwordValidatorTest.test("Default lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main"); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("1234567").change(); jqUnit.is...
$("#inventors").remove();
$("#inventors").hide();
$("#answer3_body_yes").click(function(){ $(".bt_add").hide(); $("#inventors").remove(); $("#more_inventor").attr("checked", false); });
this._observing.forEach(function(topic) { this.obsSrvc.addObserver(this, topic, false); }, this);
this.saveToUDB=function(){yahooUtils.setTimeout(function(){feedFetcher.pushLayoutToServer(1,layout,toolbarmanager.isGuestMode());},5);};this.saveAndReload=function(){yahooUtils.setTimeout(function(){if(toolbarmanager.isGuestMode()||_self.localButtonProcessor.getUserOpt_SaveLocal()){saveLayoutToPref(layout);} feedFetche...
this._observing.forEach(function(topic) { this.obsSrvc.addObserver(this, topic, false); }, this);
Drupal.media.formatForm.launch(mediaFile, function(formattedMedia) { Drupal.wysiwyg.plugins.media.insertMediaFile(mediaFile, formattedMedia, Drupal.wysiwyg.instances[instanceId]);
debug.debug(instanceId); element_settings = {}; element_settings.url = Drupal.settings.media.formatFormUrl.replace('-media-', mediaFile.fid); element_settings.event = 'go'; var launcher = $('<div id ="wysiwyg-launcher"></div>'); Drupal.ajax['wysiwyg-launcher'] = new Drupal.ajax('wysiwyg-launcher', launcher, element_...
$().mediaBrowser( function (mediaFiles) { var mediaFile = mediaFiles[0]; //@todo: turn this into a non-anonymous bind Drupal.media.formatForm.launch(mediaFile, function(formattedMedia) { Drupal.wysiwyg.plugins.media.insertMediaFile(mediaFile, formattedMedia, Drupal.wysiwyg....
launcher.trigger('go'); return;
$().mediaBrowser( function (mediaFiles) { var mediaFile = mediaFiles[0]; //@todo: turn this into a non-anonymous bind Drupal.media.formatForm.launch(mediaFile, function(formattedMedia) { Drupal.wysiwyg.plugins.media.insertMediaFile(mediaFile, formattedMedia, Drupal.wysiwyg....
if ($.browser.opera) { afterHtml = afterHtml.replace(/ role=""/g, ""); }
test("destroy", function() { var beforeHtml = $("#button").parent().html(); var afterHtml = $("#button").button().button("destroy").parent().html(); equal( afterHtml, beforeHtml );});
jQuery(document).click(function(e) { var anchor = jQuery(e.target).closest("a");
jQuery(document).click(function(event) { var anchor = jQuery(event.target).closest("a");
jQuery(document).click(function(e) { var anchor = jQuery(e.target).closest("a"); if(anchor.length == 1) { if(hasActionUrl(anchor)) { evaluateAnchorAction(anchor); e.preventDefault() } } var button = jQuery(e.target).closest("button"); if(button.length == 1) { enableSubmitAction(button); ...
evaluateAnchorAction(anchor); e.preventDefault()
evaluateAnchorAction(anchor, event);
jQuery(document).click(function(e) { var anchor = jQuery(e.target).closest("a"); if(anchor.length == 1) { if(hasActionUrl(anchor)) { evaluateAnchorAction(anchor); e.preventDefault() } } var button = jQuery(e.target).closest("button"); if(button.length == 1) { enableSubmitAction(button); ...
var button = jQuery(e.target).closest("button");
var button = jQuery(event.target).closest("button");
jQuery(document).click(function(e) { var anchor = jQuery(e.target).closest("a"); if(anchor.length == 1) { if(hasActionUrl(anchor)) { evaluateAnchorAction(anchor); e.preventDefault() } } var button = jQuery(e.target).closest("button"); if(button.length == 1) { enableSubmitAction(button); ...
evaluateFormElementAction(button); e.preventDefault()
evaluateFormElementAction(button, event);
jQuery(document).click(function(e) { var anchor = jQuery(e.target).closest("a"); if(anchor.length == 1) { if(hasActionUrl(anchor)) { evaluateAnchorAction(anchor); e.preventDefault() } } var button = jQuery(e.target).closest("button"); if(button.length == 1) { enableSubmitAction(button); ...
csid: that.model.csid,
csid: that.applier.model.csid,
return function () { var data = that.search.resultsPager.options.dataModel; var newIndex = 0; var newRelations = []; var source = { csid: that.model.csid, recordtype: that.options.currentRecordType }; // TODO: Candid...
console.log('browser is loaded');
debug.debug('browser is loaded');
this.each(function() { // Create it as a modal window. var mediaIframe = $.fn.mediaBrowser.getIframe(options.src); mediaIframe.bind('load', function (e) { if (typeof this.contentWindow.Drupal.mediaBrowser != undefined) { this.contentWindow.Drupal.mediaBrowser.start(options); } ...
if ( self.menu && self.menu.active ) {
if ( self.menu.active ) {
.bind( "keydown.autocomplete", function( event ) { var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: self._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: self._move( "nextPage", event ); break; case keyCode.UP: self._move( "previous", event ...
if ( !self.menu || !self.menu.active ) {
if ( !self.menu.active ) {
.bind( "keydown.autocomplete", function( event ) { var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: self._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: self._move( "nextPage", event ); break; case keyCode.UP: self._move( "previous", event ...
return this.name;
return"Factory "+this.name;
Factory[PROTOTYPE].toString = function(){ return this.name; };
dc.fetch(cspace.util.isLocal() ? "records/list" : null);
userListEditor.options.updateList(userListEditor, userListEditor.refreshView);
return function () { domBinder.locate("unSearchButton").hide(); dc.fetch(cspace.util.isLocal() ? "records/list" : null); };
$.get(pluginRoot + "/" + id + ".json", null, function(data) {
$.get(pluginRoot + '/' + id + '.json', null, function(data) {
$.get(pluginRoot + "/" + id + ".json", null, function(data) { renderDetails(data); }, "json");
}, "json");
}, 'json');
$.get(pluginRoot + "/" + id + ".json", null, function(data) { renderDetails(data); }, "json");
.click(function( event ) {
.bind("click.menu", function( event ) {
.click(function( event ) { if (self.options.disabled) { return false; } if ( !$( event.target ).closest( ".ui-menu-item a" ).length ) { return; } // temporary event.preventDefault(); self.select( event ); });
ok( input.is(":hidden") );
ok( input.is(".ui-helper-hidden-accessible") );
test("checkbox", function() { var input = $("#check"); label = $("label[for=check]"); ok( input.is(":visible") ); ok( label.is(":not(.ui-button)") ); input.button(); ok( input.is(":hidden") ); ok( label.is(".ui-button") );});
myfaces._impl.core._Runtime.addOnLoad(document.body, function() {
this._RT.addOnLoad(document.body, function() {
myfaces._impl.core._Runtime.addOnLoad(document.body, function() { myfaces._impl._util._Dom.isManualScriptEval(); });
applyListAction(test, function(seg) { if(!seg.done) { EventPublisher.add(seg, "oncomplete", notifyDone); } else { if(allSegsDone(test)) { test.oncomplete(); } } });
testData["test " + reqId] = function(){return"Remote TestCase did not load. " + reqId;};
applyListAction(test, function(seg) { if(!seg.done) { EventPublisher.add(seg, "oncomplete", notifyDone); } else { if(allSegsDone(test)) { test.oncomplete(); } } });
same( $(".ui-menu").length, 1 );
same( $(".ui-menu:visible").length, 1 );
test("all events", function() { expect(11); var ac = $("#autocomplete").autocomplete({ delay: 0, source: data, search: function(event) { same(event.type, "autocompletesearch"); }, open: function(event) { same(event.type, "autocompleteopen"); }, focus: function(event, ui) { same(event.type, "autocompletefoc...
same( $(".ui-menu").length, 0 );
same( $(".ui-menu:visible").length, 0 );
test("all events", function() { expect(11); var ac = $("#autocomplete").autocomplete({ delay: 0, source: data, search: function(event) { same(event.type, "autocompletesearch"); }, open: function(event) { same(event.type, "autocompleteopen"); }, focus: function(event, ui) { same(event.type, "autocompletefoc...
return status.members[2].state == 3 || status.members[2].state == 2;
return status.members && (status.members[2].state == 3 || status.members[2].state == 2);
wait(function() { var status = admin_s2.runCommand({replSetGetStatus:1}); printjson(status); return status.members[2].state == 3 || status.members[2].state == 2; });
$(inputElement).click(function() {showDetails(id)});
_.find('li:eq(0)').removeClass('ui-helper-hidden').click(function() { changeDataEntryState(id, 'enable') });
$(inputElement).click(function() {showDetails(id)});
return typeof obj === "object" && Object.keys(obj).length === 0;
return isNativeObject(obj) && Object.keys(obj).length === 0;
} : typeof Object.keys === "function" ? function(obj) { return typeof obj === "object" && Object.keys(obj).length === 0; } : function(obj) {
$( "*", this ).add( this ).each(function() {
$( "*", this ).add( [ this ] ).each(function() {
return this.each(function() { if ( !keepData ) { if ( !selector || $.filter( selector, [ this ] ).length ) { $( "*", this ).add( this ).each(function() { $( this ).triggerHandler( "remove" ); }); } } return _remove.call( $(this), selector, keepData ); });
test("element types", function() { var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + ',acronym,code,samp,kbd,var,img,object,hr' + ',input,button,label,select,iframe').split(',');
test("title id", function() { expect(3);
test("element types", function() { var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + ',acronym,code,samp,kbd,var,img,object,hr' + ',input,button,label,select,iframe').split(','); $.each(typeNames, function(i) { var typeName = typeName...
$.each(typeNames, function(i) { var typeName = typeNames[i]; el = $(document.createElement(typeName)).appendTo('body'); (typeName == 'table' && el.append("<tr><td>content</td></tr>")); el.dialog(); ok(true, '$("&lt;' + typeName + '/&gt").dialog()'); el.dialog("destroy"); el.remove(); });
var titleId; $.ui.dialog.uuid = 0; el = $('<div></div>').dialog(); titleId = dlg().find('.ui-dialog-title').attr('id'); equals(titleId, 'ui-dialog-title-1', 'auto-numbered title id'); el.remove(); el = $('<div></div>').dialog(); titleId = dlg().find('.ui-dialog-title').attr('id'); equals(titleId, 'ui-dialog-title-2...
test("element types", function() { var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + ',acronym,code,samp,kbd,var,img,object,hr' + ',input,button,label,select,iframe').split(','); $.each(typeNames, function(i) { var typeName = typeName...
test('focus', function() { expect(3);
test('focus - original functionality', function() { expect(1);
test('focus', function() { expect(3); var el = $('#inputTabindex0'), // used to remove focus from the main element other = $('#inputTabindex10'); // test original functionality el.focus(function() { ok(true, 'event triggered'); }); el.focus(); other.focus(); // trigger event handler + callback stop(); el.focus(50...
var el = $('#inputTabindex0'), other = $('#inputTabindex10'); el.focus(function() { ok(true, 'event triggered'); }); el.focus(); other.focus(); stop(); el.focus(500, function() { ok(true, 'callback triggered'); start(); }); other.focus();
$('#inputTabindex0') .focus(function() { ok(true, 'event triggered'); }) .focus();
test('focus', function() { expect(3); var el = $('#inputTabindex0'), // used to remove focus from the main element other = $('#inputTabindex10'); // test original functionality el.focus(function() { ok(true, 'event triggered'); }); el.focus(); other.focus(); // trigger event handler + callback stop(); el.focus(50...
assert.soon(function() { res = slaves[1].getDB("admin").runCommand({replSetGetStatus: 1})
assert.soon(function () { try { res = slaves[1].getDB("admin").runCommand({ replSetGetStatus: 1 }) } catch (err) { }
assert.soon(function() { res = slaves[1].getDB("admin").runCommand({replSetGetStatus: 1}) return res.myState == 2; }, "Slave 1 state not ready.");
suppressKeyPress = true;
.bind( "keydown.autocomplete", function( event ) { if ( self.options.disabled ) { return; } var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: self._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: self._move( "nextPage", event ); break; ...
expect(7);
expect(6);
test("init", function() { expect(7); $("<div></div>").appendTo('body').dialog().remove(); ok(true, '.dialog() called on element'); $([]).dialog().remove(); ok(true, '.dialog() called on empty collection'); $('<div></div>').dialog().remove(); ok(true, '.dialog() called on disconnected DOMElement - never connected'); $('...
$('<div></div>').dialog().dialog("foo").remove(); ok(true, 'arbitrary method called after init');
test("init", function() { expect(7); $("<div></div>").appendTo('body').dialog().remove(); ok(true, '.dialog() called on element'); $([]).dialog().remove(); ok(true, '.dialog() called on empty collection'); $('<div></div>').dialog().remove(); ok(true, '.dialog() called on disconnected DOMElement - never connected'); $('...
csid: that.applier.model.csid,
csid: that.model.csid,
return function () { var data = that.search.resultsPager.options.dataModel; var newIndex = 0; var newRelations = []; var source = { csid: that.applier.model.csid, recordtype: that.options.currentRecordType }; for (va...
if (cspace.util.isLocal()) { that.updateRelations({items: newRelations}); } else { that.dataContext.addRelations({items: newRelations}); }
that.events.addRelations.fire({ items: newRelations });
return function () { var data = that.search.resultsPager.options.dataModel; var newIndex = 0; var newRelations = []; var source = { csid: that.applier.model.csid, recordtype: that.options.currentRecordType }; for (va...
case 16: case 17:
case keyCode.SHIFT: case keyCode.CONTROL:
.bind( "keydown.autocomplete", function( event ) { var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: self._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: self._move( "nextPage", event ); break; case keyCode.UP: self._move( "previous", event ...
$('#media-add-from-url-preview').html(data.preview);
if (data && data.preview) { $('#media-add-from-url-preview').html(data.preview); }
$('.media-add-from-url', context).once('mediaAddFromURLPreview', function () { $(this).bind('change', function () { $preset = $(this); if ($preset.val()) { $.getJSON(Drupal.settings.media.add_from_url_preview + '?url=' + $preset.val(), function (data) { // @todo: Check for err...
*/
$('.media-add-from-url', context).once('mediaAddFromURLPreview', function () { $(this).bind('change', function () { $preset = $(this); if ($preset.val()) { $.getJSON(Drupal.settings.media.add_from_url_preview + '?url=' + $preset.val(), function (data) { // @todo: Check for err...
console.log("Item: %o", item);
return function(obj) { if (loadParams.playlist) { this.load(loadParams.playlist); } else if (loadParams.levels) { var item = this.getPlaylistItem(0); console.log("Item: %o", item); if (!item) { item = { file: loadParams.levels[0].file }; } if (!item.image) { item.image = this....
item = { file: loadParams.levels[0].file };
item = { file: loadParams.levels[0].file, provider:'video' };
return function(obj) { if (loadParams.playlist) { this.load(loadParams.playlist); } else if (loadParams.levels) { var item = this.getPlaylistItem(0); console.log("Item: %o", item); if (!item) { item = { file: loadParams.levels[0].file }; } if (!item.image) { item.image = this....
expect(11);
expect(13);
test("open", function() { expect(11); el = $("<div></div>"); el.dialog({ open: function(ev, ui) { ok(true, 'autoOpen: true fires open callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogopen', 'event type in callback'); same(ui, {}, 'ui hash in callback'); } }); el.remove(); el = $(...
ok(el.data("dialog")._isOpen, "interal _isOpen flag is set");
test("open", function() { expect(11); el = $("<div></div>"); el.dialog({ open: function(ev, ui) { ok(true, 'autoOpen: true fires open callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogopen', 'event type in callback'); same(ui, {}, 'ui hash in callback'); } }); el.remove(); el = $(...
return function () { if (cspace.util.isLocal()) {
fluid.fetchResources(resources, function () { cspace.autocomplete.addConfirmDlg = $(resources.addConfirm.resourceText, that.container[0].ownerDocument);
return function () { if (cspace.util.isLocal()) { cspace.autocomplete.addConfirmDlg.hide(); return; } $.ajax({ url: vocabUrl, dataType: "json", type: "GET", success: postNewTerm, ...
return; } $.ajax({ url: vocabUrl, dataType: "json", type: "GET", success: postNewTerm, error: function () { fluid.fail("error getting new term url"); }
cspace.autocomplete.addConfirmDlg.newDisplayName = ""; that.locate("clearButton", cspace.autocomplete.addConfirmDlg).click(clearNewTerm); that.locate("addButton", cspace.autocomplete.addConfirmDlg).click(addNewTerm);
return function () { if (cspace.util.isLocal()) { cspace.autocomplete.addConfirmDlg.hide(); return; } $.ajax({ url: vocabUrl, dataType: "json", type: "GET", success: postNewTerm, ...
};
return function () { if (cspace.util.isLocal()) { cspace.autocomplete.addConfirmDlg.hide(); return; } $.ajax({ url: vocabUrl, dataType: "json", type: "GET", success: postNewTerm, ...
.bind('click.colorswatch', function() { self.show();
.mouseover(function(event) { $(event.target).closest(".nmk-colorswatch-color").addClass("nmk-colorswatch-hover");
.bind('click.colorswatch', function() { self.show(); })
window.location.reload();
parent.window.location.reload();
$launcherLink.bind('click', function () { // This option format needs *serious* work. // Not even bothering documenting it because it needs to be thrown. // See media.browser.js and media.browser.inc - media_browser() // For how it gets passed. var options = { disabledPlugins: ['libr...
aWindow.addEventListener('unload', function() { aWindow.removeEventListener('unload', arguments.callee, false); Pref.removeObserver(kPREF_ROOT, observer, false); }, false);
aWindow.setTimeout(function() { aWindow.document.documentElement.setAttribute(kOVERLAY_READY_ATTRIBUTE, true); var gBrowser = aWindow.document.getElementById('content'); if (gBrowser && gBrowser.localName == 'tabbrowser') { gBrowser.mPanelContainer.addEventListener('PreviewBrowserTheme', observer, false, true); gBrow...
aWindow.addEventListener('unload', function() { aWindow.removeEventListener('unload', arguments.callee, false); Pref.removeObserver(kPREF_ROOT, observer, false); }, false);
target: row.value,
target: row.value.target, date: row.value.date,
provides("html", function() { var row; while(row = getRow()) { send(Mustache.to_html(templates.index.row, { target: row.value, id: row.key })); } send(templates.index.tail); });
return function(url) { return fluid.stringTemplate(url, that.options.vars); };
$("select").live("keydown", function (event) { if (event.keyCode === $.ui.keyCode.BACKSPACE) { return false; } });
return function(url) { return fluid.stringTemplate(url, that.options.vars); };
}, false)
}, false);
getBrowser().mTabContainer.addEventListener("dblclick", function(event) { var node = event.originalTarget; while (node.localName != "tabbrowser"){ if (node.localName == "tab"){ gBrowser.removeCurrentTab(); return; } node = node.parentNode; } }, false)
jqUnit.assertEquals("Loainin tab must be excluded, total number of tabs is", 7, tabs.tabsList.locate("tab:").length);
jqUnit.assertEquals("Loainin tab must be excluded, total number of tabs is", 8, tabs.tabsList.locate("tab:").length);
tabsTest.test("Initialization with restricted Loan In", function () { var tabs = setupTabs(); jqUnit.assertEquals("Loainin tab must be excluded, total number of tabs is", 7, tabs.tabsList.locate("tab:").length); jqUnit.assertEquals("Loainin tab must be excluded", 0, tabs.tabsList.locate("tabLin...
var options = $.extend({}, $.fn.controlbar.defaults, ops); $.extend(options, player.getConfig());
var options = $.extend({}, $.fn.jwplayerControlbar.defaults, ops);
return this.each(function() { var id = $(this)[0].id; var div = $('#' + id).parents()[0].id; var player = document.getElementById(id); var options = $.extend({}, $.fn.controlbar.defaults, ops); $.extend(options, player.getConfig()); // Add positioning options and change the player css, so we can full-brow...
$.fn.controlbar.bars[id] = {
$.fn.jwplayerControlbar.bars[id] = {
return this.each(function() { var id = $(this)[0].id; var div = $('#' + id).parents()[0].id; var player = document.getElementById(id); var options = $.extend({}, $.fn.controlbar.defaults, ops); $.extend(options, player.getConfig()); // Add positioning options and change the player css, so we can full-brow...
loadSkin($.fn.controlbar.bars[id]);
loadSkin($.fn.jwplayerControlbar.bars[id]);
return this.each(function() { var id = $(this)[0].id; var div = $('#' + id).parents()[0].id; var player = document.getElementById(id); var options = $.extend({}, $.fn.controlbar.defaults, ops); $.extend(options, player.getConfig()); // Add positioning options and change the player css, so we can full-brow...
case keyCode.LEFT: case keyCode.RIGHT:
.bind( "keydown.autocomplete", function( event ) { var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: self._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: self._move( "nextPage", event ); break; case keyCode.UP: self._move( "previous", event ...
$('.edit-description-link', this).bind('click', function() { $wrapper.slideDown(); $this.addClass('media-widget-open'); $this.removeClass('media-widget-closed'); });
$('.jCycle-container').once('jcycleActivated', function () { $(this).cycle({ fx: 'fade', timeout: 6000, delay: -2000 } ); });
$('.edit-description-link', this).bind('click', function() { $wrapper.slideDown(); $this.addClass('media-widget-open'); $this.removeClass('media-widget-closed'); });
fullscreenHandler(player);
resizeHandler({ id: player.id, fullscreen: player.fullscreen(), width: player.width(), height: player.height() });
$('#' + nam).mouseup(function(evt) { evt.stopPropagation(); player.fullscreen(!player.fullscreen()); fullscreenHandler(player); });
if (!item) { item = { file: loadParams.levels[0].file }; }
return function(obj) { if (loadParams.playlist) { this.load(loadParams.playlist); } else if (loadParams.levels) { var item = this.getPlaylistItem(0); item.levels = loadParams.levels; this.load(item); } };
self.selectedItem = null;
.bind( "keydown.autocomplete", function( event ) { var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: self._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: self._move( "nextPage", event ); break; case keyCode.UP: self._move( "previous", event ...
target: recordType + ".html?csid=${*.number}",
target: recordType + ".html?csid=${*.csid}",
return fluid.transform(columnList, function (object, index) { var key = "col:"; var comp; if (object === "number") { key = "number"; comp = { target: recordType + ".html?csid=${*.number}", linktext: fluid.VALUE ...
var el = $(this), props = ['position','top','left'];
var el = $(this), props = ['position','top','bottom','left','right'];
return this.queue(function() { // Create element var el = $(this), props = ['position','top','left']; // Set options var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode var direction = o.options.direction || 'vertical'; // Default direction // Adjust $.effects.save(el, props); el.show(); // ...
$(this).trigger("JWPLAYER_READY", { id: id });
return this.each(function() { $(this).css("display", "none"); $(this).jwplayerModel(options); $(this).jwplayerView(); $.fn.jwplayerModel.setActiveMediaProvider($(this)); });
expect(14); el = $("#spin").spinner({ disabled: false }); var val = el.val();
var el = $("#spin").spinner({ disabled: false }), val = el.val(), wrapper = $("#spin").spinner("widget");
test("disable", function() { expect(14); el = $("#spin").spinner({ disabled: false }); var val = el.val(); ok(!wrapper().hasClass(".ui-spinner-disabled"), "before: wrapper does not have ui-spinner-disabled class"); ok(!box().is(':disabled'), "before: input does not have disabled attribute"); el.spinner("disable"); ok(...
ok(!wrapper().hasClass(".ui-spinner-disabled"), "before: wrapper does not have ui-spinner-disabled class"); ok(!box().is(':disabled'), "before: input does not have disabled attribute");
ok(!wrapper.hasClass("ui-spinner-disabled"), "before: wrapper does not have ui-spinner-disabled class"); ok(!el.is(':disabled'), "before: input does not have disabled attribute");
test("disable", function() { expect(14); el = $("#spin").spinner({ disabled: false }); var val = el.val(); ok(!wrapper().hasClass(".ui-spinner-disabled"), "before: wrapper does not have ui-spinner-disabled class"); ok(!box().is(':disabled'), "before: input does not have disabled attribute"); el.spinner("disable"); ok(...