File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 592
592
*/
593
593
function _getTranslate ( options )
594
594
{
595
- var elements = options . split ( '.' ) ;
596
- if ( elements . length > 1 ) {
597
- var area = elements . shift ( ) ;
598
- var translations = jQuery . global . localize ( area ) ;
599
- if ( translations ) {
600
- return $ . getValueAt ( translations , elements ) ;
595
+ if ( $ . isFunction ( options . split ) )
596
+ {
597
+ var elements = options . split ( '.' ) ;
598
+ if ( elements . length > 1 )
599
+ {
600
+ var area = elements . shift ( ) ;
601
+ var translations = jQuery . global . localize ( area ) ;
602
+ if ( translations )
603
+ {
604
+ return $ . getValueAt ( translations , elements ) ;
605
+ }
601
606
}
602
607
}
603
608
return false ;
Original file line number Diff line number Diff line change 668
668
options : function ( options , type )
669
669
{
670
670
var scoper = $ ( this ) ;
671
- if ( type == "select" ) // Options for select elements
671
+ if ( type == "select" || type == "optgroup" ) // Options for select elements
672
672
{
673
673
// TODO optgroup
674
674
$ . each ( options , function ( value , content )
You can’t perform that action at this time.
0 commit comments