mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
trim jqm
This commit is contained in:
parent
8199fe27ff
commit
c58b7f3469
@ -614,7 +614,7 @@
|
||||
<output id="imageOutput"></output>
|
||||
</div>
|
||||
<div id="fldUpload" style="display: none;">
|
||||
<p data-role="fieldcontain">
|
||||
<div>
|
||||
<label for="selectImageType">${LabelImageType}</label>
|
||||
<select id="selectImageType" name="selectImageType">
|
||||
<option value="Primary">${OptionPrimary}</option>
|
||||
@ -630,7 +630,7 @@
|
||||
<option value="Screenshot">${OptionScreenshot}</option>
|
||||
<option value="Thumb">${OptionThumb}</option>
|
||||
</select>
|
||||
</p>
|
||||
</div>
|
||||
<button type="submit" data-icon="check" data-theme="b">${ButtonUpload}</button>
|
||||
</div>
|
||||
<a data-role="button" data-rel="back" data-icon="delete" onclick="Events.trigger($('#uploadImage').val('')[0], 'change');">${ButtonCancel}</a>
|
||||
|
@ -1046,7 +1046,7 @@
|
||||
|
||||
var id = "txtLookup" + idInfo.Key;
|
||||
|
||||
html += '<div data-role="fieldcontain">';
|
||||
html += '<div>';
|
||||
|
||||
var idLabel = Globalize.translate('LabelDynamicExternalId').replace('{0}', idInfo.Name);
|
||||
html += '<label for="' + id + '">' + idLabel + '</label>';
|
||||
|
@ -34,8 +34,6 @@ var Dashboard = {
|
||||
//$.mobile.popup.prototype.options.theme = "c";
|
||||
//$.mobile.popup.prototype.options.transition = "none";
|
||||
|
||||
//$.mobile.keepNative = "textarea";
|
||||
|
||||
if ($.browser.mobile) {
|
||||
$.mobile.defaultPageTransition = "none";
|
||||
} else {
|
||||
@ -65,7 +63,6 @@ var Dashboard = {
|
||||
// These are not needed. Nulling them out can help reduce dom querying when pages are loaded
|
||||
$.mobile.nojs = null;
|
||||
$.mobile.degradeInputsWithin = null;
|
||||
$.mobile.keepNative = ":jqmData(role='none')";
|
||||
|
||||
$.mobile.filterHtml = Dashboard.filterHtml;
|
||||
},
|
||||
|
@ -1,7 +1,7 @@
|
||||
(function ($, undefined) {
|
||||
|
||||
$.widget("mobile.slider", $.extend({
|
||||
initSelector: "input[type='range'], *[data-type='range'], *[data-role='slider']",
|
||||
initSelector: "input[type='range']",
|
||||
|
||||
widgetEventPrefix: "slide",
|
||||
|
||||
|
@ -331,7 +331,7 @@
|
||||
hideUrlBar: true,
|
||||
|
||||
// Keepnative Selector
|
||||
keepNative: ":jqmData(role='none'), :jqmData(role='nojs')",
|
||||
keepNative: "[data-role='none']",
|
||||
|
||||
// Deprecated in 1.4 remove in 1.5
|
||||
// Class assigned to page currently in view, and during transitions
|
||||
@ -660,79 +660,6 @@ $.extend( $.expr[ ":" ], {
|
||||
// deprecated
|
||||
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
||||
|
||||
$.support.selectstart = "onselectstart" in document.createElement( "div" );
|
||||
$.fn.extend({
|
||||
disableSelection: function() {
|
||||
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
||||
".ui-disableSelection", function( event ) {
|
||||
event.preventDefault();
|
||||
});
|
||||
},
|
||||
|
||||
enableSelection: function() {
|
||||
return this.unbind( ".ui-disableSelection" );
|
||||
},
|
||||
|
||||
zIndex: function( zIndex ) {
|
||||
if ( zIndex !== undefined ) {
|
||||
return this.css( "zIndex", zIndex );
|
||||
}
|
||||
|
||||
if ( this.length ) {
|
||||
var elem = $( this[ 0 ] ), position, value;
|
||||
while ( elem.length && elem[ 0 ] !== document ) {
|
||||
// Ignore z-index if position is set to a value where z-index is ignored by the browser
|
||||
// This makes behavior of this function consistent across browsers
|
||||
// WebKit always returns auto if the element is positioned
|
||||
position = elem.css( "position" );
|
||||
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
|
||||
// IE returns 0 when zIndex is not specified
|
||||
// other browsers return a string
|
||||
// we ignore the case of nested elements with an explicit value of 0
|
||||
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
|
||||
value = parseInt( elem.css( "zIndex" ), 10 );
|
||||
if ( !isNaN( value ) && value !== 0 ) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
elem = elem.parent();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
|
||||
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
||||
$.ui.plugin = {
|
||||
add: function( module, option, set ) {
|
||||
var i,
|
||||
proto = $.ui[ module ].prototype;
|
||||
for ( i in set ) {
|
||||
proto.plugins[ i ] = proto.plugins[ i ] || [];
|
||||
proto.plugins[ i ].push( [ option, set[ i ] ] );
|
||||
}
|
||||
},
|
||||
call: function( instance, name, args, allowDisconnected ) {
|
||||
var i,
|
||||
set = instance.plugins[ name ];
|
||||
|
||||
if ( !set ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for ( i = 0; i < set.length; i++ ) {
|
||||
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
||||
set[ i ][ 1 ].apply( instance.element, args );
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
})( jQuery );
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
@ -787,31 +714,6 @@ $.ui.plugin = {
|
||||
removeActiveLinkClass: function( forceRemoval ) {
|
||||
},
|
||||
|
||||
// DEPRECATED in 1.4
|
||||
// Find the closest parent with a theme class on it. Note that
|
||||
// we are not using $.fn.closest() on purpose here because this
|
||||
// method gets called quite a bit and we need it to be as fast
|
||||
// as possible.
|
||||
getInheritedTheme: function( el, defaultTheme ) {
|
||||
var e = el[ 0 ],
|
||||
ltr = "",
|
||||
re = /ui-(bar|body|overlay)-([a-z])\b/,
|
||||
c, m;
|
||||
while ( e ) {
|
||||
c = e.className || "";
|
||||
if ( c && ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
|
||||
// We found a parent with a theme class
|
||||
// on it so bail from this loop.
|
||||
break;
|
||||
}
|
||||
|
||||
e = e.parentNode;
|
||||
}
|
||||
// Return the theme letter we found, if none, return the
|
||||
// specified default.
|
||||
return ltr || defaultTheme || "a";
|
||||
},
|
||||
|
||||
enhanceable: function( elements ) {
|
||||
return this.haveParents( elements, "enhance" );
|
||||
},
|
||||
@ -903,12 +805,7 @@ $.ui.plugin = {
|
||||
|
||||
// Run buttonmarkup
|
||||
if ( $.fn.buttonMarkup ) {
|
||||
$(thisElem.querySelectorAll($.fn.buttonMarkup.initSelector)).not(keepNative).jqmEnhanceable().buttonMarkup();
|
||||
}
|
||||
|
||||
// Add classes for fieldContain
|
||||
if ( $.fn.fieldcontain ) {
|
||||
$(thisElem.querySelectorAll("*[data-role='fieldcontain']")).not(keepNative).jqmEnhanceable().fieldcontain();
|
||||
$(thisElem.querySelectorAll($.fn.buttonMarkup.initSelector)).jqmEnhanceable().buttonMarkup();
|
||||
}
|
||||
|
||||
// Enhance widgets
|
||||
@ -1692,7 +1589,7 @@ $.fn.buttonMarkup.defaults = {
|
||||
};
|
||||
|
||||
$.extend( $.fn.buttonMarkup, {
|
||||
initSelector: "a[data-role='button'], button"
|
||||
initSelector: "a[data-role='button'], button:not([data-role='none'])"
|
||||
});
|
||||
|
||||
})( jQuery );
|
||||
@ -2411,16 +2308,6 @@ $.widget( "mobile.page", {
|
||||
})( jQuery );
|
||||
|
||||
|
||||
(function( $, undefined ) {
|
||||
|
||||
// Deprecated in 1.4
|
||||
$.fn.fieldcontain = function(/* options */) {
|
||||
return this.addClass( "ui-field-contain" );
|
||||
};
|
||||
|
||||
})( jQuery );
|
||||
|
||||
|
||||
(function( $, undefined ) {
|
||||
var path, $base, dialogHashKey = "&ui-state=dialog";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user