mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-30 12:40:30 +00:00
34 lines
767 B
JavaScript
34 lines
767 B
JavaScript
/*
|
|
* jQuery Mobile Framework : "selectmenu" plugin
|
|
* Copyright (c) jQuery Project
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
* http://jquery.org/license
|
|
*/
|
|
|
|
(function( $, undefined ) {
|
|
|
|
/* add options to selectmenu pertaining to custom menus*/
|
|
$.mobile.selectmenu.prototype.options.menuPageTheme = "b";
|
|
$.mobile.selectmenu.prototype.options.overlayTheme = "a";
|
|
$.mobile.selectmenu.prototype.options.hidePlaceholderMenuItems = true;
|
|
$.mobile.selectmenu.prototype.options.closeText = "Close";
|
|
$.mobile.selectmenu.prototype.options.nativeMenu = true;
|
|
|
|
|
|
|
|
$( "select" ).live( "selectmenucreate", function() {
|
|
|
|
var select = $( this ),
|
|
selectmenu = select.data( "selectmenu" );
|
|
|
|
if ( !selectmenu.options.nativeMenu ) {
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})( jQuery );
|
|
|