Revize 1176
Přidáno uživatelem Ondřej Fibich před více než 13 roky(ů)
freenetis/branches/testing/application/views/voip/calls.php | ||
---|---|---|
return false;
|
||
}
|
||
|
||
function keyup(event)
|
||
{
|
||
var $input = $('#number');
|
||
var $calculate = $('#a_calculate');
|
||
$('#a_calculate img').unbind('click');
|
||
|
||
if (($input.val().length < 3) || !$input.val().match(/^\d+$/))
|
||
{
|
||
$input.css('border', '1px solid red');
|
||
$calculate.css('opacity', 0.5);
|
||
$calculate.css('cursor', 'default');
|
||
}
|
||
else
|
||
{
|
||
if (event.which == 13)
|
||
{
|
||
get_price();
|
||
}
|
||
else
|
||
{
|
||
$input.css('border', '1px solid #ccc');
|
||
$calculate.css('opacity', 1);
|
||
$calculate.css('cursor', 'pointer');
|
||
$('#a_calculate img').click(get_price);
|
||
}
|
||
}
|
||
}
|
||
|
||
$(document).ready(function ()
|
||
{
|
||
var $input = $('#number');
|
||
... | ... | |
return false;
|
||
});
|
||
|
||
$input.keyup(function (event)
|
||
{
|
||
$('#a_calculate img').unbind('click');
|
||
|
||
if (($input.val().length < 3) || !$input.val().match(/^\d+$/))
|
||
{
|
||
$input.css('border', '1px solid red');
|
||
$calculate.css('opacity', 0.5);
|
||
$calculate.css('cursor', 'default');
|
||
}
|
||
else
|
||
{
|
||
if (event.which == 13)
|
||
{
|
||
get_price();
|
||
}
|
||
else
|
||
{
|
||
$input.css('border', '1px solid #ccc');
|
||
$calculate.css('opacity', 1);
|
||
$calculate.css('cursor', 'pointer');
|
||
$('#a_calculate img').click(get_price);
|
||
}
|
||
}
|
||
});
|
||
$input.keyup(keyup);
|
||
$input.change(keyup);
|
||
});
|
||
|
||
|
freenetis/branches/testing/application/views/voip/show.php | ||
---|---|---|
return false;
|
||
}
|
||
|
||
function keyup(event)
|
||
{
|
||
var $input = $('#number');
|
||
var $calculate = $('#a_calculate');
|
||
$('#a_calculate img').unbind('click');
|
||
|
||
if (($input.val().length < 3) || !$input.val().match(/^\d+$/))
|
||
{
|
||
$input.css('border', '1px solid red');
|
||
$calculate.css('opacity', 0.5);
|
||
$calculate.css('cursor', 'default');
|
||
}
|
||
else
|
||
{
|
||
if (event.which == 13)
|
||
{
|
||
get_price();
|
||
}
|
||
else
|
||
{
|
||
$input.css('border', '1px solid #ccc');
|
||
$calculate.css('opacity', 1);
|
||
$calculate.css('cursor', 'pointer');
|
||
$('#a_calculate img').click(get_price);
|
||
}
|
||
}
|
||
}
|
||
|
||
$(document).ready(function ()
|
||
{
|
||
var $input = $('#number');
|
||
... | ... | |
return false;
|
||
});
|
||
|
||
$input.keyup(function (event)
|
||
{
|
||
$('#a_calculate img').unbind('click');
|
||
|
||
if (($input.val().length < 3) || !$input.val().match(/^\d+$/))
|
||
{
|
||
$input.css('border', '1px solid red');
|
||
$calculate.css('opacity', 0.5);
|
||
$calculate.css('cursor', 'default');
|
||
}
|
||
else
|
||
{
|
||
if (event.which == 13)
|
||
{
|
||
get_price();
|
||
}
|
||
else
|
||
{
|
||
$input.css('border', '1px solid #ccc');
|
||
$calculate.css('opacity', 1);
|
||
$calculate.css('cursor', 'pointer');
|
||
$('#a_calculate img').click(get_price);
|
||
}
|
||
}
|
||
});
|
||
$input.keyup(keyup);
|
||
$input.change(keyup);
|
||
});
|
||
|
||
|
Také k dispozici: Unified diff
Opravy:
- oprava vkladani cisla do pocitadla ceny pomoci napovidani prohlizece