mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
trim jqm
This commit is contained in:
parent
8199fe27ff
commit
c58b7f3469
5 changed files with 7 additions and 123 deletions
|
@ -614,7 +614,7 @@
|
||||||
<output id="imageOutput"></output>
|
<output id="imageOutput"></output>
|
||||||
</div>
|
</div>
|
||||||
<div id="fldUpload" style="display: none;">
|
<div id="fldUpload" style="display: none;">
|
||||||
<p data-role="fieldcontain">
|
<div>
|
||||||
<label for="selectImageType">${LabelImageType}</label>
|
<label for="selectImageType">${LabelImageType}</label>
|
||||||
<select id="selectImageType" name="selectImageType">
|
<select id="selectImageType" name="selectImageType">
|
||||||
<option value="Primary">${OptionPrimary}</option>
|
<option value="Primary">${OptionPrimary}</option>
|
||||||
|
@ -630,7 +630,7 @@
|
||||||
<option value="Screenshot">${OptionScreenshot}</option>
|
<option value="Screenshot">${OptionScreenshot}</option>
|
||||||
<option value="Thumb">${OptionThumb}</option>
|
<option value="Thumb">${OptionThumb}</option>
|
||||||
</select>
|
</select>
|
||||||
</p>
|
</div>
|
||||||
<button type="submit" data-icon="check" data-theme="b">${ButtonUpload}</button>
|
<button type="submit" data-icon="check" data-theme="b">${ButtonUpload}</button>
|
||||||
</div>
|
</div>
|
||||||
<a data-role="button" data-rel="back" data-icon="delete" onclick="Events.trigger($('#uploadImage').val('')[0], 'change');">${ButtonCancel}</a>
|
<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;
|
var id = "txtLookup" + idInfo.Key;
|
||||||
|
|
||||||
html += '<div data-role="fieldcontain">';
|
html += '<div>';
|
||||||
|
|
||||||
var idLabel = Globalize.translate('LabelDynamicExternalId').replace('{0}', idInfo.Name);
|
var idLabel = Globalize.translate('LabelDynamicExternalId').replace('{0}', idInfo.Name);
|
||||||
html += '<label for="' + id + '">' + idLabel + '</label>';
|
html += '<label for="' + id + '">' + idLabel + '</label>';
|
||||||
|
|
|
@ -34,8 +34,6 @@ var Dashboard = {
|
||||||
//$.mobile.popup.prototype.options.theme = "c";
|
//$.mobile.popup.prototype.options.theme = "c";
|
||||||
//$.mobile.popup.prototype.options.transition = "none";
|
//$.mobile.popup.prototype.options.transition = "none";
|
||||||
|
|
||||||
//$.mobile.keepNative = "textarea";
|
|
||||||
|
|
||||||
if ($.browser.mobile) {
|
if ($.browser.mobile) {
|
||||||
$.mobile.defaultPageTransition = "none";
|
$.mobile.defaultPageTransition = "none";
|
||||||
} else {
|
} else {
|
||||||
|
@ -65,7 +63,6 @@ var Dashboard = {
|
||||||
// These are not needed. Nulling them out can help reduce dom querying when pages are loaded
|
// These are not needed. Nulling them out can help reduce dom querying when pages are loaded
|
||||||
$.mobile.nojs = null;
|
$.mobile.nojs = null;
|
||||||
$.mobile.degradeInputsWithin = null;
|
$.mobile.degradeInputsWithin = null;
|
||||||
$.mobile.keepNative = ":jqmData(role='none')";
|
|
||||||
|
|
||||||
$.mobile.filterHtml = Dashboard.filterHtml;
|
$.mobile.filterHtml = Dashboard.filterHtml;
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(function ($, undefined) {
|
(function ($, undefined) {
|
||||||
|
|
||||||
$.widget("mobile.slider", $.extend({
|
$.widget("mobile.slider", $.extend({
|
||||||
initSelector: "input[type='range'], *[data-type='range'], *[data-role='slider']",
|
initSelector: "input[type='range']",
|
||||||
|
|
||||||
widgetEventPrefix: "slide",
|
widgetEventPrefix: "slide",
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,7 @@
|
||||||
hideUrlBar: true,
|
hideUrlBar: true,
|
||||||
|
|
||||||
// Keepnative Selector
|
// Keepnative Selector
|
||||||
keepNative: ":jqmData(role='none'), :jqmData(role='nojs')",
|
keepNative: "[data-role='none']",
|
||||||
|
|
||||||
// Deprecated in 1.4 remove in 1.5
|
// Deprecated in 1.4 remove in 1.5
|
||||||
// Class assigned to page currently in view, and during transitions
|
// Class assigned to page currently in view, and during transitions
|
||||||
|
@ -660,79 +660,6 @@ $.extend( $.expr[ ":" ], {
|
||||||
// deprecated
|
// deprecated
|
||||||
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
$.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 );
|
})( jQuery );
|
||||||
|
|
||||||
(function( $, window, undefined ) {
|
(function( $, window, undefined ) {
|
||||||
|
@ -787,31 +714,6 @@ $.ui.plugin = {
|
||||||
removeActiveLinkClass: function( forceRemoval ) {
|
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 ) {
|
enhanceable: function( elements ) {
|
||||||
return this.haveParents( elements, "enhance" );
|
return this.haveParents( elements, "enhance" );
|
||||||
},
|
},
|
||||||
|
@ -903,12 +805,7 @@ $.ui.plugin = {
|
||||||
|
|
||||||
// Run buttonmarkup
|
// Run buttonmarkup
|
||||||
if ( $.fn.buttonMarkup ) {
|
if ( $.fn.buttonMarkup ) {
|
||||||
$(thisElem.querySelectorAll($.fn.buttonMarkup.initSelector)).not(keepNative).jqmEnhanceable().buttonMarkup();
|
$(thisElem.querySelectorAll($.fn.buttonMarkup.initSelector)).jqmEnhanceable().buttonMarkup();
|
||||||
}
|
|
||||||
|
|
||||||
// Add classes for fieldContain
|
|
||||||
if ( $.fn.fieldcontain ) {
|
|
||||||
$(thisElem.querySelectorAll("*[data-role='fieldcontain']")).not(keepNative).jqmEnhanceable().fieldcontain();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enhance widgets
|
// Enhance widgets
|
||||||
|
@ -1692,7 +1589,7 @@ $.fn.buttonMarkup.defaults = {
|
||||||
};
|
};
|
||||||
|
|
||||||
$.extend( $.fn.buttonMarkup, {
|
$.extend( $.fn.buttonMarkup, {
|
||||||
initSelector: "a[data-role='button'], button"
|
initSelector: "a[data-role='button'], button:not([data-role='none'])"
|
||||||
});
|
});
|
||||||
|
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
@ -2411,16 +2308,6 @@ $.widget( "mobile.page", {
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
|
||||||
|
|
||||||
(function( $, undefined ) {
|
|
||||||
|
|
||||||
// Deprecated in 1.4
|
|
||||||
$.fn.fieldcontain = function(/* options */) {
|
|
||||||
return this.addClass( "ui-field-contain" );
|
|
||||||
};
|
|
||||||
|
|
||||||
})( jQuery );
|
|
||||||
|
|
||||||
|
|
||||||
(function( $, undefined ) {
|
(function( $, undefined ) {
|
||||||
var path, $base, dialogHashKey = "&ui-state=dialog";
|
var path, $base, dialogHashKey = "&ui-state=dialog";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue