2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Merging the updated Limesurvey 1.92+ branch of queXS to trunk

This commit is contained in:
azammitdcarf
2012-11-21 04:04:39 +00:00
parent 153fc8ca0d
commit c569559964
856 changed files with 254260 additions and 819988 deletions

View File

@@ -1,60 +1,60 @@
function jquery_goodchars(e, goods)
{
var key, keychar;
key = e.which;
if (key == null) return true;
// get character
keychar = String.fromCharCode(key);
keychar = keychar.toLowerCase();
goods = goods.toLowerCase();
// check goodkeys
if (goods.indexOf(keychar) != -1)
return true;
// control keys
if ( key==null || key==0 || key==8 || key==9 || key==27 )
return true;
// else return false
return false;
}
$(document).ready(function(){
$('#languagetabs').tabs();
if ($(".assessmentlist tbody tr").size()>0)
{
$(".assessmentlist").tablesorter({sortList: [[0,0]] });
}
$('#radiototal,#radiogroup').change(
function()
{
if ($('#radiototal').attr('checked')==true)
{
$('#gid').attr('disabled','disabled');
}
else
{
if ($('#gid>option').length==0){
$('#radiototal').attr('checked',true);
alert (strnogroup);
}
else
{
$('#gid').attr('disabled',false);
}
}
}
)
$('#radiototal,#radiogroup').change();
$('.numbersonly').keypress(
function(e){
return jquery_goodchars(e,'1234567890-');
}
)
}
);
function jquery_goodchars(e, goods)
{
var key, keychar;
key = e.which;
if (key == null) return true;
// get character
keychar = String.fromCharCode(key);
keychar = keychar.toLowerCase();
goods = goods.toLowerCase();
// check goodkeys
if (goods.indexOf(keychar) != -1)
return true;
// control keys
if ( key==null || key==0 || key==8 || key==9 || key==27 )
return true;
// else return false
return false;
}
$(document).ready(function(){
$('#languagetabs').tabs();
if ($(".assessmentlist tbody tr").size()>0)
{
$(".assessmentlist").tablesorter({sortList: [[0,0]] });
}
$('#radiototal,#radiogroup').change(
function()
{
if ($('#radiototal').attr('checked')==true)
{
$('#gid').attr('disabled','disabled');
}
else
{
if ($('#gid>option').length==0){
$('#radiototal').attr('checked',true);
alert (strnogroup);
}
else
{
$('#gid').attr('disabled',false);
}
}
}
)
$('#radiototal,#radiogroup').change();
$('.numbersonly').keypress(
function(e){
return jquery_goodchars(e,'1234567890-');
}
)
}
);