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:
41
include/limesurvey/admin/scripts/emailtemplates.js
Normal file
41
include/limesurvey/admin/scripts/emailtemplates.js
Normal file
@@ -0,0 +1,41 @@
|
||||
// $Id: saved.js 9330 2010-10-24 22:23:56Z c_schmitz $
|
||||
|
||||
$(document).ready(function(){
|
||||
handle=$('.tabsinner').tabs(
|
||||
{
|
||||
show: loadHTMLEditor
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* This function loads each FCKeditor only when the tab is clicked and only if it is not already loaded
|
||||
*/
|
||||
function loadHTMLEditor(event, ui)
|
||||
{
|
||||
if (typeof ui.panel.selector != 'undefined')
|
||||
{
|
||||
sSelector=ui.panel.selector;
|
||||
}
|
||||
else
|
||||
{
|
||||
sSelector='#'+ui.panel.id;
|
||||
}
|
||||
if ($(sSelector+' iframe').size()==0)
|
||||
{
|
||||
sCKEditorInstanceName='oFCKeditor_'+$(sSelector+' textarea').attr('id').replace(/-/i, "_");
|
||||
eval("if (typeof "+sCKEditorInstanceName+" != 'undefined')"+sCKEditorInstanceName+".ReplaceTextarea();");
|
||||
}
|
||||
}
|
||||
|
||||
function fillin(tofield, fromfield)
|
||||
{
|
||||
if (confirm(sReplaceTextConfirmation))
|
||||
{
|
||||
if (document.getElementById(tofield).readOnly == false)
|
||||
{
|
||||
$('#'+tofield).val($('#'+fromfield).val());
|
||||
}
|
||||
updateCKeditor(tofield,$('#'+fromfield).val());
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user