rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return this.each(function() { $.style( this, type, reduce( this, size ) + "px" ); }); }; $.fn[ "outer" + name] = function( size, margin ) { if ( typeof size !== "number" ) { return orig[ "outer" + name ].call( this, size ); } return this.each(function() { $.style( this, type, reduce( this, size, true, margin ) + "px"...
}); })();
$.each( [ "Width", "Height" ], function( i, name ) { var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], type = name.toLowerCase(), orig = { innerWidth: $.fn.innerWidth, innerHeight: $.fn.innerHeight, outerWidth: $.fn.outerWidth, outerHeight: $.fn.outerHeight }; function reduce( elem, si...
test("incremental - true", function() { expect(2);
test("min", function() { var el = $("#spin").spinner({ min: -100, value: -1000 }); equals(el.val(), -100, "min constrained if value option is greater");
test("incremental - true", function() { expect(2); el.spinner('option', 'incremental', true ); for ( var i = 1 ; i<=120 ; i++ ) { el.simulate("keydown",{keyCode:$.ui.keyCode.UP}); } el.simulate("keyup",{keyCode:$.ui.keyCode.UP}); equals(el.val(), 300, "incremental true - keydown 120 times (100+20*10)"); for ( var i =...
el.spinner('option', 'incremental', true ); for ( var i = 1 ; i<=120 ; i++ ) { el.simulate("keydown",{keyCode:$.ui.keyCode.UP}); } el.simulate("keyup",{keyCode:$.ui.keyCode.UP}); equals(el.val(), 300, "incremental true - keydown 120 times (100+20*10)"); for ( var i = 1 ; i<=210 ; i++ ) { el.simulate("keydown",{keyCo...
el.spinner('value', -1000); equals(el.val(), -100, "min constrained if value method is greater"); el.val(-1000).blur(); equals(el.val(), -100, "min constrained if manual entry");
test("incremental - true", function() { expect(2); el.spinner('option', 'incremental', true ); for ( var i = 1 ; i<=120 ; i++ ) { el.simulate("keydown",{keyCode:$.ui.keyCode.UP}); } el.simulate("keyup",{keyCode:$.ui.keyCode.UP}); equals(el.val(), 300, "incremental true - keydown 120 times (100+20*10)"); for ( var i =...
(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=/^...
return this.each(function() { jQuery.data( this, key ); });
(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=/^...
$(this).data("resizable-alsoresize", { width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10), left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10)
var el = $(this); el.data("resizable-alsoresize", { width: parseInt(el.width(), 10), height: parseInt(el.height(), 10), left: parseInt(el.css('left'), 10), top: parseInt(el.css('top'), 10), position: el.css('position')
$(exp).each(function() { $(this).data("resizable-alsoresize", { width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10), left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10) }); });
expect(8);
expect(14);
searchTests.test("Search results: progress indication", function () { expect(8); var expectedModel; jQuery.ajax({ async: false, url: "../../main/webapp/html/data/loanin/search/list.json", dataType: "json", success: function (data) { exp...
var resultsContainer = jQuery(search.options.selectors.resultsCountContainer); jqUnit.isVisible("After search, results count should be visible", resultsContainer); jqUnit.assertEquals("After search submitted, results count should include query string", query, jQuery(search.options.selectors.queryString, resultsContaine...
jqUnit.isVisible("After search, results container should be visible", jQuery(search.options.selectors.resultsContainer)); var resultsCountContainer = jQuery(search.options.selectors.resultsCountContainer); jqUnit.isVisible("After search, results count should be visible", resultsCountContainer); jqUnit.assertEquals("Aft...
searchTests.test("Search results: progress indication", function () { expect(8); var expectedModel; jQuery.ajax({ async: false, url: "../../main/webapp/html/data/loanin/search/list.json", dataType: "json", success: function (data) { exp...
jqUnit.notVisible("Initially, results count should be hidden", jQuery(search.options.selectors.resultsContainer));
jqUnit.notVisible("Initially, results container should be hidden", jQuery(search.options.selectors.resultsContainer)); jqUnit.notVisible("Initially, results count container should be hidden", jQuery(search.options.selectors.resultsCountContainer));
searchTests.test("Search results: progress indication", function () { expect(8); var expectedModel; jQuery.ajax({ async: false, url: "../../main/webapp/html/data/loanin/search/list.json", dataType: "json", success: function (data) { exp...
jqUnit.notVisible("Initially, error message should be hidden", jQuery(search.options.selectors.errorMessage));
searchTests.test("Search results: progress indication", function () { expect(8); var expectedModel; jQuery.ajax({ async: false, url: "../../main/webapp/html/data/loanin/search/list.json", dataType: "json", success: function (data) { exp...
var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"];
jwplayer.html5.defaultSkin = function() { this.text = '<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000...
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(api, container, model, view) { var _api = api; var _model = model; var _view = view; var _container = container; ...
jwplayer.html5.controller = function(api, container, model, view) { var _api = api; var _model = model; var _view = view; var _container = container; var _itemUpdated = true; var debug = (_model.config.debug !== undefined) && (_model.config.debug.toString().toLowerCase() == 'console'); var _eventDispatcher = new jwpla...
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(api, container, model, view) { var _api = api; var _model = model; var _view = view; var _container = container; ...
var instance = $.data( this, name ), methodValue = instance && $.isFunction( instance[options] ) ? instance[ options ].apply( instance, args ) : instance;
var instance = $.data( this, name ); if ( !instance ) { return $.error( "cannot call methods on " + name + " prior to initialization; " + "attempted to call method '" + options + "'" ); } if ( !$.isFunction( instance[options] ) ) { return $.error( "no such method '" + options + "' for " + name + " widget instance" ); }...
$.fn[ name ] = function( options ) { var isMethodCall = typeof options === "string", args = Array.prototype.slice.call( arguments, 1 ), returnValue = this; // allow multiple hashes to be passed on init options = !isMethodCall && args.length ? $.extend.apply( null, [ true, options ].concat(args) ) : options;...
utilitiesTest.test("Model from schema with getBeanValue with nesting", function () { schema.fields.properties.role.properties.newRoleArray = { type: "array", items: { type: "object", properties: { nestedRole: { type: "array", "default": [{ roleName: "ROLE_ADMINISTRATOR", roleId: "1", roleGroup: "Museum staff", roleAssi...
utilitiesTest.test("Create a model from schema with simple defaults", function () { schema.fields.properties.newProperty = { type: "string", "default": "This is a default"
utilitiesTest.test("Model from schema with getBeanValue with nesting", function () { schema.fields.properties.role.properties.newRoleArray = { type: "array", items: { type: "object", properties: { nestedRole: { type...
setExpectedSchemaBasedModel(); expectedBase.fields.role.newRoleArray = [{ nestedRole: [{ roleName: "ROLE_ADMINISTRATOR", roleId: "1", roleGroup: "Museum staff", roleAssigned: true }] }];
setExpectedSchemaBasedModel(); expectedBase.fields.newProperty = "This is a default";
utilitiesTest.test("Model from schema with getBeanValue with nesting", function () { schema.fields.properties.role.properties.newRoleArray = { type: "array", items: { type: "object", properties: { nestedRole: { type...
&& !$(element).parents().andSelf().filter(function() { return $.curCSS( this, "visibility" ) === "hidden" || $.expr.filters.hidden( this ); }).length;
$.each( [ "Width", "Height" ], function( i, name ) { var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], type = name.toLowerCase(), orig = { innerWidth: $.fn.innerWidth, innerHeight: $.fn.innerHeight, outerWidth: $.fn.outerWidth, outerHeight: $.fn.outerHeight }; function reduce( elem, size, border...
&& !$(element).parents().andSelf().filter(function() { return $.curCSS( this, "visibility" ) === "hidden" || $.expr.filters.hidden( this ); }).length;
wait(function () { return B.isMaster().ismaster || B.isMaster().secondary; });
wait(function () { try { return !B.isMaster().ismaster; } catch(e) { return false; } });
wait(function () { return B.isMaster().ismaster || B.isMaster().secondary; });
(opts.hideUndo || $.fn.undoable.hideUndo).call($.fn.undoable, undoable, target);
(opts.hideUndo || $.fn.undoable.hideUndo).call($.fn.undoable, undoable, target, opts);
$.fn.undoable.postToServer(opts.undoUrl || url, data, function() { (opts.hideUndo || $.fn.undoable.hideUndo).call($.fn.undoable, undoable, target); }, clickSource);
that.locate("remove").click(function () {
that.container.delegate("click", that.options.selectors.remove, function () {
that.locate("remove").click(function () { var index = that.locate("remove").index(this); requestChange(that, deleteRow, index); that.refreshView(); that.events.afterDelete.fire(); });
requestChange(that, deleteRow, index); that.refreshView();
requestChange(that, deleteRow, index); var repeats = that.locate("repeat"); $(repeats[index]).remove(); that.events.afterRender.fire();
that.locate("remove").click(function () { var index = that.locate("remove").index(this); requestChange(that, deleteRow, index); that.refreshView(); that.events.afterDelete.fire(); });
that.events.onSearch.addListener(function(term, permitted) { if (permitted) { container.addClass(that.options.styles.loadingStyle); }
that.container.change(function() { that.oldValue = that.container.val();
that.events.onSearch.addListener(function(term, permitted) { if (permitted) { container.addClass(that.options.styles.loadingStyle); } });
setupRelationManager(baseCSID, relations); jqUnit.assertEquals("The object has no relations initially", relations, relationManager.applier.model.relations); relationManager.addRelations({items: newRelations}); jqUnit.assertDeepEq("The object has new relations", expectedRelations, relationManager.applier.model.relations...
createRelationManager({ csid: baseCSID, relations: relations }, { searchToRelateDialog: { options: { listeners: { afterRender: function () { jqUnit.assertEquals("The object has no relations initially", relations, relationManager.applier.model.relations); relationManager.addRelations({items: newRelations}); jqUnit.asser...
relationManagerTest.test("Add relations", function () { setupRelationManager(baseCSID, relations); jqUnit.assertEquals("The object has no relations initially", relations, relationManager.applier.model.relations); relationManager.addRelations({items: newRelations}); jqUnit.assertDeepEq("T...
test("label default with input type submit", function() { same( $("#submit").button().val(), "Label" );
test("label, default", function() { $("#button").button(); same( $("#button").text(), "Label" ); $("#button").button("destroy");
test("label default with input type submit", function() { same( $("#submit").button().val(), "Label" );});
that.dataContext.events.afterFetch.addListener(function (modelPath, data) { setupModel(that); that.refreshView();
that.dataContext.events.afterCreate.addListener(function (modelPath, data) { that.applier.requestChange(that.options.idField, data.fields.csid); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); displayTimestampedMessage(that, that.options.strings.createSuccessfulMessage...
that.dataContext.events.afterFetch.addListener(function (modelPath, data) { setupModel(that); that.refreshView(); });
rendererTest.test("buildSelectorsFromUISpec()", function () {
rendererTest.test("buildProtoTree(): Links", function () {
rendererTest.test("buildSelectorsFromUISpec()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var testSelectors = {}; var expectedSelectors = { selector1: "selector1", sele...
selector1: "${field1}", selector2: "${field2}", selector3: "${field3}"
selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}" }
rendererTest.test("buildSelectorsFromUISpec()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var testSelectors = {}; var expectedSelectors = { selector1: "selector1", sele...
var testSelectors = {}; var expectedSelectors = { selector1: "selector1", selector2: "selector2", selector3: "selector3"
var testThat = { model: { displayText: "Link Text", csid: "testID" }
rendererTest.test("buildSelectorsFromUISpec()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var testSelectors = {}; var expectedSelectors = { selector1: "selector1", sele...
cspace.renderUtils.buildSelectorsFromUISpec(testUISpec, testSelectors); jqUnit.assertDeepEq("Selectors added to empty list", expectedSelectors, testSelectors); testSelectors = { existingSelector: ".foo"
var expectedProtoTree = { selector1: { linktext: "Link Text", target: "page.html?csid=testID" }
rendererTest.test("buildSelectorsFromUISpec()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var testSelectors = {}; var expectedSelectors = { selector1: "selector1", sele...
expectedSelectors.existingSelector = ".foo"; cspace.renderUtils.buildSelectorsFromUISpec(testUISpec, testSelectors); jqUnit.assertDeepEq("New selectors should overwrite existing selectors", expectedSelectors, testSelectors);
var protoTree = cspace.renderUtils.buildProtoTree(testUISpec, testThat); jqUnit.assertDeepEq("Links should be properly expanded", expectedProtoTree, protoTree);
rendererTest.test("buildSelectorsFromUISpec()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var testSelectors = {}; var expectedSelectors = { selector1: "selector1", sele...
that.events.modelChanged.addListener(function () { displaySearchResults(that);
that.events.onError.addListener(function (action, status) { that.locate("resultsContainer").hide(); that.locate("errorMessage").show();
that.events.modelChanged.addListener(function () { displaySearchResults(that); });
clickSource.removeAttr('disabled');
$.fn.undoable.postToServer(opts.undoUrl || url, data, function() { (opts.hideUndo || $.fn.undoable.hideUndo).call($.fn.undoable, undoable, target, opts); }, clickSource);
that.events.afterRender.fire();
fluid.fetchResources(resources, function () { var templates = fluid.parseTemplates(resources, ["confirmation"], {}); fluid.reRender(templates, confirmation, {}); bindEvents(that); });
$.each(classAnimationActions, function(i, action) { if (value[action]) { that[action + 'Class'](value[action]); }
$.queue(this, 'fx', function() { var that = $(this), originalStyleAttr = that.attr('style') || ' ', originalStyle = filterStyles(getElementStyles.call(this)), newStyle, className = that.attr('className'); $.each(classAnimationActions, function(i, action) { if (value[action]) { that[action + 'Class'](value[action]); } ...
$.each(classAnimationActions, function(i, action) { if (value[action]) { that[action + 'Class'](value[action]); } });
ok( set.is(".ui-button-set") );
ok( set.is(".ui-buttonset") );
test("buttonset", function() { var set = $("#radio1").buttonset(); ok( set.is(".ui-button-set") ); same( set.children(".ui-button").length, 3 ); same( set.children("input:radio.ui-helper-hidden-accessible").length, 3 ); ok( set.children("label:eq(0)").is(".ui-button.ui-corner-left:not(.ui-corner-all)") ); ok( set.child...
$("th[id ^= 'col-']").each(function() {
$(tid+"th[id ^= 'col-']").each(function() {
$("th[id ^= 'col-']").each(function() { // get column headers columns.push($(this).attr('id').split('-')[1]) });
test("keydown DOWN on input, decreases value not less than min", function() { expect(3); el = $("#spin"); options = { min:-100, value:50,
test("keydown PGDN on input, decreases value not less than min", function() { var el = $("#spin").spinner({ min:-500, value:0,
test("keydown DOWN on input, decreases value not less than min", function() { expect(3); el = $("#spin"); options = { min:-100, value:50, step:10 } el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.DOWN); equals(el.val(), 40); for (i = 0; i<21; i++) { simulateKeyDownUp(el, $.ui.keyCode.DOWN); } equals(el...
} el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.DOWN); equals(el.val(), 40); for (i = 0; i<21; i++) { simulateKeyDownUp(el, $.ui.keyCode.DOWN); }
}); simulateKeyDownUp(el, $.ui.keyCode.PAGE_DOWN);
test("keydown DOWN on input, decreases value not less than min", function() { expect(3); el = $("#spin"); options = { min:-100, value:50, step:10 } el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.DOWN); equals(el.val(), 40); for (i = 0; i<21; i++) { simulateKeyDownUp(el, $.ui.keyCode.DOWN); } equals(el...
el.val(50);
for (i = 0; i<5; i++) { simulateKeyDownUp(el, $.ui.keyCode.PAGE_DOWN); } equals(el.val(), -500);
test("keydown DOWN on input, decreases value not less than min", function() { expect(3); el = $("#spin"); options = { min:-100, value:50, step:10 } el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.DOWN); equals(el.val(), 40); for (i = 0; i<21; i++) { simulateKeyDownUp(el, $.ui.keyCode.DOWN); } equals(el...
simulateKeyDownUp(el, $.ui.keyCode.DOWN); equals(el.val(), 40);
el.val(0); simulateKeyDownUp(el, $.ui.keyCode.PAGE_DOWN); equals(el.val(), -100);
test("keydown DOWN on input, decreases value not less than min", function() { expect(3); el = $("#spin"); options = { min:-100, value:50, step:10 } el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.DOWN); equals(el.val(), 40); for (i = 0; i<21; i++) { simulateKeyDownUp(el, $.ui.keyCode.DOWN); } equals(el...
rendererTest.test("buildProtoTree(): Links", function () {
rendererTest.test("buildProtoTree(): Repeated decorators, no data", function () {
rendererTest.test("buildProtoTree(): Links", function () { var testUISpec = { selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}" } }; var testThat = { model: { displayText: "Link Text", ...
selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}"
"row:": { children: [{ fieldA: "${repeated.0.field1}", fieldB: { decorators: [{ "type": "fluid", "func": "cspace.autocomplete", "options": { "url": "url.com" } }] } }]
rendererTest.test("buildProtoTree(): Links", function () { var testUISpec = { selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}" } }; var testThat = { model: { displayText: "Link Text", ...
model: { displayText: "Link Text", csid: "testID" }
model: testModel
rendererTest.test("buildProtoTree(): Links", function () { var testUISpec = { selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}" } }; var testThat = { model: { displayText: "Link Text", ...
selector1: { linktext: "Link Text", target: "page.html?csid=testID"
"row:": { children: [{ fieldA: "${repeated.0.field1}", fieldB: { decorators: [{ "type": "fluid", "func": "cspace.autocomplete", "options": { "url": "url.com" } }] } }]
rendererTest.test("buildProtoTree(): Links", function () { var testUISpec = { selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}" } }; var testThat = { model: { displayText: "Link Text", ...
jqUnit.assertDeepEq("Links should be properly expanded", expectedProtoTree, protoTree);
jqUnit.assertDeepEq("Decorator should be in protoTree", expectedProtoTree, protoTree);
rendererTest.test("buildProtoTree(): Links", function () { var testUISpec = { selector1: { linktext: "${displayText}", target: "page.html?csid=${csid}" } }; var testThat = { model: { displayText: "Link Text", ...
wrapper(function() { $.ajax(ajaxOpts); });
map = fluid.transform(map, function(entry) { var encode = false; if (entry.indexOf(eUC) === 0) { encode = true; entry = entry.substring(eUC.length); } if (entry.charAt(0) === "%") { entry = fluid.model.getBeanValue(directModel, entry.substring(1)); } if (encode) { entry = encodeURIComponent(entry); } return entry; } );
wrapper(function() { $.ajax(ajaxOpts); });
retrieveUserList(that.userList, that.userListApplier.model);
retrieveUserList(that.dom, that.userList, that.userListApplier.model);
that.dataContext.events.afterCreate.addListener(function () { that.locate("newUserRow").hide(); retrieveUserList(that.userList, that.userListApplier.model); });
fluid.each(data, function(item) { if (item.label.toLowerCase().indexOf(lowterm) !== -1) { togo.push(item); }
that.events.onSearchDone.addListener(function() { container.removeClass(that.options.styles.loadingStyle);
fluid.each(data, function(item) { if (item.label.toLowerCase().indexOf(lowterm) !== -1) { togo.push(item); } });
return function(position) { player.currentTime = position;
return function() { player[0].pause();
return function(position) { player.currentTime = position; };
cspace.util.globalDismissal($(datePicker).add(calendarButton), function () { closeCalendar(that); });
calendarDate.change(function () { that.locate("messageContainer", "body").hide(); var dateFieldValue = calendarDate.val(); var date = validateDate(that.dom, dateFieldValue, that.options.strings.invalidDateMessage, that.options.defaultFormat); if (dateFieldValue !== date) { calendarDate.val(date); } that.datePicker...
cspace.util.globalDismissal($(datePicker).add(calendarButton), function () { closeCalendar(that); });
fluid.fetchResources(resources, function () { var templates = fluid.parseTemplates(resources, ["confirmation"], {}); fluid.reRender(templates, confirmation, {}); bindEvents(that); that.events.afterRender.fire();
that.locate("act", that.dlg).click(function (e) { that.options.action();
fluid.fetchResources(resources, function () { var templates = fluid.parseTemplates(resources, ["confirmation"], {}); fluid.reRender(templates, confirmation, {}); bindEvents(that); that.events.afterRender.fire(); });
that.events.onError.addListener(function (action, status) { that.locate("resultsContainer").hide(); that.locate("errorMessage").show();
that.events.modelChanged.addListener(function () { displaySearchResults(that);
that.events.onError.addListener(function (action, status) { that.locate("resultsContainer").hide(); that.locate("errorMessage").show(); });
test("source, local object array, only label property", function() { source_test([ {label:"java"}, {label:"php"}, {label:"coldfusion"}, {label:"javascript"} ]);
test("source, local string array", function() { var ac = $("#autocomplete").autocomplete({ source: data }); ac.val("ja").autocomplete("search"); same( $(".ui-menu .ui-menu-item").text(), "javajavascript" ); ac.autocomplete("destroy");
test("source, local object array, only label property", function() { source_test([ {label:"java"}, {label:"php"}, {label:"coldfusion"}, {label:"javascript"} ]);});
(function(jwplayer) { jwplayer.embed = function() { }; jwplayer.embed.Embedder = function(playerApi) { this.constructor(playerApi); }; jwplayer.embed.defaults = { width : 400, height : 300, players: [{type:"flash", src:"player.swf"},{type:'html5'}], components: { controlbar: { position: 'over' } } }; jwplayer.embed...
this.eventListener(jwplayer.api.events.JWPLAYER_MEDIA_META, function(data) { jwplayer.utils.extend(_itemMeta, data.metadata);
(function(jwplayer) { jwplayer.embed = function() { }; jwplayer.embed.Embedder = function(playerApi) { this.constructor(playerApi); }; jwplayer.embed.defaults = { width : 400, height : 300, players: [{type:"flash", src:"player.swf"},{type:'html5'}], components: { controlbar: { position: 'over' } } }; jw...
} } noviceEmbed(); })(jwplayer);
(function(jwplayer) { jwplayer.embed = function() { }; jwplayer.embed.Embedder = function(playerApi) { this.constructor(playerApi); }; jwplayer.embed.defaults = { width : 400, height : 300, players: [{type:"flash", src:"player.swf"},{type:'html5'}], components: { controlbar: { position: 'over' } } }; jw...
$.queue(this, 'fx', function() { var that = $(this), originalStyleAttr = that.attr('style') || ' ', originalStyle = filterStyles(getElementStyles.call(this)), newStyle, className = that.attr('className'); $.each(classAnimationActions, function(i, action) { if (value[action]) { that[action + 'Class'](value[action]); } ...
$.each(classAnimationActions, function(i, action) { if (value[action]) { that[action + 'Class'](value[action]); }
$.queue(this, 'fx', function() { var that = $(this), originalStyleAttr = that.attr('style') || ' ', originalStyle = filterStyles(getElementStyles.call(this)), newStyle, className = that.attr('className'); $.each(classAnimationActions, function(i, action) { if (value[action]) { that[action + 'Cl...
test( 'eCSStender.at', function(){ ok( typeof(eCSStender.at)=='object', 'at is the correct type' ); ok( typeof(eCSStender.at['-hyphenated-extended-at-with-keys'])=='object', 'eCSStender.pages["-hyphenated-extended-at-with-keys"] is the correct type' ); var count = 0, key; for ( key in eCSStender.at['-hyphenated-extende...
test( 'eCSStender.pages', function(){ ok( typeof(eCSStender.pages)=='object', 'eCSStender.pages is the correct type' ); ok( typeof(eCSStender.pages['right'])=='object', 'eCSStender.pages["right"] is the correct type' ); ok( typeof(eCSStender.pages['right']['border'])!='undefined', 'eCSStender.pages["right"]["border"] i...
test( 'eCSStender.at', function(){ ok( typeof(eCSStender.at)=='object', 'at is the correct type' ); ok( typeof(eCSStender.at['-hyphenated-extended-at-with-keys'])=='object', 'eCSStender.pages["-hyphenated-extended-at-with-keys"] is the correct type' ); var count = 0, key; for ( key in eCSStender.at...
that.detailsDC.events.onError.addListener(function (operation, message) { that.locate("newListRow").hide();
that.details.events.afterRender.addListener(function () { showDetails(that.dom, false);
that.detailsDC.events.onError.addListener(function (operation, message) { that.locate("newListRow").hide(); });
that.dataContext.events.afterCreate.addListener(function (data) { recordSaveHandler(that, data, "Create"); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate");
that.events.onSave.addListener(function () { return validateRequiredFields(that.dom, that.options.strings.missingRequiredFields);
that.dataContext.events.afterCreate.addListener(function (data) { recordSaveHandler(that, data, "Create"); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate"); });
fluid.fetchResources(that.options.pageSpec, function (resourceSpecs) { fluid.log("PageBuilder.js after fetching resources"); for (var regionName in resourceSpecs) { if (resourceSpecs.hasOwnProperty(regionName) && (regionName !== "callbackCalled")) { var region = resourceSpecs[regionName]; inject(region.resourceText, re...
function () { that.dependencies = fluid.expander.expandLight(that.dependencies, {noValue: true}); }
fluid.fetchResources(that.options.pageSpec, function (resourceSpecs) { fluid.log("PageBuilder.js after fetching resources"); for (var regionName in resourceSpecs) { if (resourceSpecs.hasOwnProperty(regionName) && (regionName !== "callbackCalled")) { var re...
self._change( event );
self.closing = setTimeout(function() { self.close( event ); }, 150 );
repeatableTest.test("Add functionality when model initially empty", function () { var oldTestModel = {}; fluid.model.copyModel(oldTestModel, testModel); fluid.clear(testModel); repeatable = setupRepeatable(); jqUnit.assertEquals("When initialized with an empty model, model length should be 1", 1, fluid.model.getBeanV...
myRepeatable.applier.modelChanged.addListener("*", function () { jqUnit.assertEquals("After clicking 'add', model is now of length 2", 2, fluid.model.getBeanValue(myRepeatable.model, myRepeatable.options.elPath).length); jqUnit.assertEquals("After adding a row, first value is still 'oregano'", "oregano", field.val()); ...
repeatableTest.test("Add functionality when model initially empty", function () { var oldTestModel = {}; fluid.model.copyModel(oldTestModel, testModel); fluid.clear(testModel); repeatable = setupRepeatable(); jqUnit.assertEquals("When initialized with an empty model, mode...
repeatable.locate("addButton").click(); fluid.clear(testModel); fluid.model.copyModel(testModel, oldTestModel); });
repeatableTest.test("Add functionality when model initially empty", function () { var oldTestModel = {}; fluid.model.copyModel(oldTestModel, testModel); fluid.clear(testModel); repeatable = setupRepeatable(); jqUnit.assertEquals("When initialized with an empty model, mode...
that.applier.requestChange("csid", data.csid); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate"); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); that.applier.requestChange("termsUsed", data.termsUsed); cspace.util.displayTimestampedMessage(t...
recordSaveHandler(that, data, "Create"); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate");
that.dataContext.events.afterCreate.addListener(function (data) { that.applier.requestChange("csid", data.csid); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate"); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfu...
same(div[0], div.testWidget("widget")[0]);
same(div.testWidget("widget")[0], div[0]); same(div.testWidget("widget").end()[0], div[0]);
test(".widget() - base", function() { $.widget("ui.testWidget", { _create: function() {} }); var div = $("<div></div>").testWidget() same(div[0], div.testWidget("widget")[0]);});
}, 50);
setTimeout(function() { same( $(".ui-menu:visible").length, 1 ); same( $(".ui-menu .ui-menu-item").length, 2 ); start(); }, 50);
jwplayer.html5.controller = function(model, view, container) {
jwplayer.html5.controller = function(api, container, model, view) {
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
_eventDispatcher.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, _model.getMedia().play);
_model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, function() { _model.getMedia().play(); });
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
function _setVolume(arg) { try { switch (jwplayer.html5.utils.typeOf(arg)) {
function _setVolume(volume) { try { switch (typeof(volume)) {
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
_model.getMedia().volume(arg);
_model.getMedia().volume(volume);
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
_model.getMedia().volume(parseInt(arg, 10));
_model.getMedia().volume(parseInt(volume, 10));
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
function _setMute(arg) { try { _model.getMedia().mute(arg);
function _setMute(state) { try { _model.getMedia().mute(state);
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
function _resize(arg1, arg2) { try { _model.getMedia().resize(arg1, arg2);
function _resize(width, height) { try { _model.width = width; _model.height = height; _view.resize(width, height);
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
function _setFullscreen(arg) { try { _model.getMedia().fullscreen(arg);
function _setFullscreen(state) { try { _model.getMedia().fullscreen(state);
(function(jwplayer) { var _mediainfovariables = ["width", "height", "state", "playlist", "item", "position", "buffer", "duration", "volume", "mute", "fullscreen"]; jwplayer.html5.controller = function(model, view, container) { var _model = model; var _view = view; var debug = (_model.config.debug !== undefined) &...
this.buttonElement.bind( "click.button", function() {
.bind( "mouseleave.button", function() {
this.buttonElement.bind( "click.button", function() { if ( options.disabled ) { return; } $( this ).toggleClass( "ui-state-active" ); self.buttonElement.attr( "aria-pressed", self.element[0].checked ); });
$( this ).toggleClass( "ui-state-active" ); self.buttonElement.attr( "aria-pressed", self.element[0].checked ); });
$( this ).removeClass( hoverClass ); })
this.buttonElement.bind( "click.button", function() { if ( options.disabled ) { return; } $( this ).toggleClass( "ui-state-active" ); self.buttonElement.attr( "aria-pressed", self.element[0].checked ); });
relationDialogSetup(function () {
relationManagerTest.test("Add Relation Dialog, for specific record type", function () { relationDialogSetup(function (relationManager) { relationManager.options.applier.requestChange("csid", "123456798");
relationDialogSetup(function () { jqUnit.notVisible("Search to Relate Dialog is invisible initially", $(".ui-dialog")); relationManager.locate("addButton").click(); jqUnit.notVisible("Search to Relate Dialog is invisible if the record is not saved", $(".ui-dialog")); ...
jqUnit.notVisible("Search to Relate Dialog is invisible if the record is not saved", $(".ui-dialog"));
relationDialogSetup(function () { jqUnit.notVisible("Search to Relate Dialog is invisible initially", $(".ui-dialog")); relationManager.locate("addButton").click(); jqUnit.notVisible("Search to Relate Dialog is invisible if the record is not saved", $(".ui-dialog")); ...
jqUnit.isVisible("Error message is visible", message); jqUnit.assertEquals("Object should be saved first", relationManager.options.strings.pleaseSaveFirst, message.text());
jqUnit.notVisible("Error message is invisible", message); jqUnit.isVisible("After clicking Add, Add Relation Dialog is visible", relationManager.dialogNode); jqUnit.assertEquals("Dialog should have correct primary record type", "cataloging", relationManager.searchToRelateDialog.options.primary); jqUnit.assertTrue("Reco...
relationDialogSetup(function () { jqUnit.notVisible("Search to Relate Dialog is invisible initially", $(".ui-dialog")); relationManager.locate("addButton").click(); jqUnit.notVisible("Search to Relate Dialog is invisible if the record is not saved", $(".ui-dialog")); ...
}, "cataloging", "cataloging");
}, "cataloging", "loanin", {}, {loanin: ["read", "update"]}); });
relationDialogSetup(function () { jqUnit.notVisible("Search to Relate Dialog is invisible initially", $(".ui-dialog")); relationManager.locate("addButton").click(); jqUnit.notVisible("Search to Relate Dialog is invisible if the record is not saved", $(".ui-dialog")); ...
listEditorTest.test("onSelect: details showing", function () {
listEditorTest.test("addNewListRow after something was selected", function () {
listEditorTest.test("onSelect: details showing", function () { var listEditor; var testOpts = {}; fluid.model.copyModel(testOpts, baseTestOpts); var detailsTester = function(){ jqUnit.isVisible("Details should be visible after activating an item in the list", listEditor.option...
var testOpts = {}; fluid.model.copyModel(testOpts, baseTestOpts);
listEditorTest.test("onSelect: details showing", function () { var listEditor; var testOpts = {}; fluid.model.copyModel(testOpts, baseTestOpts); var detailsTester = function(){ jqUnit.isVisible("Details should be visible after activating an item in the list", listEditor.option...
jqUnit.isVisible("Details should be visible after activating an item in the list", listEditor.options.selectors.details); jqUnit.assertEquals("Details should be from the correct item", "Megan Forbes", $(".csc-user-userName").val());
listEditor.details.events.afterRender.removeListener("afterRenderHandler"); jqUnit.notVisible("New Entry row should be invisible initially", listEditor.options.selectors.newListRow); jqUnit.isVisible("Details should be visible initially", listEditor.options.selectors.details); jqUnit.deepEq("Details Model should be emp...
listEditorTest.test("onSelect: details showing", function () { var listEditor; var testOpts = {}; fluid.model.copyModel(testOpts, baseTestOpts); var detailsTester = function(){ jqUnit.isVisible("Details should be visible after activating an item in the list", listEditor.option...
listEditor.details.events.afterRender.addListener(detailsTester);
listEditor.details.events.afterRender.addListener(detailsTester, "afterRenderHandler");
listEditorTest.test("onSelect: details showing", function () { var listEditor; var testOpts = {}; fluid.model.copyModel(testOpts, baseTestOpts); var detailsTester = function(){ jqUnit.isVisible("Details should be visible after activating an item in the list", listEditor.option...
return function(arg) { $.fn.jwplayerController.seek(player, arg); return jwplayer(player.id); };
$(document).ready(function() { $("video.jwplayer").jwplayer(); });
return function(arg) { $.fn.jwplayerController.seek(player, arg); return jwplayer(player.id); };
self.element .attr( "checked", !self.element[0].checked ) .click();
this.buttonElement.bind( "click.button", function() { if ( options.disabled ) { return; } $( this ).toggleClass( "ui-state-active" ); self.element .attr( "checked", !self.element[0].checked ) .click(); self.buttonElement.attr( "aria-pressed", self.element[0].checked ); });
$("div").each(function () { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 1;
wrapper(function() { $.ajax(ajaxOpts);
$("div").each(function () { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 1; });
basicConfigureTest("isVisible", "procedures");
basicConfigureTest(":disabled", false, "procedures");
relatedRecordsListTest.test("Configure SearchToRelate Dialog for all procedure types (using 'procedures' configuration)", function () { basicConfigureTest("isVisible", "procedures"); });
$(this).bind('click', function () { $('#media_browser_data_store').attr('tabname', $(this).attr('tabname')); $('#media_content_browser_tabs .item-list li.active, #media_content_browser_tabs .item-list a.active').removeClass('active'); $(this).addClass('active'); $(this).parents('li').addClass('active'); $('#media...
$('ul.result_limit li a, ul.pager li a').live('click', function() { var query = $(this).attr('href').replace(/.*\?/, ''); media_load_content_display(query); return false; });
$(this).bind('click', function () { // The first thing we need to do is to update the data store with this tab data $('#media_browser_data_store').attr('tabname', $(this).attr('tabname')); // Unset other active tabs $('#media_content_browser_tabs .item-list li.active, #media_content_br...
that.events.onSave.addListener(function () { return validateRequiredFields(that.dom, that.options.strings.missingRequiredFields);
that.dataContext.events.afterCreate.addListener(function (data) { that.applier.requestChange("csid", data.csid); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate"); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); that.applier.requestChange("te...
that.events.onSave.addListener(function () { return validateRequiredFields(that.dom, that.options.strings.missingRequiredFields); });
adminUsersTest.test("Save new user - empty form field - expect save to return false", function () {
adminUsersTest.test("Save new user - mismatched passwords - expect save to return false", function () {
adminUsersTest.test("Save new user - empty form field - expect save to return false", function () { var adminUsers; testOpts.listeners = { afterRender: function () { var userListEditorSelectors = adminUsers.userListEditor.options.selectors; jQuery(userListEdito...
jQuery(adminUsersSelectors.passwordConfirm).val(testDataCreateUser.validPassword).change();
jQuery(adminUsersSelectors.passwordConfirm).val("1234567890").change();
adminUsersTest.test("Save new user - empty form field - expect save to return false", function () { var adminUsers; testOpts.listeners = { afterRender: function () { var userListEditorSelectors = adminUsers.userListEditor.options.selectors; jQuery(userListEdito...
$('#mapdiv').mousemove(function(evt) { var viewbox = getviewbox(map);
$('#mapdiv').mousedown(function(evt) { setxy(evt);
$('#mapdiv').mousemove(function(evt) { var viewbox = getviewbox(map); if(evt.preventDefault){ evt.preventDefault(); } mousecounter++; if(juststarted==1){ killmenu(); juststarted = 0; } if((mousedown == true)&&(mousecounter%3 == 0)){ var neworigin = getcurxy(evt);...
} mousecounter++;
}
$('#mapdiv').mousemove(function(evt) { var viewbox = getviewbox(map); if(evt.preventDefault){ evt.preventDefault(); } mousecounter++; if(juststarted==1){ killmenu(); juststarted = 0; } if((mousedown == true)&&(mousecounter%3 == 0)){ var neworigin = getcurxy(evt);...
if((mousedown == true)&&(mousecounter%3 == 0)){ var neworigin = getcurxy(evt); var dx = (mouseorigin.x - neworigin.x); var dy = (mouseorigin.y - neworigin.y); var dosectors; viewbox[0] = viewbox[0] + dx; viewbox[1] = viewbox[1] + dy; setviewbox(viewbox); mouseorigin = neworigin; } if(curfleetid){ var newcenter = getcur...
killmenu(); removetooltips(); $('div.slideoutcontents').hide('fast'); $('div.slideoutcontentscontents').empty(); document.body.style.cursor='move'; mousedown = true; mouseorigin = getcurxy(evt);
$('#mapdiv').mousemove(function(evt) { var viewbox = getviewbox(map); if(evt.preventDefault){ evt.preventDefault(); } mousecounter++; if(juststarted==1){ killmenu(); juststarted = 0; } if((mousedown == true)&&(mousecounter%3 == 0)){ var neworigin = getcurxy(evt);...
$('li.media-item :checkbox', '.media-display-thumbnails').each(function () {
$('.media-display-thumbnails :checkbox').each(function () {
$('li.media-item :checkbox', '.media-display-thumbnails').each(function () { var checkbox = $(this); if (checkbox.is(':checked')) { $(checkbox.parents('li.media-item')).addClass('selected'); } checkbox.bind('change.media', function () { if (checkbox.is(':checked')) { $(che...
$(checkbox.parents('li.media-item')).addClass('selected');
$(checkbox.parents('li').find('.media-item')).addClass('selected');
$('li.media-item :checkbox', '.media-display-thumbnails').each(function () { var checkbox = $(this); if (checkbox.is(':checked')) { $(checkbox.parents('li.media-item')).addClass('selected'); } checkbox.bind('change.media', function () { if (checkbox.is(':checked')) { $(che...
$(checkbox.parents('li.media-item')).removeClass('selected');
$(checkbox.parents('li').find('.media-item')).removeClass('selected'); } var fieldset = $('#edit-options'); if (!$('input[type=checkbox]:checked').size()) { fieldset.slideUp('fast'); } else { fieldset.slideDown('fast');
$('li.media-item :checkbox', '.media-display-thumbnails').each(function () { var checkbox = $(this); if (checkbox.is(':checked')) { $(checkbox.parents('li.media-item')).addClass('selected'); } checkbox.bind('change.media', function () { if (checkbox.is(':checked')) { $(che...
that.locate("warning").hide();
cspace.util.hideMessage(that.dom);
that.locate("requestReset").click(function(e){ that.locate("warning").hide(); showResetRequestForm(that.dom); });
list.keypress(function (event) { if (keyCode(event) === $.ui.keyCode.ESCAPE) { list.hide(); }
rows.mouseover(function (event) { rows.removeClass(that.options.styles.selecting); $(event.currentTarget).addClass(that.options.styles.selecting);
list.keypress(function (event) { if (keyCode(event) === $.ui.keyCode.ESCAPE) { list.hide(); } });
$('div.slideoutcontentscontents').empty();
$('#mapdiv').mousedown(function(evt) { setxy(evt); if(evt.preventDefault){ evt.preventDefault(); } if(juststarted==1){ killmenu(); juststarted = 0; } killmenu(); removetooltips(); $('div.slideoutcontents').hide('fast'); $('div.slideoutcontentscontents').empty(); document....
searchUrlBuilder: function (recordType, query) { return "../../main/webapp/html/data/" + recordType + "/search/list.json";
searchUrlBuilder: function (searchModel) { return "../../main/webapp/html/data/" + searchModel.recordType + "/search/list.json";
searchTests.test("Search results: progress indication", function () { expect(14); var expectedModel; jQuery.ajax({ async: false, url: "../../main/webapp/html/data/loanin/search/list.json", dataType: "json", success: function (data) { ex...