<STYLE TYPE='text/css'>
#loading.error {
display:none;
vertical-align:baseline;
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
z-index:1000;}
#loadingcontent{
position:fixed;
left:20%;
top:35%;
width:50%;
height:50%;}
#loadingspinner{
vertical-align:baseline;
width: 10%;
text-align: center;
font-size:larger;}
textarea { width: 100%; margin: 0; padding: 0; border-width: 1; }
.feedback-summary { width: 100%; margin: 0; padding: 0; border-width: 1; }
BODY, input, select, table {
font-size: 12px;font-family: Arial,Helvetica,FreeSans,'sans - serif';}
#captcha{margin-bottom:0; font-weight: bold;
color: #d04437;
}
textarea#feedback-body-en {
resize: none;
}
#loading-en
{
display:none;
left: 16%;
position: absolute;
top: 30%;
width: 300%;
z-index: 1000;
}
#loadingcontent-en
{
height: 60%;
left: 50%;
top: 50%;
width: 60%;
}
#loadingspinner-en
{
top: 50%;
width: 30%;
}
#captcha{margin-bottom:0;padding-bottom:0}#captcha .captcha-container{clear:none;margin:5px 0 0 0;min-height:0;overflow:hidden;padding:0} #captcha .captcha-container .captcha-image{float:left}#captcha .captcha-container .captcha-trigger{float:left} #captcha .captcha-container .captcha-trigger .content{margin:0;overflow:hidden;text-align:left;text-indent:-999em;width:0} #captcha .captcha-container .icon-reload{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAMFBMVEX///9wcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHAAAAAM3lI2AAAADnRSTlMAESIzRFVmiJmqu8zd7qUOxRYAAAB3SURBVHjaY2axe9y7PGDtDyZGg+zYTvZDDExMpvWpnZb/GZgYPb5tYPhpDxRhnMvAwPCBgYmZITMAyGJgYTyz5wMDMmAEk+7GKUwQbooAM5hxR14HKKLAwMAc/x/I2CHA4PVzH1AqqECgq+wzkLEj3GtqPyfcHAB0GR2Spl8/YwAAAABJRU5ErkJggg==")}
</STYLE>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<link<div relid="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.4/jquery.datetimepicker.css"> <br/> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.4/build/jquery.datetimepicker.full.js'></script>
<link rel="stylesheet" type="text/css" href="http://aui-cdn.atlassian.com/aui-adg/5.4.3/css/aui.css"> <br/> <div id="loading">
<div id="loadingcontent">
<span id='loadingspinner' class='aui-icon aui-icon-wait'>Loading...</span>
</div>
</div>
<div id='feedback-main-div' style='font-size: 12px; font-family: Arial,Helvetica,FreeSans,sans-serif'>
<div id='feedback-error'></div>
<form class='aui' enctype='multipart/form-data' id='feedback-form' name='feedback-form' target='feedback-response' method='post' action='https://jira.teamlead.ru/plugins/servlet/feedback/create'loading-en">
<div id="loadingcontent-en">
<span id='loadingspinner-en' class='aui-icon aui-icon-wait'>Loading...</span>
</div>
</div>
<div id='feedback-main-div-en' style='font-size: 14px; font-family: Arial,Helvetica,FreeSans,sans-serif'>
<div id='feedback-error-en' class='error'></div>
<form class="aui" enctype='multipart/form-data' id='feedback-form-en' name='feedback-form-en' target='feedback-response-en' method='post' action='https://jira.teamlead.ru/plugins/servlet/feedback/create'>
<input type='hidden' name='feedback-from-url' id='feedback-from-url-en' value=''/>
<input type='hidden' name='form-index' id='form-index-en' value='1'/>
<div>
<input type='hidden' name<select id='feedback-fromcustom-urltype' id='feedback-from-url' value=''/>
<div><select id='feedback-custom-type'data-placeholder="Issue type..." class='select' name='feedback-custom-type'>
<option value='' selected='selected >Issue type<'>Выберите тип обращения</option>
<option value='2'>Техническая консультация</option>
<option value='41'>Сбой>Покупка продуктов всейили системы<услуг</option>
<option value='3'>Ошибка в работе приложения</option>
<option value='24'>Техническая>Сбой всей консультация<системы</option>
<option value='15'>Покупка продуктов>Улучшение или услуг<идея</option>
<option value='96'>Покупка>Сотрудничество продуктов или услуг</option>
<option value='10'>Техническая консультация<с нами</option>
<option value='7'>Вопрос в бухгалтерию</option>
<option value='11'>Ошибка в работе приложения</option>
<option value='12'>Сбой всей системы</option>
<option value='13'>Улучшение или идея</option>
<option value='14'>Сотрудничество с нами</option>
<option value='15'>Вопрос в бухгалтерию</option>
<option value='6'>Сотрудничество с нами</option>
<option value='5'>Улучшение или Идея</option>
</select>
<select id='feedback-priority' class='select' name='feedback-priority'>
<option value='' selected >Priority</option>
<option value='1'>Blocker</option>
<option value='2'>Critical</option>
<option value='4'>Minor</option>
<option value='5'>Cosmetic</option>
</select>
</div>
<br> <div><input type='text' class='text long-field' id='feedback-summary</select>
<script>
AJS.$("#feedback-issue-type-en").auiSelect2();
</script>
</div>
<br>
<div>
<input class="text long-field-en" type='text' id='feedback-summary-en' name='feedback-summary' class='feedback-summary' placeholder='Тема обращения' value=''/></div>
<br> <div style='display:none;'><input type='text' id='feedback-language' name='feedback-language' class='feedback-language' placeholder='Выберите язык (en/ru)' value='ru'/></div>
<div><TEXTAREA class="textarea long-field" id='feedback-body-en' name='feedback-summarybody' classROWS='feedback-summary5' placeholder='Summary' value=''/></div>
<br> <div style='display:none;'><input type='text' class='text long-fieldТут можно указать подробности...'></TEXTAREA>
</div>
<br>
<div>
<input class="text" type='text' id='feedback-email-languageen' name='feedback-languageemail' classplaceholder='feedback-languageE-mail для ответа' placeholdersize='Выберите язык (en/ru)38' value='ru'/><>
</div>
<div><TEXTAREA id='feedback-body' class='textarea long-field
<br>
<div>
<input class="text" type='file' id='feedback-attachment-en' name='feedback-bodyattachment' ROWSsize='5' placeholder='You can specify the details ...'></TEXTAREA><38' />
</div>
<br> <div><select
<div align="left">
<input class="aui-button aui-button-primary" id='"send-feedback-btn-component'en" classtype='selectbutton' namevalue='feedback-component'>
<option value='' selected >Select the component</option>
<option value='11660'>Аутентификация и безопасность</option>
<option value='11670'>База данных</option>
<option value='11661'>Бизнес-процессы</option>
<option value='11672'>Веб-сервер</option>
<option value='11663'>Внешний вид и дизайн</option>
<option value='11668'>Документация</option>
<option value='11763'>Журналирование и логи</option>
<option value='11666'>Импорт и экспорт</option>
<option value='11669'>Интеграция</option>
<option value='11665'>Лицензирование</option>
<option value='10636'>Локализация</option>
<option value='12960'>Отчеты</option>
<option value='11664'>Плагины</option>
<option value='11960'>Платформа</option>
<option value='11677'>Поиск</option>
<option value='12460'>Производительность</option>
<option value='11675'>Резервное копирование</option>
<option value='13260'>Скрипты и сценарии</option>
<option value='11676'>Службы и сервисы</option>
<option value='11662'>Справочники</option>
<option value='11673'>Хостинг</option>
<option value='11674'>Электронная почта и уведомления</option>
</select>
</div>
<br>
<input type='text' class='text long-field' id='feedback-email' name='feedback-email' placeholder='E-mail' size='38' value=''/>
<br>
<br> <input type='file' id='feedback-attachment' name='feedback-attachment' size='38' />
<br> <div align="right">
<input type='button' class='aui-button' value=' Ask ' onclick='addFeedback()'/>
</div>
</form></div>
<div id='feedback-back' class='aui' style='display: none'><input type='button' class='aui-button' onclick="jQuery('#feedback-main-div').show();jQuery('#feedback-response').hide();jQuery('#feedback-back').hide();" value='Back'/></div><iframe id='feedback-response' name='feedback-response' frameborder='no' style='display: none' width='500' height='250'></iframe><script type='text/javascript'>
JIRACaptcha = { setup: function() { jQuery("#captcha").delegate("span.captcha-reload", "click", function (e) { JIRACaptcha.refresh(); e.preventDefault(); }); }, refresh: function() { var img = jQuery(".captcha-image", "#captcha .captcha-container"), src = img.attr("src"); if (src.indexOf("__r") >= 0) { src = src.replace(/__r=([^&]+)/, "__r=" + Math.random()); } else { src = src.indexOf('?') >= 0 ? (src + "&__r=" + Math.random()) : (src + "?__r=" + Math.random()); } img.attr("src", src); jQuery("#captcha .captcha-response").focus(); } }; jQuery(window).load(function()
{
jQuery('.datetimepicker').each(function() {
jQuery(this).datetimepicker({
timepicker:false,
format:'d.m.Y'
});
});
jQuery(JIRACaptcha.setup);
jQuery('#feedback-main-div').show();
jQuery('#feedback-new-issue-div').hide();
jQuery('#feedback-response').hide();
jQuery('#feedback-new-issue-button').click(function ()
{
jQuery('#feedback-form')[0].reset();
jQuery('#feedback-main-div').show();
jQuery('#feedback-new-issue-div').hide();
jQuery('#feedback-response').hide();
});
});
function addFeedback() {
var message = '';
var summary = jQuery('#feedback-summary').val();
var email = jQuery('#feedback-email').val();
if (summary == '' || email == '')
{
if (summary == '')
{
message = message + '<div>Enter the summary</div>';
}
if (email == '')
{
message = message + '<div>Enter E-mail</div>';
}
jQuery('#feedback-error').html(message);
return false;
}
if ( document.getElementById('feedback-attachment').files.length > 0 )
{
var attachSize = document.getElementById('feedback-attachment').files[0].size; if ( attachSize > 1000000 * 10 )
{
message = message + '<div>Attachment size exceeds the allowable limit</div>';
jQuery('#feedback-error').html(message);
return false;
}
}
jQuery('#feedback-error').html('');
jQuery('#feedback-main-div').hide();
jQuery('#loading').fadeIn();
window.top.$('#feedback-response').attr('src','about:blank'); jQuery('#feedback-response').show();
jQuery('#feedback-back').show();
jQuery('#feedback-from-url').val(location.href);
jQuery('#feedback-form').submit();
jQuery('#feedback-response').on("load", function() {
jQuery('#feedback-new-issue-div').show();
jQuery('#loading').fadeOut();
});
return false;
}
</script> Отправить ' onclick='addFeedbackEn()'/>
</div>
</form>
</div>
<div id="feedback-back-en" class="aui" style="display: none">
<input type="button" class="aui-button" onclick="jQuery('#feedback-main-div-en').show();jQuery('#feedback-response-en').hide();jQuery('#feedback-back-en').hide(); jQuery('.captcha-reload').click();" value="Back"/>
</div>
<iframe id='feedback-response-en' name='feedback-response-en' frameborder='no' style='display: none;' width='500' height='250'></iframe>
<p id="personal-data-area"><span style="color: rgb(128,130,132);">Нажимая кнопку "Отправить", Вы соглашаетесь на <span style="color: rgb(128,205,234);"><a href="/display/RU/Data+agreement+with+clients"><span style="color: rgb(128,205,234);">условия по обработке персональных данных </span></a></span></span></p>
<script type='text/javascript'>
JIRACaptcha = {
setup: function () {
jQuery("#captcha").delegate("span.captcha-reload", "click", function (e) {
JIRACaptcha.refresh();
e.preventDefault();
});
}, refresh: function () {
var img = jQuery(".captcha-image", "#captcha .captcha-container"), src = img.attr("src");
if (src.indexOf("__r") >= 0) {
src = src.replace(/__r=([^&]+)/, "__r=" + Math.random());
} else {
src = src.indexOf('?') >= 0 ? (src + "&__r=" + Math.random()) : (src + "?__r=" + Math.random());
}
img.attr("src", src);
jQuery("#captcha .captcha-response").focus();
}
};
jQuery(window).load(function()
{
jQuery(JIRACaptcha.setup);
jQuery('#feedback-main-div-en').show();
jQuery('#feedback-new-issue-div-en').hide();
jQuery('#feedback-response-en').hide();
jQuery('#feedback-new-issue-button-en').click(function ()
{
jQuery('.captcha-reload').click();
jQuery('#feedback-main-div-en').show();
jQuery('#feedback-new-issue-div-en').hide();
jQuery('#feedback-response-en').hide();
});
window.addEventListener('message', function(event) {
console.log("get event");
console.log(event.data);
if (event.data.command == 'hideFeedbackForm') {
console.log("hideFeedbackForm");
jQuery("#feedback-form-en").hide();
jQuery("#personal-data-area").hide();
}
});
});
function addFeedbackEn() {
if ( document.getElementById('feedback-attachment-en').files.length > 0 )
{
var attachSize = document.getElementById('feedback-attachment-en').files[0].size;
if ( attachSize > 1000000 * 10 )
{ var message = '<div>Attachment size exceeds the allowable limit</div>'; jQuery('#feedback-error-en').html(message); return false; }}
var summary = jQuery('#feedback-summary-en').val();
var email = jQuery('#feedback-email-en').val();
var customType = jQuery('#feedback-custom-type').val();
if (summary == '' || email == '' || (!customType || customType == ''))
{
var message = '';
if (summary == '')
{
message = message + '<div>Enter the Summary please</div>';
}
if (email == '')
{
message = message + '<div>Enter the E-mail please</div>';
}
if (customType == '')
{
message = message + '<div>Please choose the question type</div>';
}
jQuery('#feedback-error-en').html(message);
return false;
}
jQuery('#feedback-error-en').html('');
//jQuery('#feedback-main-div-en').hide();
//jQuery('#feedback-back-en').show();
jQuery('#send-feedback-btn-en').hide();
jQuery('#loading-en').fadeIn();
jQuery('#feedback-response-en').show();
jQuery('#feedback-from-url-en').val(location.href);
jQuery('#feedback-form-en').submit();
jQuery('#feedback-response-en').on("load", function() {
jQuery('#feedback-new-issue-div-en').show();
jQuery('#loading-en').fadeOut();
});
return false;
}
</script> |