rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { if ('undefined' != typeof node.parentNode && null != node.parentNode) node.parentNode.removeChild(node); return;
if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { if ('undefined' != typeof node.parentNode && null != node.parentNode) node.parentNode.removeChild(node); return; } this._removeChildNodes(node, breakEventsOpen); if (b.isIE && 'undefined' != typeof node.outerHTML) { node.outerHTML = '';...
_removeNode: function(node, breakEventsOpen) { if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { //recursive descension only needed for old ie versions //all newer browsers cleanup the garbage just fine without it //thank you ...
this._removeChildNodes(node, breakEventsOpen); if (b.isIE && 'undefined' != typeof node.outerHTML) { node.outerHTML = ''; } else { if ('undefined' != typeof node.parentNode && null != node.parentNode) node.parentNode.removeChild(node); } if (!b.isIEMobile) { delete node; } },
_removeNode: function(node, breakEventsOpen) { if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { //recursive descension only needed for old ie versions //all newer browsers cleanup the garbage just fine without it //thank you ...
if (b.isIE && 'undefined' != typeof node.outerHTML)
if (b.isIE && 'undefined' != typeof node.outerHTML) {
_removeNode: function(node, breakEventsOpen) { if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { //recursive descension only needed for old ie versions //all newer browsers cleanup the garbage just fine without it //thank you ...
else {
} else {
_removeNode: function(node, breakEventsOpen) { if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { //recursive descension only needed for old ie versions //all newer browsers cleanup the garbage just fine without it //thank you ...
delete node;
if (!b.isIEMobile) { delete node; }
_removeNode: function(node, breakEventsOpen) { if (!node) return; var b = this._RT.browser; if (!b.isIE || b.isIE >= 8) { //recursive descension only needed for old ie versions //all newer browsers cleanup the garbage just fine without it //thank you ...
if (!(i % rowSize)) { row = $('<div></div>') .addClass('nmk-colorswatch-row') .appendTo(swatch); }
_render: function() { var row, rowSize = this.options.rowSize, swatch = this.swatch.empty(), self = this; $.each(this.options.colors, function(i, color) { if (!(i % rowSize)) { row = $('<div></div>') .addClass('nmk-colorswatch-row') .appendTo(swatch); } $('<div></div>') .addClass('nmk-co...
.click(function() { self.value(color); if (self.isInput) { self.hide(); } }) .appendTo(row);
.data('colorswatch', color) .appendTo(swatch);
_render: function() { var row, rowSize = this.options.rowSize, swatch = this.swatch.empty(), self = this; $.each(this.options.colors, function(i, color) { if (!(i % rowSize)) { row = $('<div></div>') .addClass('nmk-colorswatch-row') .appendTo(swatch); } $('<div></div>') .addClass('nmk-co...
$("<div></div>") .addClass("ui-helper-clearfix") .appendTo(swatch);
_render: function() { var row, rowSize = this.options.rowSize, swatch = this.swatch.empty(), self = this; $.each(this.options.colors, function(i, color) { if (!(i % rowSize)) { row = $('<div></div>') .addClass('nmk-colorswatch-row') .appendTo(swatch); } $('<div></div>') .addClass('nmk-co...
.append( "<a>" + item.label + "</a>" )
.append( $( "<a></a>" ).text( item.label ) )
_renderItem: function( ul, item) { return $( "<li></li>" ) .data( "item.autocomplete", item ) .append( "<a>" + item.label + "</a>" ) .appendTo( ul ); },
bodyParent.replaceChild(newBody, oldBody);
_replaceBody : function(request, context, newData /*varargs*/) { var parser = new (this._RT.getGlobalConfig("updateParser", myfaces._impl._util._HtmlStripper))(); var oldBody = document.getElementsByTagName("body")[0]; var newBody = document.createElement("body"); var placeHolder = docum...
placeHolder.id = "myfaces_bodyplaceholder";
myfaces._impl.xhrCore._AjaxResponse.prototype._replaceBody = function(request, context, newData) { var parser = myfaces.ajax._impl = new (myfaces._impl._util._Utils.getGlobalConfig("updateParser", myfaces._impl._util._HtmlStripper))(); var oldBody = document.getElementsByTagName("body")[0]; var...
doc = this._Lang.parseXML(newData.replace(/<!\-\-[\s\n]*<!\-\-/g,"<!--").replace(/\/\/-->[\s\n]\/\/-->/g," } if(this._Lang.isXMLParseError(doc)) {
_replaceBody : function(request, context, newData) { var parser = new (myfaces._impl.core._Runtime.getGlobalConfig("updateParser", myfaces._impl._util._HtmlStripper))(); var oldBody = document.getElementsByTagName("body")[0]; var newBody = document.createElement("body"); var placeHolder ...
var doc = this._Lang.parseXML(newData);
var doc = (arguments.length > 3)? arguments[4]: this._Lang.parseXML(newData);
_replaceBody : function(request, context, newData) { var parser = new (myfaces._impl.core._Runtime.getGlobalConfig("updateParser", myfaces._impl._util._HtmlStripper))(); var oldBody = document.getElementsByTagName("body")[0]; var newBody = document.createElement("body"); var placeHolder ...
this._Impl.sendError(request, context, _Impl.MALFORMEDXML, _Impl.MALFORMEDXML, "Error in PPR Insert, before id or after id must be present");
_Impl.sendError(request, context, _Impl.MALFORMEDXML, _Impl.MALFORMEDXML, "Error in PPR Insert, before id or after id must be present");
_replaceHead: function(request, context, newData) { var doc = this._Lang.parseXML(newData); var newHead = null; if(this._Lang.isXMLParseError(doc)) { //the standard xml parser failed we retry with the stripper var parser = new (myfaces._impl.core._Runtime.getGlobalConfig("...
return;
return null;
_replaceHead: function(request, context, newData) { var _Impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core.Impl); var doc = this._Lang.parseXML(newData); var newHead = null; if(this._Lang.isXMLParseError(doc)) { doc = this._Lang.parseXML(newD...
return doc;
_replaceHead: function(request, context, newData) { var _Impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core.Impl); var doc = this._Lang.parseXML(newData); var newHead = null; if(this._Lang.isXMLParseError(doc)) { doc = this._Lang.parseXML(newD...
( multipleIcons ? "s" : "" ) );
( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );
_resetButton: function() { if ( this.type === "input" ) { if ( this.options.label ) { this.element.val( this.options.label ); } return; } var buttonElement = this.buttonElement.removeClass( typeClasses ), buttonText = $( "<span></span>" ) .addClass( "ui-button-text" ) .html( this.options.label ) ...
.removeClass( "ui-button-text-icons ui-button-text-icon" );
.removeClass( "ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary" );
_resetButton: function() { if ( this.type === "input" ) { if ( this.options.label ) { this.element.val( this.options.label ); } return; } var buttonElement = this.buttonElement.removeClass( typeClasses ), buttonText = $( "<span></span>" ) .addClass( "ui-button-text" ) .html( this.options.label ) ...
_completeInterval = setInterval(function() { _checkComplete(); }, 100);
if (!_error) { _completeInterval = setInterval(function() { _checkComplete(); }, 100); }
function _resetCompleteIntervalTest() { clearInterval(_completeInterval); _completeInterval = setInterval(function() { _checkComplete(); }, 100); }
_model.plugins.object.display.resize(width, height);
function _resize(width, height) { var plugins = [].concat(_model.plugins.order); plugins.reverse(); _zIndex = plugins.length + 2; if (!_model.fullscreen) { _width = width; _height = height; _model.plugins.object.display.resize(width, height); _css(_box, { top: 0, bottom: 0, left: 0, ...
function _resize(arg1, arg2) {
function _resize(width, height) {
function _resize(arg1, arg2) { try { _model.getMedia().resize(arg1, arg2); return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_ERROR, err); } return false; }
_model.getMedia().resize(arg1, arg2);
_model.width = width; _model.height = height; _view.resize(width, height);
function _resize(arg1, arg2) { try { _model.getMedia().resize(arg1, arg2); return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_ERROR, err); } return false; }
_resizeMedia();
function _resize(width, height) { if (_wrapper.style.display == "none") { return; } var plugins = [].concat(_model.plugins.order); plugins.reverse(); _zIndex = plugins.length + 2; if (!_model.fullscreen) { _model.width = width; _model.height = height; _width = width; _height = height; _c...
_resizeMedia();
function _resize(width, height) { if (_wrapper.style.display == "none") { return; } var plugins = [].concat(_model.plugins.order); plugins.reverse(); _zIndex = plugins.length + 2; if (!_model.fullscreen) { _model.width = width; _model.height = height; _width = width; _height = height; _c...
if (_elements.timeSliderCapRight !== null) {
if (_elements.timeSliderCapRight !== undefined) {
function _resizeBar() { var controlbarcss = { width: _width }; var elementcss = {}; if (_settings.position.toUpperCase() == jwplayer.html5.view.positions.OVER || _api.jwGetFullscreen()) { controlbarcss.left = _settings.margin; controlbarcss.width -= 2 * _settings.margin; controlbarcss.top = _heigh...
function _resizeBar(event) { var lft = _settings.left; var top = _settings.top; var wid = _settings.width; var hei = _domelement.height; var controlbarcss = {}; if (_settings.position == "over") { lft += 1 * _settings.margin; top -= 1 * _settings.margin + hei; wid -= 2 * _settings.margin;
function _resizeBar() { var controlbarcss = { width: _width }; var elementcss = {}; if (_settings.position.toUpperCase() == jwplayer.html5.view.positions.OVER || _fullscreen) { controlbarcss.left = _settings.margin; controlbarcss.width -= 2 * _settings.margin; controlbarcss.top = _height - api.skin.getSkinElement("con...
function _resizeBar(event) { var lft = _settings.left; var top = _settings.top; var wid = _settings.width; var hei = _domelement.height; var controlbarcss = {}; if (_settings.position == "over") { lft += 1 * _settings.margin; top -= 1 * _settings.margin + hei; wid -= 2 * _settings.margin; } i...
if (_settings.fullscreen) { lft = _settings.margin; top = window.height - _settings.margin - hei; wid = window.width - 2 * _settings.margin; controlbarcss.z_index = 99; } else { controlbarcss.z_index = 97;
elementcss.left = api.skin.getSkinElement("controlbar", "capLeft").width; elementcss.width = controlbarcss.width - api.skin.getSkinElement("controlbar", "capLeft").width - api.skin.getSkinElement("controlbar", "capRight").width; var timeSliderLeft = api.skin.getSkinElement("controlbar", "timeSliderCapLeft") === undefi...
function _resizeBar(event) { var lft = _settings.left; var top = _settings.top; var wid = _settings.width; var hei = _domelement.height; var controlbarcss = {}; if (_settings.position == "over") { lft += 1 * _settings.margin; top -= 1 * _settings.margin + hei; wid -= 2 * _settings.margin; } i...
controlbarcss.left = lft; controlbarcss.top = top; controlbarcss.width = wid; _css(document.getElementById(_domelement.id + "_timeSliderRail"), { width: (wid - _settings.leftmargin - _settings.rightmargin) }); _css(_domelement, controlbarcss);
function _resizeBar(event) { var lft = _settings.left; var top = _settings.top; var wid = _settings.width; var hei = _domelement.height; var controlbarcss = {}; if (_settings.position == "over") { lft += 1 * _settings.margin; top -= 1 * _settings.margin + hei; wid -= 2 * _settings.margin; } i...
console.log(style.width, style.height);
function _resizeComponents(componentResizer, plugins, sizeToBox) { var failed = []; for (var pluginIndex in plugins) { var pluginName = plugins[pluginIndex]; if (_model.plugins.object[pluginName].getDisplayElement !== undefined && _model.plugins.config[pluginName].position.toUpperCase() !== jwplayer.html5.v...
console.log(style.width, style.height);
function _resizeComponents(componentResizer, plugins, sizeToBox) { var failed = []; for (var pluginIndex in plugins) { var pluginName = plugins[pluginIndex]; if (_model.plugins.object[pluginName].getDisplayElement !== undefined && _model.plugins.config[pluginName].position.toUpperCase() !== jwplayer.html5.v...
setTimeout(function() { _resizeMedia(); }, 100);
function _resizeMedia() { _box.style.position = "absolute"; _model.getMedia().getDisplayElement().style.position = "absolute"; if (_model.getMedia().getDisplayElement().videoWidth == 0 || _model.getMedia().getDisplayElement().videoHeight == 0) { setTimeout(function() { _resizeMedia(); }, 100); retu...
jwplayer.utils.stretch(_api.jwGetStretching(), _model.getMedia().getDisplayElement(), parseDimension(_box.style.width), parseDimension(_box.style.height), _model.getMedia().getDisplayElement().videoWidth, _model.getMedia().getDisplayElement().videoHeight);
var iwidth, iheight; if (_box.style.width.toString().lastIndexOf("%") > -1 || _box.style.width.toString().lastIndexOf("%") > -1) { var rect = _box.getBoundingClientRect(); iwidth = Math.abs(rect.left) + Math.abs(rect.right); iheight = Math.abs(rect.top) + Math.abs(rect.bottom); } else { iwidth = parseDimension(_box.sty...
function _resizeMedia() { _box.style.position = "absolute"; _model.getMedia().getDisplayElement().style.position = "absolute"; if (_model.getMedia().getDisplayElement().videoWidth == 0 || _model.getMedia().getDisplayElement().videoHeight == 0) { setTimeout(function() { _resizeMedia(); }, 100); retu...
width: getNumber(_box.style.width), height: getNumber(_box.style.height), top: getNumber(_box.style.top), left: getNumber(_box.style.left)
width: parseDimension(_box.style.width), height: parseDimension(_box.style.height), top: parseDimension(_box.style.top), left: parseDimension(_box.style.left)
function _resizeMedia() { //TODO: [ticket:1104] _box.style.position = "absolute"; var style = { position: "absolute", width: getNumber(_box.style.width), height: getNumber(_box.style.height), top: getNumber(_box.style.top), left: getNumber(_box.style.left) }; _css(_model.getMedia().getDisplay...
var style = { position: "absolute", width: parseDimension(_box.style.width), height: parseDimension(_box.style.height), top: parseDimension(_box.style.top), left: parseDimension(_box.style.left) }; _css(_model.getMedia().getDisplayElement(), style);
_model.getMedia().getDisplayElement().style.position = "absolute"; if (_model.getMedia().getDisplayElement().videoWidth == 0 || _model.getMedia().getDisplayElement().videoHeight == 0) { setTimeout(function() { _resizeMedia(); }, 100); return; } jwplayer.utils.stretch(_api.jwGetStretching(), _model.getMedia().getDisplay...
function _resizeMedia() { //TODO: [ticket:1104] _box.style.position = "absolute"; var style = { position: "absolute", width: parseDimension(_box.style.width), height: parseDimension(_box.style.height), top: parseDimension(_box.style.top), left: parseDimension(_box.style.left) }; _css(_model.g...
this._suggest( content );
_response: function( content ) { if ( content.length ) { content = this._normalize( content ); this._trigger( "open" ); this._suggest( content ); } else { this.close(); } this.element.removeClass( "ui-autocomplete-loading" ); },
if ( content && content.length ) {
if ( !this.options.disabled && content && content.length ) {
_response: function( content ) { if ( content && content.length ) { content = this._normalize( content ); this._suggest( content ); this._trigger( "open" ); } else { this.close(); } this.element.removeClass( "ui-autocomplete-loading" ); },
this.element.removeClass( "ui-autocomplete-loading" );
this.pending--; if ( !this.pending ) { this.element.removeClass( "ui-autocomplete-loading" ); }
_response: function( content ) { if ( !this.options.disabled && content && content.length ) { content = this._normalize( content ); this._suggest( content ); this._trigger( "open" ); } else { this.close(); } this.element.removeClass( "ui-autocomplete-loading" ); },
date = (minDate && date < minDate ? minDate : date); date = (maxDate && date > maxDate ? maxDate : date); return date;
var newDate = (minDate && date < minDate ? minDate : date); newDate = (maxDate && newDate > maxDate ? maxDate : newDate); return newDate;
_restrictMinMax: function(inst, date) { var minDate = this._getMinMaxDate(inst, 'min'); var maxDate = this._getMinMaxDate(inst, 'max'); date = (minDate && date < minDate ? minDate : date); date = (maxDate && date > maxDate ? maxDate : date); return date; },
this.pending++;
_search: function( value ) { this.element.addClass( "ui-autocomplete-loading" ); this.source( { term: value }, this.response ); },
inst.input[0].focus();
inst.input.focus();
_selectDate: function(id, dateStr) { var target = $(id); var inst = this._getInst(target[0]); dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); if (inst.input) inst.input.val(dateStr); this._updateAlternate(inst); var onSelect = this._get(inst, 'onSelect'); if (onSelect) onSelect.apply((inst.i...
0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left, ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHe...
(o.containment == 'document' ? 0 : $(window).scrollLeft()) - this.offset.relative.left - this.offset.parent.left, (o.containment == 'document' ? 0 : $(window).scrollTop()) - this.offset.relative.top - this.offset.parent.top, (o.containment == 'document' ? 0 : $(window).scrollLeft()) + $(o.containment == 'document' ? do...
_setContainment: function() { var o = this.options; if(o.containment == 'parent') o.containment = this.helper[0].parentNode; if(o.containment == 'document' || o.containment == 'window') this.containment = [ 0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.paren...
_setContainment: function() { var o = this.options; if(o.containment == 'parent') o.containment = this.helper[0].parentNode; if(o.containment == 'document' || o.containment == 'window') this.containment = [ 0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, ...
(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...
_setContainment: function() { var o = this.options; if(o.containment == 'parent') o.containment = this.helper[0].parentNode; if(o.containment == 'document' || o.containment == 'window') this.containment = [ 0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.paren...
date = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = date.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth(); inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear();
var newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = newDate.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth(); inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
_setDate: function(inst, date, noChange) { var clear = !(date); var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; date = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = date.getDate(); inst.drawMonth = inst.selectedMonth = inst.cur...
_setDate: function(inst, date) {
_setDate: function(inst, date, noChange) {
_setDate: function(inst, date) { var clear = !(date); var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; date = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = date.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth ...
if (origMonth != inst.selectedMonth || origYear != inst.selectedYear)
if ((origMonth != inst.selectedMonth || origYear != inst.selectedYear) && !noChange)
_setDate: function(inst, date) { var clear = !(date); var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; date = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = date.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth ...
var clear = !(date);
if ( !date ) { inst.input.val( "" ); return; }
_setDate: function(inst, date, noChange) { var clear = !(date); var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; var newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = newDate.getDate(); inst.drawMonth = inst.selectedMonth ...
inst.input.val(clear ? '' : this._formatDate(inst));
inst.input.val(this._formatDate(inst));
_setDate: function(inst, date, noChange) { var clear = !(date); var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; var newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = newDate.getDate(); inst.drawMonth = inst.selectedMonth ...
inst.lastVal = inst.input ? inst.input.val() : null; var dates = inst.lastVal;
var dates = inst.lastVal = inst.input ? inst.input.val() : null;
_setDateFromField: function(inst, noDefault) { var dateFormat = this._get(inst, 'dateFormat'); inst.lastVal = inst.input ? inst.input.val() : null; var dates = inst.lastVal; var date, defaultDate; date = defaultDate = this._getDefaultDate(inst); var settings = this._getFormatConfig(inst); try { date = this.pa...
_setDateFromField: function(inst) {
_setDateFromField: function(inst, noDefault) {
_setDateFromField: function(inst) { var dateFormat = this._get(inst, 'dateFormat'); inst.lastVal = inst.input ? inst.input.val() : null; var dates = inst.lastVal; var date, defaultDate; date = defaultDate = this._getDefaultDate(inst); var settings = this._getFormatConfig(inst); try { date = this.parseDate(dat...
date = defaultDate;
dates = (noDefault ? '' : dates);
_setDateFromField: function(inst) { var dateFormat = this._get(inst, 'dateFormat'); inst.lastVal = inst.input ? inst.input.val() : null; var dates = inst.lastVal; var date, defaultDate; date = defaultDate = this._getDefaultDate(inst); var settings = this._getFormatConfig(inst); try { date = this.parseDate(dat...
_display.display_icon.onmouseover = undefined; _display.display_icon.onmouseout = undefined;
_display.display_icon.onmouseover = null; _display.display_icon.onmouseout = null;
function _setDisplayIcon(newIcon) { _show(_display.display_iconBackground); _display.display_icon.style.backgroundImage = (["url(", _api.skin.getSkinElement("display", newIcon).src, ")"]).join(""); _css(_display.display_icon, { display: "block", width: _api.skin.getSkinElement("display", newIcon).width, ...
if (_error) { return; }
function _setDisplayIcon(newIcon) { _show(_display.display_iconBackground); _display.display_icon.style.backgroundImage = (["url(", _api.skin.getSkinElement("display", newIcon).src, ")"]).join(""); _css(_display.display_icon, { display: "block", width: _api.skin.getSkinElement("display", newIcon).width, ...
function _setFullscreen(arg) {
function _setFullscreen(state) {
function _setFullscreen(arg) { try { _model.getMedia().fullscreen(arg); return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_ERROR, err); } return false; }
_model.getMedia().fullscreen(arg);
_model.getMedia().fullscreen(state);
function _setFullscreen(arg) { try { _model.getMedia().fullscreen(arg); return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_ERROR, err); } return false; }
function _setMute(arg) {
function _setMute(state) {
function _setMute(arg) { try { _model.getMedia().mute(arg); return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_ERROR, err); } return false; }
_model.getMedia().mute(arg);
_model.getMedia().mute(state);
function _setMute(arg) { try { _model.getMedia().mute(arg); return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_ERROR, err); } return false; }
_setOption: function( key, val ) { calls.push({ key: key, val: val });
_setOption: function( key, value ) { actions.push( "option" + key );
_setOption: function( key, val ) { calls.push({ key: key, val: val }); }
for (i = 0; i < valsLength; i++) { this._change(null, i); }
_setOption: function(key, value) { $.Widget.prototype._setOption.apply(this, arguments); switch (key) { case 'disabled': if (value) { this.handles.filter(".ui-state-focus").blur(); this.handles.removeClass("ui-state-hover"); this.handles.attr("disabled", "disabled"); this.element.addClass("ui-di...
if ( key == "source" ) {
if ( key === "source" ) {
_setOption: function( key ) { $.Widget.prototype._setOption.apply( this, arguments ); if ( key == "source" ) { this._initSource(); } },
same( key, "disabled", "_setOption called with disabled option" ); same( val, false, "disabled set to false" );
calls.push({ key: key, val: val });
_setOption: function( key, val ) { same( key, "disabled", "_setOption called with disabled option" ); same( val, false, "disabled set to false" ); }
this._trigger( "change" ); if ( this._value() === this.max ) {
if ( this._value() === this.options.max ) {
_setOption: function( key, value ) { if ( key === "value" ) { this.options.value = value; this._refreshValue(); this._trigger( "change" ); if ( this._value() === this.max ) { this._trigger( "complete" ); } } $.Widget.prototype._setOption.apply( this, arguments ); },
this.widget() [ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" );
this.widget().toggleClass( "ui-sortable-disabled", !!value );
_setOption: function(key, value){ if ( key === "disabled" ) { this.options[ key ] = value; this.widget() [ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" ); } else { // Don't call widget base _setOption for disable as it adds ui-state-disabled class $.Widget.prototype._setOption.apply(this, ...
case "beforeclose": key = "beforeClose"; break;
_setOption: function(key, value){ var self = this, uiDialog = self.uiDialog, isResizable = uiDialog.is(':data(resizable)'), resize = false; switch (key) { case "buttons": self._createButtons(value); break; case "closeText": // convert whatever was passed in to a string, for text() to not throw u...
_setOption: function( key ) {
_setOption: function( key, value ) {
_setOption: function( key ) { $.Widget.prototype._setOption.apply( this, arguments ); if ( key === "source" ) { this._initSource(); } },
if ( key === "appendTo" ) { this.menu.element.appendTo( $( value || "body", this.element.ownerDocument )[0] ) }
_setOption: function( key ) { $.Widget.prototype._setOption.apply( this, arguments ); if ( key === "source" ) { this._initSource(); } },
this.namespace + "-state-disabled" )
"ui-state-disabled" )
_setOption: function( key, value ) { this.options[ key ] = value; if ( key === "disabled" ) { this.widget() [ value ? "addClass" : "removeClass"]( this.widgetBaseClass + "-disabled" + " " + this.namespace + "-state-disabled" ) .attr( "aria-disabled", value ); } return this; },
case "beforeclose": key = "beforeClose"; break;
_setOption: function(key, value){ var self = this, uiDialog = self.uiDialog; switch (key) { //handling of deprecated beforeclose (vs beforeClose) option //Ticket #4669 http://dev.jqueryui.com/ticket/4669 //TODO: remove in 1.9pre case "beforeclose": key = "beforeClose"; break; case "buttons": sel...
$.Widget.prototype._setOption.apply(self, arguments);
$.Widget.prototype._setOption.apply(this, arguments);
_setOption: function(key, value){ if ( key === "disabled" ) { this.options[ key ] = value; this.widget() [ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" ); } else { // Don't call widget base _setOption for disable as it adds ui-state-disabled class $.Widget.prototype._setOption.apply(self, ...
[ value ? "addClass" : "removeClass"]( this.widgetBaseClass + "-disabled" + " " + "ui-state-disabled" )
.toggleClass( this.widgetBaseClass + "-disabled ui-state-disabled", !!value )
_setOption: function( key, value ) { this.options[ key ] = value; if ( key === "disabled" ) { this.widget() [ value ? "addClass" : "removeClass"]( this.widgetBaseClass + "-disabled" + " " + "ui-state-disabled" ) .attr( "aria-disabled", value ); } return this; },
if ( key === "disabled" && value && this.xhr ) { this.xhr.abort(); }
_setOption: function( key, value ) { $.Widget.prototype._setOption.apply( this, arguments ); if ( key === "source" ) { this._initSource(); } if ( key === "appendTo" ) { this.menu.element.appendTo( $( value || "body", this.element[0].ownerDocument )[0] ) } },
if (key == "disabled") { this.headers.add(this.headers.next()) [ value ? "addClass" : "removeClass"]( "ui-accordion-disabled ui-state-disabled" ); }
_setOption: function(key, value) { $.Widget.prototype._setOption.apply(this, arguments); if (key == "active") { this.activate(value); } if (key == "icons") { this._destroyIcons(); if (value) { this._createIcons(); } } },
isResizable = uiDialog.is(':data(resizable)'),
isDraggable = uiDialog.is( ":data(draggable)" ), isResizable = uiDialog.is( ":data(resizable)" ),
_setOption: function(key, value){ var self = this, uiDialog = self.uiDialog, isResizable = uiDialog.is(':data(resizable)'), resize = false; switch (key) { //handling of deprecated beforeclose (vs beforeClose) option //Ticket #4669 http://dev.jqueryui.com/ticket/4669 //TODO: remove in 1.9pre case "befor...
if (value) {
if ( isDraggable && !value ) { uiDialog.draggable( "destroy" ); } if ( !isDraggable && value ) {
_setOption: function(key, value){ var self = this, uiDialog = self.uiDialog, isResizable = uiDialog.is(':data(resizable)'), resize = false; switch (key) { //handling of deprecated beforeclose (vs beforeClose) option //Ticket #4669 http://dev.jqueryui.com/ticket/4669 //TODO: remove in 1.9pre case "befor...
resize = true;
_setOption: function(key, value){ var self = this, uiDialog = self.uiDialog, isResizable = uiDialog.is(':data(resizable)'), resize = false; switch (key) { //handling of deprecated beforeclose (vs beforeClose) option //Ticket #4669 http://dev.jqueryui.com/ticket/4669 //TODO: remove in 1.9pre case "bef...
this.menu.element.appendTo( $( value || "body", this.element.ownerDocument )[0] )
this.menu.element.appendTo( $( value || "body", this.element[0].ownerDocument )[0] )
_setOption: function( key, value ) { $.Widget.prototype._setOption.apply( this, arguments ); if ( key === "source" ) { this._initSource(); } if ( key === "appendTo" ) { this.menu.element.appendTo( $( value || "body", this.element.ownerDocument )[0] ) } },
_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE);
if (_model.position >= _model.duration && (_model.position || _model.duration)) { _sendComplete = true; }
function _setState(newstate) { if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (_state != newstate) { var oldstate = _state; _model.state = newstate; _state = newstate; if (newstate == jwplayer.api.events.state.IDLE) { _clearInterval(); _eventDispatcher.sendEvent(jwplayer....
if (_sendComplete) { _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE); }
function _setState(newstate) { if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (_state != newstate) { var oldstate = _state; _model.state = newstate; _state = newstate; if (newstate == jwplayer.api.events.state.IDLE) { _clearInterval(); _eventDispatcher.sendEvent(jwplayer....
if (_container.style.display != 'none') {
if (_container.style.display != 'none' && !_model.config.chromeless) {
function _setState(newstate) { if (_error) { return; } if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (newstate == jwplayer.api.events.state.PAUSED && _state == jwplayer.api.events.state.IDLE) { return; } if (_state != newstate) { var oldstate = _state; _model.state = new...
if (newstate == jwplayer.api.events.state.PLAYING && _state == jwplayer.api.events.state.IDLE) { _bufferFull = true; _setState(jwplayer.api.events.state.BUFFERING); _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER, { bufferPercent: _model.buffer }); _eventDispatcher.sendEvent(jwplayer.api.events.JWP...
function _setState(newstate) { if (_error) { return; } if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (newstate == jwplayer.api.events.state.PAUSED && _state == jwplayer.api.events.state.IDLE) { return; } if (_state != newstate) { var oldstate = _state; _model.state = new...
if (oldstate == jwplayer.api.events.state.IDLE && newstate == jwplayer.api.events.state.BUFFERING) { _container.volume = _model.volume / 100; _container.muted = _model.mute; }
function _setState(newstate) { if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (_state != newstate) { var oldstate = _state; _model.state = newstate; _state = newstate; if (oldstate == jwplayer.api.events.state.IDLE && newstate == jwplayer.api.events.state.BUFFERING) { _contai...
clearInterval(_interval); _interval = null;
_clearInterval();
function _setState(newstate) { if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (_state != newstate) { var oldstate = _state; _model.state = newstate; _state = newstate; if (oldstate == jwplayer.api.events.state.IDLE && newstate == jwplayer.api.events.state.BUFFERING) { _contai...
if (_error) { return; }
function _setState(newstate) { if (_stopped) { newstate = jwplayer.api.events.state.IDLE; } if (_state != newstate) { var oldstate = _state; _model.state = newstate; _state = newstate; var _sendComplete = false; if (newstate == jwplayer.api.events.state.IDLE) { _clearInterval(); if (_m...
_ready = true;
function _setup() { _buildBase(); _buildElements(); _addListeners(); _init(); _wrapper.style.opacity = _settings.idlehide ? 0 : 1; }
_display.display_text = createElement("div", "display_text"); _display.display.appendChild(_display.display_text);
function _setupDisplay() { _display.display = createElement("div", "display"); _display.display_image = createElement("div", "display_image"); _display.display_icon = createElement("div", "display_icon"); _display.display_iconBackground = createElement("div", "display_iconBackground"); _display.display.appe...
_hide(_display.display_image)
_hide(_display.display_image);
function _setupDisplay() { _display.display = createElement("div", "display"); _display.display_text = createElement("div", "display_text"); _display.display.appendChild(_display.display_text); _display.display_image = createElement("img", "display_image"); _display.display_image.onerror = function(evt) { ...
_display.display_image.onload = _onImageLoad;
function _setupDisplay() { _display.display = createElement("div", "display"); _display.display_text = createElement("div", "display_text"); _display.display.appendChild(_display.display_text); _display.display_image = createElement("img", "display_image"); _display.display_image.onerror = function(evt) { ...
_display.display_icon = createElement("img", "display_icon"); _display.display_icon.src = api.skin.getSkinElement("display", "playIcon").src; _display.display_icon.alt = "Click to play video";
_display.display_icon = createElement("div", "display_icon");
function _setupDisplay() { _display.display = createElement("div", "display"); _display.display_image = createElement("div", "display_image"); _display.display_icon = createElement("img", "display_icon"); _display.display_icon.src = api.skin.getSkinElement("display", "playIcon").src; _display.display_icon.a...
_container.parentNode.insertBefore(_display.display, _container);
function _setupDisplay() { _display.display = createElement("div", "display"); _display.display_image = createElement("div", "display_image"); _display.display_icon = createElement("img", "display_icon"); _display.display_icon.src = api.skin.getSkinElement("display", "playIcon").src; _display.display_icon.a...
function _setVolume(arg) {
function _setVolume(volume) {
function _setVolume(arg) { try { switch (jwplayer.html5.utils.typeOf(arg)) { case "number": _model.getMedia().volume(arg); break; case "string": _model.getMedia().volume(parseInt(arg, 10)); break; } return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events...
switch (jwplayer.html5.utils.typeOf(arg)) {
switch (typeof(volume)) {
function _setVolume(arg) { try { switch (jwplayer.html5.utils.typeOf(arg)) { case "number": _model.getMedia().volume(arg); break; case "string": _model.getMedia().volume(parseInt(arg, 10)); break; } return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events...
_model.getMedia().volume(arg);
_model.getMedia().volume(volume);
function _setVolume(arg) { try { switch (jwplayer.html5.utils.typeOf(arg)) { case "number": _model.getMedia().volume(arg); break; case "string": _model.getMedia().volume(parseInt(arg, 10)); break; } return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events...
_model.getMedia().volume(parseInt(arg, 10));
_model.getMedia().volume(parseInt(volume, 10));
function _setVolume(arg) { try { switch (jwplayer.html5.utils.typeOf(arg)) { case "number": _model.getMedia().volume(arg); break; case "string": _model.getMedia().volume(parseInt(arg, 10)); break; } return true; } catch (err) { _eventDispatcher.sendEvent(jwplayer.api.events...
if (this.tooltip.is(":animated")) this.tooltip.stop().show().fadeTo("normal", this.opacity); else this.tooltip.is(':visible') ? this.tooltip.fadeTo("normal", this.opacity) : this.tooltip.fadeIn();
this.tooltip.stop(false, true).fadeIn();
_show: function(event, target, content) { if (!content) return; target.attr("title", ""); if (this.options.disabled) return; this.tooltipContent.html(content); this.tooltip.css({ top: 0, left: 0 }).show().position( $.extend({ of: target }, this.options.position )).hide(); this.tooltip.attr("...
_show: function(target, content) {
_show: function(event, target, content) {
_show: function(target, content) { if (!content) return; target.attr("title", ""); if (this.options.disabled) return; this.tooltipContent.html(content); this.tooltip.css({ top: 0, left: 0 }).position($.extend(this.options.position, { of: target })); this.tooltip.attr("aria-hidden", "false");...
this._trigger( "open" );
this._trigger( "open", event );
_show: function(target, content) { if (!content) return; target.attr("title", ""); if (this.options.disabled) return; this.tooltipContent.html(content); this.tooltip.css({ top: 0, left: 0 }).position($.extend(this.options.position, { of: target })); this.tooltip.attr("aria-hidden", "false");...
}).position($.extend(this.options.position, {
}).show().position($.extend(this.options.position, {
_show: function(event, target, content) { if (!content) return; target.attr("title", ""); if (this.options.disabled) return; this.tooltipContent.html(content); this.tooltip.css({ top: 0, left: 0 }).position($.extend(this.options.position, { of: target })); this.tooltip.attr("aria-hidden", "f...
}));
})).hide();
_show: function(event, target, content) { if (!content) return; target.attr("title", ""); if (this.options.disabled) return; this.tooltipContent.html(content); this.tooltip.css({ top: 0, left: 0 }).position($.extend(this.options.position, { of: target })); this.tooltip.attr("aria-hidden", "f...
inst._dialog = $(input).closest('.ui-dialog-content') .bind('dialogclose.datepicker', function() { $.datepicker._hideDatepicker(input); });
_showDatepicker: function(input) { input = input.target || input; if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger input = $('input', input.parentNode)[0]; if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here return; var inst = $.datep...
inst.lastVal = null;
_showDatepicker: function(input) { input = input.target || input; if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger input = $('input', input.parentNode)[0]; if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here return; var inst = $.datep...
if (inst.input[0].type != 'hidden')
if (inst.input.is(':visible') && !inst.input.is(':disabled'))
_showDatepicker: function(input) { input = input.target || input; if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger input = $('input', input.parentNode)[0]; if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here return; var inst = $.datep...