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

Merging the Limesurvey 1.91+ branch of queXS in to the trunk

This commit is contained in:
azammitdcarf
2011-09-08 01:58:41 +00:00
parent dfa55a3b9e
commit eaa9578ab8
2312 changed files with 811461 additions and 597534 deletions

View File

@@ -0,0 +1,59 @@
// $Id: surveysettings.js 9714 2011-01-25 17:52:16Z shnoulle $
$(document).ready(function(){
$("#template").change(templatechange);
$("#template").keyup(templatechange);
$("#copysurveyform").submit(copysurvey);
});
function templatechange()
{
standardtemplates=['quexs','basic','bluengrey','business_grey','citronade','clear_logo','default','eirenicon','limespired','mint_idea','sherpa','vallendar'];
if (in_array(this.value,standardtemplates))
{
$("#preview").attr('src',standardtemplaterooturl+'/'+this.value+'/preview.png');
}
else
{
$("#preview").attr('src',templaterooturl+'/'+this.value+'/preview.png');
}
}
function copysurvey()
{
sMessage='';
if ($('#copysurveylist').val()=='')
{
sMessage = sMessage+sSelectASurveyMessage;
}
if ($('#copysurveyname').val()=='')
{
sMessage = sMessage+'\n\r'+sSelectASurveyName;
}
if (sMessage!='')
{
alert(sMessage);
return false;
}
}
function in_array (needle, haystack, argStrict) {
var key = '', strict = !!argStrict;
if (strict) {
for (key in haystack) {
if (haystack[key] === needle) {
return true;
}
}
} else {
for (key in haystack) {
if (haystack[key] == needle) {
return true;
}
}
}
return false;
}