Revize 7dafd607
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/views/js/devices_add.php | ||
---|---|---|
// on change type update form to proper functionality
|
||
$('#device_type').change(function ()
|
||
{
|
||
var value = $(this).val();
|
||
var text = $(this).find('option:selected').text();
|
||
var value = $(this).val(),
|
||
text = (value) ? $(this).find('option:selected').text() : false;
|
||
|
||
// reload devices templates
|
||
$('#device_template_id').html('<option><?php echo __('Loading data, please wait') ?>...</option>');
|
||
... | ... | |
|
||
if (name_parts.length <= 2)
|
||
{
|
||
$('#device_name').val(name_parts[0] + ' ' + text);
|
||
$('#device_name').val(name_parts[0] + (text ? ' ' + text : ''));
|
||
}
|
||
|
||
// trigger change
|
Také k dispozici: Unified diff
Release 1.1.12