mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
iconPos to iconpos.
This commit is contained in:
parent
f1f5102a23
commit
6a12dcc3be
6 changed files with 15 additions and 15 deletions
|
|
@ -24,7 +24,7 @@ $.fn.buttonMarkup = function( options ){
|
|||
return 'c';
|
||||
}
|
||||
})(),
|
||||
iconPos: el.attr('data-iconPos'),
|
||||
iconpos: el.attr('data-iconpos'),
|
||||
icon: el.attr('data-icon')
|
||||
}, $.fn.buttonMarkup.defaults, options),
|
||||
|
||||
|
|
@ -39,11 +39,11 @@ $.fn.buttonMarkup = function( options ){
|
|||
iconClass = "ui-icon " + o.icon;
|
||||
|
||||
if (o.shadow) { iconClass += " ui-icon-shadow" }
|
||||
o.iconPos = o.iconPos || 'left';
|
||||
o.iconpos = o.iconpos || 'left';
|
||||
}
|
||||
|
||||
if (o.iconPos){
|
||||
buttonClass += " ui-btn-icon-" + o.iconPos;
|
||||
if (o.iconpos){
|
||||
buttonClass += " ui-btn-icon-" + o.iconpos;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ $.fn.customCheckboxRadio = function(options){
|
|||
},options);
|
||||
|
||||
// get the associated label using the input's id
|
||||
var label = $('label[for='+input.attr('id')+']').buttonMarkup({iconPos: o.icon ? 'left' : '', shadow: false});
|
||||
var label = $('label[for='+input.attr('id')+']').buttonMarkup({iconpos: o.icon ? 'left' : '', shadow: false});
|
||||
|
||||
var icon = label.find('.ui-icon');
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ $.fn.customSelect = function(options){
|
|||
//create menu button
|
||||
var button = $('<a href="#">'+ $(this.options.item(this.selectedIndex)).text() +'</a>')
|
||||
.buttonMarkup({
|
||||
iconPos: 'right',
|
||||
iconpos: 'right',
|
||||
icon: 'arrow-d'
|
||||
})
|
||||
.attr({
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ $.fn.globalnav = function(settings){
|
|||
|
||||
var o = $.extend({
|
||||
moreText: 'More',
|
||||
iconPos: $(this).data('iconPos') || 'top',
|
||||
iconpos: $(this).data('iconpos') || 'top',
|
||||
transition: $(this).data('transition') || 'slideup'
|
||||
},settings);
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ $.fn.globalnav = function(settings){
|
|||
moreIcon = $globalnav.find('a[data-icon]').length ? 'arrow-r' : null;
|
||||
|
||||
if( moreIcon == null ){
|
||||
o.iconPos = null;
|
||||
o.iconpos = null;
|
||||
$globalnav.add( $globalnav.children(0) ).addClass('ui-globalnav-noicons');
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ $.fn.globalnav = function(settings){
|
|||
|
||||
$newPageContent
|
||||
.find('a')
|
||||
.buttonMarkup({shadow: false, corners: false, iconPos: o.iconPos});
|
||||
.buttonMarkup({shadow: false, corners: false, iconpos: o.iconpos});
|
||||
|
||||
$newPage.append( $newPageContent ).appendTo('body');
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ $.fn.globalnav = function(settings){
|
|||
.parent()
|
||||
.appendTo($globalnav);
|
||||
|
||||
$navToggle.buttonMarkup({corners: false, shadow:false, iconPos: o.iconPos, icon: moreIcon});
|
||||
$navToggle.buttonMarkup({corners: false, shadow:false, iconpos: o.iconpos, icon: moreIcon});
|
||||
|
||||
$globalnav.addClass('ui-globalnav-collapsed');
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ $.fn.globalnav = function(settings){
|
|||
|
||||
$globalnav
|
||||
.find('ul a')
|
||||
.buttonMarkup({corners: false, shadow:false, iconPos: o.iconPos})
|
||||
.buttonMarkup({corners: false, shadow:false, iconpos: o.iconpos})
|
||||
.bind('tap',function(){
|
||||
//NOTE: we'll need to find a way to highlight an active tab at load as well
|
||||
$globalnav.find('.ui-btn-active').removeClass('ui-btn-active');
|
||||
|
|
|
|||
|
|
@ -293,8 +293,8 @@
|
|||
/*temporary datepicker workaround */
|
||||
$el.find('input[type=date]').hide().after( $('<div />').datepicker() );
|
||||
$('.ui-datepicker-header').addClass('ui-body-c ui-corner-top').removeClass('ui-corner-all');
|
||||
$('.ui-datepicker-prev').buttonMarkup({iconPos: 'notext', icon: 'arrow-l', shadow: true, corners: true});
|
||||
$('.ui-datepicker-next').buttonMarkup({iconPos: 'notext', icon: 'arrow-r', shadow: true, corners: true});
|
||||
$('.ui-datepicker-prev').buttonMarkup({iconpos: 'notext', icon: 'arrow-l', shadow: true, corners: true});
|
||||
$('.ui-datepicker-next').buttonMarkup({iconpos: 'notext', icon: 'arrow-r', shadow: true, corners: true});
|
||||
$('.ui-datepicker-calendar thead').remove();
|
||||
$('.ui-datepicker-calendar .ui-btn-text span').attr('class','');
|
||||
$('.ui-datepicker-calendar td').addClass('ui-btn-up-c');
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ $.fn.listview = function( options ) {
|
|||
wrapperEls: "div",
|
||||
shadow: false,
|
||||
corners: false,
|
||||
iconPos: "right",
|
||||
iconpos: "right",
|
||||
icon: "arrow-r",
|
||||
theme: o.theme
|
||||
})
|
||||
|
|
@ -111,7 +111,7 @@ $.fn.listview = function( options ) {
|
|||
shadow: true,
|
||||
corners: true,
|
||||
theme: o.splitTheme,
|
||||
iconPos: "notext",
|
||||
iconpos: "notext",
|
||||
icon: "arrow-r"
|
||||
} ) );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue