Вход Регистрация
Файл: module-assets/admin/uniform/www/javascripts/multiple-themes.js
Строк: 32
<?php
/*global $, ich*/
$(function () {
    
'use strict';
    var 
ithemes;

    
// First, take care of the easy styling
    
$('.simple').uniform();

    
themes = [
        {
            
theme'agent',
            
name'Agent',
            
isDefaultfalse
        
},
        {
            
theme'aristo',
            
name'Aristo',
            
isDefaultfalse
        
},
        {
            
theme'default',
            
name'Default',
            
isDefaulttrue
        
},
        {
            
theme'jeans',
            
name'Jeans',
            
isDefaultfalse
        
}
    ];
    $(
'.examples').empty().append(ich.exampleTemplate(themestrue));

    
// Apply the non-default themes.
    // Just doing it this way as an example.
    
for (0themes.length+= 1) {
        if (!
themes[i].isDefault) {
            $(
'.example-' themes[i].theme).find('input, select').uniform({
                
wrapperClass"uniform-" themes[i].theme
            
});
        }
    }

    
// Now apply the default to everything.
    // Elements already uniformed won't be uniformed again.
    // This could just as eaily be done without a default.
    
$('input, select').uniform();
});
?>
Онлайн: 1
Реклама