From e3ad4a0979cc3586097033b1697c8e31b72ca769 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Sun, 16 Jun 2013 02:37:40 +0300 Subject: [PATCH 01/12] Select: Normalize capitalization of the word "ID" in variables. Now "Id" is used everywhere. --- js/widgets/forms/select.custom.js | 26 +++++++++++++------------- js/widgets/forms/select.js | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/js/widgets/forms/select.custom.js b/js/widgets/forms/select.custom.js index 71437b39bfb..5afd7836531 100644 --- a/js/widgets/forms/select.custom.js +++ b/js/widgets/forms/select.custom.js @@ -49,7 +49,7 @@ $.widget( "mobile.selectmenu", $.mobile.selectmenu, { }, build: function() { - var selectID, prefix, popupID, dialogID, label, thisPage, isMultiple, menuId, themeAttr, overlayThemeAttr, + var selectId, prefix, popupId, dialogId, label, thisPage, isMultiple, menuId, themeAttr, overlayThemeAttr, dividerThemeAttr, menuPage, listbox, list, header, headerTitle, menuPageContent, menuPageClose, headerClose, self; if ( this.options.nativeMenu ) { @@ -57,24 +57,24 @@ $.widget( "mobile.selectmenu", $.mobile.selectmenu, { } self = this; - selectID = this.selectID; - prefix = ( selectID ? selectID : ( ( $.mobile.ns || "" ) + "uuid-" + this.uuid ) ); - popupID = prefix + "-listbox"; - dialogID = prefix + "-dialog"; + selectId = this.selectId; + prefix = ( selectId ? selectId : ( ( $.mobile.ns || "" ) + "uuid-" + this.uuid ) ); + popupId = prefix + "-listbox"; + dialogId = prefix + "-dialog"; label = this.label; thisPage = this.element.closest( ".ui-page" ); isMultiple = this.element[ 0 ].multiple; - menuId = selectID + "-menu"; + menuId = selectId + "-menu"; themeAttr = this.options.theme ? ( " data-" + $.mobile.ns + "theme='" + this.options.theme + "'" ) : ""; overlayThemeAttr = this.options.overlayTheme ? ( " data-" + $.mobile.ns + "theme='" + this.options.overlayTheme + "'" ) : ""; dividerThemeAttr = ( this.options.dividerTheme && isMultiple ) ? ( " data-" + $.mobile.ns + "divider-theme='" + this.options.dividerTheme + "'" ) : ""; - menuPage = $( "
" + + menuPage = $( "
" + "
" + "
" + label.getEncodedText() + "
"+ "
"+ "
"+ "
" ); - listbox = $( "
" ).insertAfter( this.select ).popup({ theme: this.options.overlayTheme }); + listbox = $( "
" ).insertAfter( this.select ).popup({ theme: this.options.overlayTheme }); list = $( "