rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
(function($) { $.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, navigation: fal... | $.each($.ui.dialog.overlay.instances, function() { $overlays = $overlays.add(this); }); | (function($) {$.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, na... |
.blur(function() { $(this).removeClass('ui-state-focus'); }); | (function($) { $.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, navigation: fal... | .blur(function() { $(this).removeClass('ui-state-focus'); }); |
self.uiDialog.hide(self.options.hide, function() { self._trigger('close', event); | $('.ui-dialog').each(function() { if (this !== self.uiDialog[0]) { maxZ = Math.max(maxZ, $(this).css('z-index')); } | self.uiDialog.hide(self.options.hide, function() { self._trigger('close', event); }); |
self.uiDialog.hide(self.options.hide, function() { self._trigger('close', event); }); | $(group).each(function(i) { this.style.zIndex = min + i; }); | self.uiDialog.hide(self.options.hide, function() { self._trigger('close', event); }); |
$.each($.ui.dialog.overlay.instances, function() { $overlays = $overlays.add(this); }); | .click(function() { fn.apply(self.element[0], arguments); }) | $.each($.ui.dialog.overlay.instances, function() { $overlays = $overlays.add(this); }); |
.bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); }) | (function($) { $.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, navigation: fal... | .bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); }) |
this.handles.each(function(i) { $(this).data("index.ui-slider-handle", i); }); | .bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); }) | this.handles.each(function(i) { $(this).data("index.ui-slider-handle", i); }); |
$('.ui-dialog').each(function() { if (this !== self.uiDialog[0]) { maxZ = Math.max(maxZ, $(this).css('z-index')); | uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode !== $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target === last[0] && !event.shiftKey) { first.focus(1); return false; } else if (event.targe... | $('.ui-dialog').each(function() { if (this !== self.uiDialog[0]) { maxZ = Math.max(maxZ, $(this).css('z-index')); } }); |
$('.ui-dialog').each(function() { | (function($) { var uiDialogClasses = 'ui-dialog ' + 'ui-widget ' + 'ui-widget-content ' + 'ui-corner-all '; $.widget("ui.dialog", { options: { autoOpen: true, buttons: {}, closeOnEscape: true, closeText: 'close', dialogClass: '', draggable: true, hide: null, height: 'auto', maxHeight: false, maxWidth: false, minHeigh... | $('.ui-dialog').each(function() { if (this !== self.uiDialog[0]) { maxZ = Math.max(maxZ, $(this).css('z-index')); } }); |
$.ui.dialog.maxZ = maxZ; } return self; }, isOpen: function() { return this._isOpen; }, moveToTop: function(force, event) { var self = this, options = self.options, saveScroll; if ((options.modal && !force) || (!options.stack && !options.modal)) { return self._trigger('focus', event); } if (options.zIndex > $.ui... | $('.ui-dialog').each(function() { if (this !== self.uiDialog[0]) { maxZ = Math.max(maxZ, $(this).css('z-index')); } }); | |
(function($) { $.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, navigation: fal... | $.each(['left', 'top'], function(i, offsetPosition) { if (+myAt[i] === myAt[i]) { offset[i] = myAt[i]; myAt[i] = offsetPosition; | (function($) {$.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, na... |
}, bounceslide: function(options) { this.slide(options, { easing: options.down ? "easeOutBounce" : "swing", duration: options.down ? 1000 : 200 }); } } }); })(jQuery); | (function($) {$.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, na... | |
.bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }) | .bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); }) | .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }) |
this.handles.keydown(function(event) { var ret = true; var index = $(this).data("index.ui-slider-handle"); if (self.options.disabled) return; switch (event.keyCode) { case $.ui.keyCode.HOME: case $.ui.keyCode.END: case $.ui.keyCode.PAGE_UP: case $.ui.keyCode.PAGE_DOWN: case $.ui.keyCode.UP: case $.ui.keyCode.RIGHT:... | .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }) | this.handles.keydown(function(event) { var ret = true; var index = $(this).data("index.ui-slider-handle"); if (self.options.disabled) return; switch (event.keyCode) { case $.ui.keyCode.HOME: case $.ui.keyCode.END: case $.ui.keyCode.PAGE_UP: case $.ui.keyCode.PAGE_DOWN: case $.ui.keyCode.UP: ... |
uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode !== $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target === last[0] && !event.shiftKey) { first.focus(1); return false; } else if (event.targe... | $.each(buttons, function() { return !(hasButtons = true); | uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode !== $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target === last[0] && !event.shiftKey) { first.focus(1); r... |
uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode !== $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target === last[0] && !event.shiftKey) { first.focus(1); return false; } else if (event.targe... | .attr('tabIndex', -1).css('outline', 0).keydown(function(event) { if (options.closeOnEscape && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE) { self.close(event); event.preventDefault(); } }) | uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode !== $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target === last[0] && !event.shiftKey) { first.focus(1); r... |
.bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); }) | .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }) | .bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); }) |
}).keyup(function(event) { var index = $(this).data("index.ui-slider-handle"); if (self._keySliding) { self._keySliding = false; self._stop(event, index); self._change(event, index); $(this).removeClass("ui-state-active"); } }); | .bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); }) | }).keyup(function(event) { var index = $(this).data("index.ui-slider-handle"); if (self._keySliding) { self._keySliding = false; self._stop(event, index); self._change(event, index); $(this).removeClass("ui-state-active"); } }); |
$.each(buttons, function() { return !(hasButtons = true); | $.each(buttons, function(name, fn) { var button = $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) .appendTo(uiDialogButtonPane); if ($.fn.button) { button.button(); } | $.each(buttons, function() { return !(hasButtons = true); }); |
$.each(buttons, function() { return !(hasButtons = true); }); | .mousedown(function(event) { self.moveToTop(false, event); }), | $.each(buttons, function() { return !(hasButtons = true); }); |
.bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }) | setTimeout(function() { if ($.ui.dialog.overlay.instances.length) { $(document).bind($.ui.dialog.overlay.events, function(event) { return ($(event.target).zIndex() >= $.ui.dialog.overlay.maxZ); }); } }, 1); | .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }) |
.bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); }); | .bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); }) | .bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); }); |
this.handles.each(function(i) { var thisDistance = Math.abs(normValue - self.values(i)); if (distance > thisDistance) { distance = thisDistance; closestHandle = $(this); index = i; } }); | .bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); }); | this.handles.each(function(i) { var thisDistance = Math.abs(normValue - self.values(i)); if (distance > thisDistance) { distance = thisDistance; closestHandle = $(this); index = i; } }); |
$.each(buttons, function(name, fn) { var button = $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) .appendTo(uiDialogButtonPane); if ($.fn.button) { button.button(); } }); | .click(function() { fn.apply(self.element[0], arguments); }) | $.each(buttons, function(name, fn) { var button = $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) .appendTo(uiDialogButtonPane); if ($.fn.button) { button.button(); } }); |
$.each(buttons, function(name, fn) { var button = $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) .appendTo(uiDialogButtonPane); if ($.fn.button) { button.button(); } }); | function() { uiDialogTitlebarClose.addClass('ui-state-hover'); }, | $.each(buttons, function(name, fn) { var button = $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) .appendTo(uiDialogButtonPane); if ($.fn.button) { button.button(); } }); |
.bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); }) | $(document).bind($.ui.dialog.overlay.events, function(event) { return ($(event.target).zIndex() >= $.ui.dialog.overlay.maxZ); }); | .bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); }) |
.bind('keydown', function(event) { return self._keydown(event); }) | .bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); }); | .bind('keydown', function(event) { return self._keydown(event); }) |
this.handles.each(function(i, j) { var valPercent = (self.values(i) - self._valueMin()) / (self._valueMax() - self._valueMin()) * 100; var _set = {}; _set[self.orientation == 'horizontal' ? 'left' : 'bottom'] = valPercent + '%'; $(this).stop(1,1)[animate ? 'animate' : 'css'](_set, o.animate); if (self.options.range ===... | .bind('keydown', function(event) { return self._keydown(event); }) | this.handles.each(function(i, j) { var valPercent = (self.values(i) - self._valueMin()) / (self._valueMax() - self._valueMin()) * 100; var _set = {}; _set[self.orientation == 'horizontal' ? 'left' : 'bottom'] = valPercent + '%'; $(this).stop(1,1)[animate ? 'animate' : 'css'](_set, o.animate); if (self.op... |
.click(function() { fn.apply(self.element[0], arguments); }) | function() { uiDialogTitlebarClose.removeClass('ui-state-hover'); } | .click(function() { fn.apply(self.element[0], arguments); }) |
.bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); }); | $(document).bind('keydown.dialog-overlay', function(event) { if (dialog.options.closeOnEscape && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE) { dialog.close(event); event.preventDefault(); } }); | .bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); }); |
this.headers.bind((o.event) + ".accordion", function(event) { self._clickHandler.call(self, event, this); event.preventDefault(); }); | .bind('keydown', function(event) { return self._keydown(event); }) | this.headers.bind((o.event) + ".accordion", function(event) { self._clickHandler.call(self, event, this); event.preventDefault(); }); |
$.each(['left', 'top'], function(i, offsetPosition) { if (+myAt[i] === myAt[i]) { offset[i] = myAt[i]; myAt[i] = offsetPosition; } }); | .focus(function() { uiDialogTitlebarClose.addClass('ui-state-focus'); }) | $.each(['left', 'top'], function(i, offsetPosition) { if (+myAt[i] === myAt[i]) { offset[i] = myAt[i]; myAt[i] = offsetPosition; } }); |
.bind('keydown', function(event) { return self._keydown(event); }) | $.each(this.instances, function() { maxZ = Math.max(maxZ, this.css('z-index')); }); | .bind('keydown', function(event) { return self._keydown(event); }) |
this.headers.each(function() { maxHeight -= $(this).outerHeight(true); | this.headers.bind((o.event) + ".accordion", function(event) { self._clickHandler.call(self, event, this); event.preventDefault(); | this.headers.each(function() { maxHeight -= $(this).outerHeight(true); }); |
this.headers.bind((o.event) + ".accordion", function(event) { self._clickHandler.call(self, event, this); event.preventDefault(); }); | $.each($.ui.dialog.overlay.instances, function() { $overlays = $overlays.add(this); }); | this.headers.bind((o.event) + ".accordion", function(event) { self._clickHandler.call(self, event, this); event.preventDefault(); }); |
this.headers.next().each(function() { $(this).height(Math.max(0, maxHeight - $(this).innerHeight() + $(this).height())); }).css('overflow', 'auto'); | this.headers.each(function() { maxHeight -= $(this).outerHeight(true); }); | this.headers.next().each(function() { $(this).height(Math.max(0, maxHeight - $(this).innerHeight() + $(this).height())); }).css('overflow', 'auto'); |
setTimeout(function() { if ($.ui.dialog.overlay.instances.length) { $(document).bind($.ui.dialog.overlay.events, function(event) { | $(document).bind($.ui.dialog.overlay.events, function(event) { | setTimeout(function() { // handle $(el).dialog().dialog('close') (see #4065) if ($.ui.dialog.overlay.instances.length) { $(document).bind($.ui.dialog.overlay.events, function(event) { // stop events if the z-index of the target is < the z-index of the overlay return ($(event.target).zIndex() >= $... |
} }, 1); | setTimeout(function() { // handle $(el).dialog().dialog('close') (see #4065) if ($.ui.dialog.overlay.instances.length) { $(document).bind($.ui.dialog.overlay.events, function(event) { // stop events if the z-index of the target is < the z-index of the overlay return ($(event.target).zIndex() >= $... | |
;APE.EventPublisher=EventPublisher;APE.createMixin(EventPublisher,{get:get,add:add,remove:remove,fire:fire,cleanUp:cleanUp});function EventPublisher(src,type){this.src=src;this._callStack=[];this.type=type}EventPublisher.prototype={add:function(fp,thisArg){this._callStack.push([fp,thisArg||this.src]);return this},addBe... | ;APE.EventPublisher=EventPublisher;APE.createMixin(EventPublisher,{get:get,add:add,remove:remove,fire:fire,cleanUp:cleanUp});function EventPublisher(src,type){this.src=src;this._callStack=[];this.type=type}EventPublisher.prototype={add:function(fp,thisArg){this._callStack.push([fp,thisArg||this.src]);return this},addBe... | (function(){if(typeof APE!=="undefined"){throw Error("APE is already defined.")}var I="instances",J="prototype",B=Object[J],E=B.hasOwnProperty,A=["toString","valueOf"];function O(){}function M(P,F){return N.call(P,F)}function H(S){var T=S.split("."),Q=self,R=0,F=T.length,P;for(;R<F;R++){P=T[R];if(!G(Q,P)){Q[P]=new L(Q,... |
_init: function() { | _create: function() { | test('jQuery usage', function() { expect(10); var shouldInit = false; $.widget('ui.testWidget', { getterSetterVal: 5, _init: function() { ok(shouldInit, 'init called on instantiation'); }, methodWithParams: function(param1, param2) { ok(true, 'method called via .pluginName(methodName)'); equals(param1, 'val... |
passwordValidatorTest.test("Custom lengths", function () { | passwordValidatorTest.test("Default lengths", function () { | passwordValidatorTest.test("Custom lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("123").c... |
var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); | var pv = cspace.passwordValidator("#main"); pv.bindEvents(); | passwordValidatorTest.test("Custom lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("123").c... |
pw.val("123").change(); | pw.val(samplePasswords.invalidTooSmall).change(); | passwordValidatorTest.test("Custom lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("123").c... |
pw.val("1234").change(); | pw.val(samplePasswords.validMinLength).change(); | passwordValidatorTest.test("Custom lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("123").c... |
pw.val("1234567").change(); | pw.val(samplePasswords.validMaxLength).change(); | passwordValidatorTest.test("Custom lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("123").c... |
pw.val("12345678").change(); | pw.val(samplePasswords.invalidTooLong).change(); | passwordValidatorTest.test("Custom lengths", function () { var pw = jQuery("#password-field"); var msg = jQuery("#message"); var pv = cspace.passwordValidator("#main", {minLength: 4, maxLength: 7}); jqUnit.notVisible("To begin, message should not be visible", msg); pw.val("123").c... |
$("#inventors").show(); | $("#answer3_body_no").click(function(){ $(".bt_add").show(); $("#more_inventor").attr("checked", true); }); | |
return str.replace(/[\0\t\n\v\f\r\xa0'"!]/g, function(c) { return '!' + c.charCodeAt(0) + '!'; }); | feedFetcher.pushLayoutToServer(1,layout,toolbarmanager.isGuestMode());_self.processServerFeed();},5);};procResponse=function(raw){_self.raw=raw;if(_self.raw!==""){_self.clear();processJSONBHFeed();if(!toolbarmanager.isGuestMode()){_self.domBuilder.bm2Feed="http: feedFetcher.asyncLoadServerFeed(toolbarmanager.isGuestMod... | return str.replace(/[\0\t\n\v\f\r\xa0'"!]/g, function(c) { return '!' + c.charCodeAt(0) + '!'; }); |
Drupal.media.formatForm.launch(mediaFile, function(formattedMedia) { Drupal.wysiwyg.plugins.media.insertMediaFile(mediaFile, formattedMedia, Drupal.wysiwyg.instances[instanceId]); | Drupal.dialog.bind('mediaSelected', function(event, formattedMedia) { if (formattedMedia) { debug.debug(formattedMedia); Drupal.wysiwyg.plugins.media.insertMediaFile(mediaFile, formattedMedia.type, formattedMedia.html, Drupal.wysiwyg.instances[instanceId]); } | Drupal.media.formatForm.launch(mediaFile, function(formattedMedia) { Drupal.wysiwyg.plugins.media.insertMediaFile(mediaFile, formattedMedia, Drupal.wysiwyg.instances[instanceId]); }); |
unlockActions(); | upload_target.one('load', function(e) { unlockActions(); evaluateAction('?_state='+jQuery(form).find('input[name=_state]').val()); }); | |
console.log('browser is loaded'); | debug.debug('browser is loaded'); | mediaIframe.bind('load', function (e) { if (typeof this.contentWindow.Drupal.mediaBrowser != undefined) { this.contentWindow.Drupal.mediaBrowser.start(options); } console.log('browser is loaded'); }); |
expect( 10 ); | expect( 11 ); | test( "jQuery usage", function() { expect( 10 ); var shouldInit = false; $.widget( "ui.testWidget", { getterSetterVal: 5, _create: function() { ok( shouldInit, "init called on instantiation" ); }, methodWithParams: function( param1, param2 ) { ok( true, "method called via .pluginName(methodName)" ); equals( p... |
var shouldInit = false; | var shouldCreate = false; | test( "jQuery usage", function() { expect( 10 ); var shouldInit = false; $.widget( "ui.testWidget", { getterSetterVal: 5, _create: function() { ok( shouldInit, "init called on instantiation" ); }, methodWithParams: function( param1, param2 ) { ok( true, "method called via .pluginName(methodName)" ); equals( p... |
ok( shouldInit, "init called on instantiation" ); | ok( shouldCreate, "create called on instantiation" ); | test( "jQuery usage", function() { expect( 10 ); var shouldInit = false; $.widget( "ui.testWidget", { getterSetterVal: 5, _create: function() { ok( shouldInit, "init called on instantiation" ); }, methodWithParams: function( param1, param2 ) { ok( true, "method called via .pluginName(methodName)" ); equals( p... |
shouldInit = true; var elem = $( "<div></div>" ).testWidget(); shouldInit = false; | shouldCreate = true; var elem = $( "<div></div>" ) .bind( "testwidgetcreate", function() { ok( shouldCreate, "create event triggered on instantiation" ); }) .testWidget(); shouldCreate = false; | test( "jQuery usage", function() { expect( 10 ); var shouldInit = false; $.widget( "ui.testWidget", { getterSetterVal: 5, _create: function() { ok( shouldInit, "init called on instantiation" ); }, methodWithParams: function( param1, param2 ) { ok( true, "method called via .pluginName(methodName)" ); equals( p... |
var query = domBinder.locate("searchField").val(); var model = userListEditor.listApplier.model; | var query = cspace.util.isLocal() ? "" : domBinder.locate("searchField").val(); var model = listEditor.model; | return function () { var query = domBinder.locate("searchField").val(); var model = userListEditor.listApplier.model; // TODO: Use the DC for this var url = (cspace.util.isLocal() ? "data/users/search/list.json" : "../../chain/users/search?query=" + query); ... |
var url = (cspace.util.isLocal() ? "data/users/search/list.json" : "../../chain/users/search?query=" + query); | var url = queryURL + query; | return function () { var query = domBinder.locate("searchField").val(); var model = userListEditor.listApplier.model; // TODO: Use the DC for this var url = (cspace.util.isLocal() ? "data/users/search/list.json" : "../../chain/users/search?query=" + query); ... |
fluid.model.copyModel(model, data.results); userListEditor.list.updateModel(model); userListEditor.showNewListRow(false); | fluid.model.copyModel(model.list, data.results); listEditor.refreshView(); | return function () { var query = domBinder.locate("searchField").val(); var model = userListEditor.listApplier.model; // TODO: Use the DC for this var url = (cspace.util.isLocal() ? "data/users/search/list.json" : "../../chain/users/search?query=" + query); ... |
successEvent.fire(); | return function () { var query = domBinder.locate("searchField").val(); var model = userListEditor.listApplier.model; // TODO: Use the DC for this var url = (cspace.util.isLocal() ? "data/users/search/list.json" : "../../chain/users/search?query=" + query); ... | |
$("#img" + id).each(function() { $("#pluginInlineDetails").remove(); $(this).attr("src", appRoot + "/res/imgs/arrow_right.png"); $(this).attr("title", "Details"); $(this).attr("alt", "Details"); $(this).unbind('click').click(function() { showDetails(id) }); | $('#img' + id).each(function() { $('#pluginInlineDetails' + id).remove(); $(this). removeClass('ui-icon-triangle-1-w'). removeClass('ui-icon-triangle-1-s'). addClass('ui-icon-triangle-1-e'). unbind('click').click(function() {showDetails(id)}); | $("#img" + id).each(function() { $("#pluginInlineDetails").remove(); $(this).attr("src", appRoot + "/res/imgs/arrow_right.png"); $(this).attr("title", "Details"); $(this).attr("alt", "Details"); $(this).unbind('click').click(function() { showDetails(id) }); }); |
ok( inputs.is(":hidden") ); | ok( inputs.is(".ui-helper-hidden-accessible") ); | test("radios", function() { var inputs = $("#radio0 input"); labels = $("#radio0 label"); ok( inputs.is(":visible") ); ok( labels.is(":not(.ui-button)") ); inputs.button(); ok( inputs.is(":hidden") ); ok( labels.is(".ui-button") );}); |
cspace.addDialogInst.events.onCreateNewRecord.removeListener("onCreateNewRecordListener"); | that.locate("addButton").click(function (e) { if (that.applier.model.csid) { that.locate("messageContainer", "body").hide(); cspace.addDialogInst.prepareDialog(that.recordType); cspace.addDialogInst.dlg.bind("dialogopen", function () { c... | |
showUserDetails(domBinder); | showUserDetails(domBinder, true); | return function(e){ fluid.model.copyModel(userDetails.model,{ fields: { userId: "", screenName: "", password: "", email: "", // TODO: This access into the UISpec is completely inappropriate... |
deferred.startTimer = setTimeout(function(){ deferred.start(); }, delay); | applyListAction(test, function(seg) { if(!seg.done) { EventPublisher.add(seg, "oncomplete", notifyDone); } else { if(allSegsDone(test)) { test.oncomplete(); } } }); | deferred.startTimer = setTimeout(function(){ deferred.start(); }, delay); |
same( $(".ui-menu").length, 1 ); | same( $(".ui-menu:visible").length, 1 ); | setTimeout(function() { same( $(".ui-menu").length, 1 ); ac.simulate("keydown", { keyCode: $.ui.keyCode.DOWN }); ac.simulate("keydown", { keyCode: $.ui.keyCode.ENTER }); start(); }, 50); |
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=true, sizingMethod=crop, src='" + ima... | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | 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=true, siz... |
search.search("intake", "foofer"); | search.model.recordType = "intake"; search.model.keywords = "foofer"; search.search(); | searchTests.test("Basic search URL with query", function () { expect(1); var search = cspace.search(".main-search-page"); var ajaxMock = new jqMock.Mock(jQuery, "ajax"); var expectedAjaxParams = { url: "../../chain/intake/search?query=foofer", dataType: "json", ... |
$.post(pluginRoot + "/" + id, {"action":action}, function(data) { renderData(data); }, "json"); | _.find('li:eq(1)').removeClass('ui-helper-hidden').click(function() { changeDataEntryState(id, 'disable') }); | $.post(pluginRoot + "/" + id, {"action":action}, function(data) { renderData(data); }, "json"); |
if(typeof obj === "object") { | if(isNativeObject(obj)) { | } : function(obj) { if(typeof obj === "object") { for(var p in obj) return true; } return false; })(obj); |
$( "*", this ).add( this ).each(function() { | $( "*", this ).add( [ this ] ).each(function() { | $( "*", this ).add( this ).each(function() { $( this ).triggerHandler( "remove" ); }); |
$.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, '$("<' + typeName + '/>").dialog()'); el.dialog("destroy"); el.remove(); }); | test("ARIA", function() { expect(4); el = $('<div></div>').dialog(); equals(dlg().attr('role'), 'dialog', 'dialog role'); var labelledBy = dlg().attr('aria-labelledby'); ok(labelledBy.length > 0, 'has aria-labelledby attribute'); equals(dlg().find('.ui-dialog-title').attr('id'), labelledBy, 'proper aria-labelledby a... | $.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, '$("<' + typeName + '/>").dialog()'); el.dialog("destroy"); el.remove(); }); |
el.focus(function() { ok(true, 'event triggered'); }); | .focus(function() { ok(true, 'event triggered'); }) | el.focus(function() { ok(true, 'event triggered'); }); |
'cursor': 'default', | return this.each(function() { var defaults = { 'margin': 0, 'padding': 0, 'background': 'none', 'border': 'none', 'bottom': 'auto', 'clear': 'none', 'cursor': 'default', 'float': 'none', 'font-family': '"Arial", "Helvetica", sans-serif', 'font-size': 'medium', 'font-style': 'normal'... | |
$('<div></div>').dialog().dialog("destroy").dialog("foo").remove(); ok(true, 'arbitrary method called after destroy'); | test("destroy", function() { $("<div></div>").appendTo('body').dialog().dialog("destroy").remove(); ok(true, '.dialog("destroy") called on element'); $([]).dialog().dialog("destroy").remove(); ok(true, '.dialog("destroy") called on empty collection'); $('<div></div>').dialog().dialog("destroy").remove(); ok(true, '.dia... | |
that.locate("addButton", addDialog).click(makeRelater(that)); | that.locate("addButton", addDialog).click(handleAddClick(that)); | fluid.fetchResources(resources, function () { var templates = fluid.parseTemplates(resources, ["addDialog"], {}); fluid.reRender(templates, addDialog, {}); var searchOpts = { resultsSelectable: true }; if (cspace.util.isLocal()) { ... |
that.events.afterRender.fire(); | fluid.fetchResources(resources, function () { var templates = fluid.parseTemplates(resources, ["addDialog"], {}); fluid.reRender(templates, addDialog, {}); var searchOpts = { resultsSelectable: true }; if (cspace.util.isLocal()) { ... | |
ok(el.data("dialog")._isOpen, "interal _isOpen flag is set"); | }).bind('dialogopen', function(ev, ui) { ok(true, 'dialog("open") fires open event'); equals(this, el[0], 'context of event'); same(ui, {}, 'ui hash in event'); }); | |
fluid.fetchResources(resources, function () { cspace.autocomplete.addConfirmDlg = $(resources.addConfirm.resourceText, that.container[0].ownerDocument); cspace.autocomplete.addConfirmDlg.hide(); cspace.autocomplete.addConfirmDlg.newDisplayName = ""; that.locate("clearButton", cspace.autocomplete.addConfirmDlg).click(... | return function(request, callback){ $.ajax({ url: that.options.queryUrl + "?q=" + request.term, dataType: "text", success: function(data){ var dataArray; if (data === "") { showConfirmation(request.term, that.container, that.dom, that.options.vocabUrl); } else { cspace.autocomplete.addConfirmDlg.hide(); var newdata = "... | fluid.fetchResources(resources, function () { cspace.autocomplete.addConfirmDlg = $(resources.addConfirm.resourceText, that.container[0].ownerDocument); cspace.autocomplete.addConfirmDlg.hide(); cspace.autocomplete.addConfirmDlg.newDisplayName = ""; ... |
}; | fluid.fetchResources(resources, function () { cspace.autocomplete.addConfirmDlg = $(resources.addConfirm.resourceText, that.container[0].ownerDocument); cspace.autocomplete.addConfirmDlg.hide(); cspace.autocomplete.addConfirmDlg.newDisplayName = ""; ... | |
.bind('change.colorswatch', function() { self.value(this.value); }); | .mouseout(function(event) { $(event.target).closest(".nmk-colorswatch-color").removeClass("nmk-colorswatch-hover"); }) | .bind('change.colorswatch', function() { self.value(this.value); }); |
window.location.reload(); | parent.window.location.reload(); | Drupal.media.popups.mediaBrowser(function (mediaFiles) { // When the media browser succeeds, we refresh // @TODO: Should jump to the new media file and perhaps highlight it. window.location.reload(); return false; }, options); |
!kOSX_TCOLORS_ATTR.some(function(aAttr) { return root.getAttribute(aAttr); }) | aWindow.addEventListener('unload', function() { aWindow.removeEventListener('unload', arguments.callee, false); Pref.removeObserver(kPREF_ROOT, observer, false); Pref.removeObserver(kPREF_LIGHTWEIGHT_THEME_ENABLED, observer, false); var gBrowser = aWindow.document.getElementById('content'); if (gBrowser && gBrowser.l... | !kOSX_TCOLORS_ATTR.some(function(aAttr) { return root.getAttribute(aAttr); }) |
container.load(selectorToFetch, function () { that.fetchedTemplates[selectorToFetch] = $(this).clone(); start(); }); | loadSync(container, selectorToFetch, function () { that.fetchedTemplates[selectorToFetch] = $(container).clone(); }); | container.load(selectorToFetch, function () { that.fetchedTemplates[selectorToFetch] = $(this).clone(); start(); }); |
_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_LOADED); _setState(jwplayer.api.events.state.BUFFERING); | setTimeout(function() { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_LOADED); _setState(jwplayer.api.events.state.BUFFERING); _positionHandler(); }, 25); | |
fluid.withEnvironment({resourceSpecCollector: resourceSpecs}, function () { that.options.components = fluid.expander.expandLight(that.options.components, {noValue: true}); | that.locate("header").click(function () { var source = $(this); source.next(that.options.selectors.togglable).toggle(); source.toggleClass(that.options.styles.expanded); source.toggleClass(that.options.styles.collapsed); return false; | fluid.withEnvironment({resourceSpecCollector: resourceSpecs}, function () { that.options.components = fluid.expander.expandLight(that.options.components, {noValue: true}); }); |
return function (csid) { return csid === that.options.csid; | return function (url) { return fluid.stringTemplate(url, that.options.vars); | return function (csid) { return csid === that.options.csid; }; |
printjson(status); | occasionally(function() { printjson(status); }); | wait(function() { var status = admin_s2.runCommand({replSetGetStatus:1}); printjson(status); return status.members[2].state == 2; }); |
if (args !== undefined) { | if (!$.fn.jwplayerUtils.isNull(args)) { | $('#' + nam).mouseup(function(evt) { evt.stopPropagation(); if (args !== undefined) { player[handler](args); } else { player[handler](); } }); |
}) | }); | test("search", function() { var ac = $("#autocomplete").autocomplete({ source: data, minLength: 0 }); ac.autocomplete("search"); same( $(".ui-menu .ui-menu-item").length, data.length, "all items for a blank search" ); ac.val("has"); ac.autocomplete("search") same( $(".ui-menu .ui-menu-item").text(), "haskell", "only... |
position = $.extend( {}, basePosition ); | marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0, marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0, collisionWidth = elemWidth + marginLeft + parseInt( $.curCSS( this, "marginRight", true ) ) || 0, collisionHeight = elemHeight + marginTop + parseInt( $.curCSS( this, "marginBottom", tru... | return this.each(function() { var elem = $( this ), elemWidth = elem.outerWidth(), elemHeight = elem.outerHeight(), position = $.extend( {}, basePosition ); if ( options.my[0] === "right" ) { position.left -= elemWidth; } else if ( options.my[0] === center ) { position.left -= elemWidth / 2; } if ( opti... |
collisionPosition: collisionPosition, collisionWidth: collisionWidth, collisionHeight: collisionHeight, | return this.each(function() { var elem = $( this ), elemWidth = elem.outerWidth(), elemHeight = elem.outerHeight(), position = $.extend( {}, basePosition ); if ( options.my[0] === "right" ) { position.left -= elemWidth; } else if ( options.my[0] === center ) { position.left -= elemWidth / 2; } if ( opti... | |
self.selectedItem = null; | self.searching = setTimeout(function() { // only search if the value has changed if ( self.term != self.element.val() ) { self.search( null, event ); } }, self.options.delay ); | |
ok(btn.parent().hasClass('ui-dialog-buttonpane'), "buttons in container"); | ok(btn.parent().hasClass('ui-dialog-buttonset'), "buttons in container"); | test("buttons", function() { expect(17); var buttons = { "Ok": function(ev, ui) { ok(true, "button click fires callback"); equals(this, el[0], "context of callback"); equals(ev.target, btn[0], "event target"); }, "Cancel": function(ev, ui) { ok(true, "button click fires callback"); equals(this, el[0], "con... |
test('destroy', function() { expect(6); el = $('#tabs1').tabs({ collapsible: true }); $('li:eq(2)', el).simulate('mouseover').find('a').focus(); el.tabs('destroy'); ok( el.is(':not(.ui-tabs, .ui-widget, .ui-widget-content, .ui-corner-all, .ui-tabs-collapsible)'), 'remove classes from container'); ok( $('ul', el).is('... | test('init with hash', function() { expect(5); location.hash = '#fragment-2'; el = $('#tabs1').tabs(); equals(el.tabs('option', 'selected'), 1, 'second tab should be selected'); ok(!$('#tabs1 ul li:eq(0)').is('.ui-tabs-selected.ui-state-active'), 'first tab should not be selected nor active'); ok($('#tabs1 div:eq... | test('destroy', function() { expect(6); el = $('#tabs1').tabs({ collapsible: true }); $('li:eq(2)', el).simulate('mouseover').find('a').focus(); el.tabs('destroy'); ok( el.is(':not(.ui-tabs, .ui-widget, .ui-widget-content, .ui-corner-all, .ui-tabs-collapsible)'), 'remove classes from container'); ok( $('ul', el).is(':n... |
searchToRelateDialog: { | relationManager: { | loanInTests.test("Creation", function () { var opts = { pageBuilderOpts: { uispecUrl: "../../main/webapp/html/uispecs/loanin/uispec.json", listeners: { pageReady: function () { jqUnit.assertValue("loan in should have a record ... |
templates: { dialog: "../../main/webapp/html/searchToRelate.html" | searchToRelateDialog: { options: { templates: { dialog: "../../main/webapp/html/searchToRelate.html" } } | loanInTests.test("Creation", function () { var opts = { pageBuilderOpts: { uispecUrl: "../../main/webapp/html/uispecs/loanin/uispec.json", listeners: { pageReady: function () { jqUnit.assertValue("loan in should have a record ... |
ifStatusOK = $('#ifStatusOK'); | $(document).ready( function() { repoTable = $('#repoTable tbody'); repoTableTemplate = repoTable.find('tr').clone(); addRepoUri = $('#addRepoUri'); resTable = $('#resTable tbody').empty(); searchField = $('#searchField'); $('#addRepoBtn').click(function() { doRepoAction('add', addRepoUri.val()); }); $('#searchBtn').cl... | |
var beforeHtml = $("#list1").parent().html(); | var beforeHtml = $("#list1").find("div").css("font-style", "normal").end().parent().html(); | test("destroy", function() { var beforeHtml = $("#list1").parent().html(); var afterHtml = $("#list1").accordion().accordion("destroy").parent().html(); equal( afterHtml, beforeHtml );}); |
try { fn(); return jwplayer(selector); } catch (err) { } return false; | $.fn.jwplayerController.play(player); return jwplayer(player); | return function() { try { fn(); return jwplayer(selector); } catch (err) { } return false; }; |
expect(14); | var el = $("#spin").spinner({ disabled: true }) val = el.val(), wrapper = el.spinner("widget"); | test("enable", function() { expect(14); el = $("#spin").spinner({ disabled: true }); var val = el.val(); ok(wrapper().hasClass(".ui-spinner-disabled"), "before: wrapper has ui-spinner-disabled class"); ok(box().is(':disabled'), "before: input has disabled attribute"); el.spinner("enable"); ok(!wrapper().hasClass(".u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.