From 1fcfbcab7efcc184061b5594c0ce5ab974300906 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 5 Sep 2015 13:55:39 -0400 Subject: [PATCH] remove jqm button widget --- .../jquery.mobile.custom.js | 140 ------------------ 1 file changed, 140 deletions(-) diff --git a/dashboard-ui/thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.js b/dashboard-ui/thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.js index 500b288efd..ebd24fc04c 100644 --- a/dashboard-ui/thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.js +++ b/dashboard-ui/thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.js @@ -3991,9 +3991,6 @@ $.fn.fieldcontain = function(/* options */) { var newPageTitle = html.match(/]*>([^<]*)/) && RegExp.$1; if (newPageTitle) { - var temp = document.createElement('div'); - temp.innerHTML = newPageTitle; - newPageTitle = temp.innerText || $(temp).text(); page.jqmData("title", newPageTitle); } } @@ -5287,143 +5284,6 @@ $.widget( "mobile.controlgroup", $.extend( { (function( $, undefined ) { -$.widget( "mobile.button", { - - initSelector: "input[type='button'], input[type='submit'], input[type='reset']", - - options: { - theme: null, - icon: null, - iconpos: "left", - iconshadow: false, /* TODO: Deprecated in 1.4, remove in 1.5. */ - corners: true, - shadow: true, - inline: null, - mini: null, - wrapperClass: null, - enhanced: false - }, - - _create: function() { - - if ( this.element.is( ":disabled" ) ) { - this.options.disabled = true; - } - - if ( !this.options.enhanced ) { - this._enhance(); - } - - $.extend( this, { - wrapper: this.element.parent() - }); - - this._on( { - focus: function() { - this.widget().addClass( $.mobile.focusClass ); - }, - - blur: function() { - this.widget().removeClass( $.mobile.focusClass ); - } - }); - - this.refresh( true ); - }, - - _enhance: function() { - this.element.wrap( this._button() ); - }, - - _button: function() { - var options = this.options, - iconClasses = this._getIconClasses( this.options ); - - return $("
" + this.element.val() + "
" ); - }, - - widget: function() { - return this.wrapper; - }, - - _destroy: function() { - this.element.insertBefore( this.wrapper ); - this.wrapper.remove(); - }, - - _getIconClasses: function( options ) { - return ( options.icon ? ( "ui-icon-" + options.icon + - ( options.iconshadow ? " ui-shadow-icon" : "" ) + /* TODO: Deprecated in 1.4, remove in 1.5. */ - " ui-btn-icon-" + options.iconpos ) : "" ); - }, - - _setOptions: function( options ) { - var outer = this.widget(); - - if ( options.theme !== undefined ) { - outer - .removeClass( this.options.theme ) - .addClass( "ui-btn-" + options.theme ); - } - if ( options.corners !== undefined ) { - outer.toggleClass( "ui-corner-all", options.corners ); - } - if ( options.shadow !== undefined ) { - outer.toggleClass( "ui-shadow", options.shadow ); - } - if ( options.inline !== undefined ) { - outer.toggleClass( "ui-btn-inline", options.inline ); - } - if ( options.mini !== undefined ) { - outer.toggleClass( "ui-mini", options.mini ); - } - if ( options.disabled !== undefined ) { - this.element.prop( "disabled", options.disabled ); - outer.toggleClass( "ui-state-disabled", options.disabled ); - } - - if ( options.icon !== undefined || - options.iconshadow !== undefined || /* TODO: Deprecated in 1.4, remove in 1.5. */ - options.iconpos !== undefined ) { - outer - .removeClass( this._getIconClasses( this.options ) ) - .addClass( this._getIconClasses( - $.extend( {}, this.options, options ) ) ); - } - - this._super( options ); - }, - - refresh: function( create ) { - var originalElement, - isDisabled = this.element.prop( "disabled" ); - - if ( this.options.icon && this.options.iconpos === "notext" && this.element.attr( "title" ) ) { - this.element.attr( "title", this.element.val() ); - } - if ( !create ) { - originalElement = this.element.detach(); - $( this.wrapper ).text( this.element.val() ).append( originalElement ); - } - if ( this.options.disabled !== isDisabled ) { - this._setOptions({ disabled: isDisabled }); - } - } -}); - -})( jQuery ); - -(function( $, undefined ) { - $.mobile.behaviors.formReset = { _handleFormReset: function() { this._on( this.element.closest( "form" ), {