Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Livesearch
sizelarge
additionalnone
placeholderЯ ищу...
typepage

HTML
<STYLE TYPE='text/css'>
#loading
    {
    display:none;
vertical-align:baseline;
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
    height: 100%;
    left: 40%;
    position: absolute;
    top: 45%;
    width: 100%;
    z-index: 1000;
    }
  
    #loadingcontent
    {
position:fixed    height: 60%;
    left:20% 50%;
    top:35% 50%;
    width:50% 60%;
height:50%;}
#loadingspinner{
vertical-align:baseline;
width: 10%;
text-align: center;
font-size:larger;}     }
  
    #loadingspinner
    {
    top: 50%;
    width: 30%;
 }
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: 14px;font-family: Arial,Helvetica,FreeSans,'sans - serif';}
</STYLE>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> 

<div id="loading">
<div id="loadingcontent">
<img id="loadingspinner" src="http://www.teamlead.ru/download/attachments/25591816/loader.gif?api=v2" alt="Loading"/>
</div>
</div>
<div id='feedback-main-div' style='font-size: 14px; 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='http://jira.teamlead.ru/plugins/servlet/feedback/create'>

<input type='hidden' name='form-index' id='form-index' value='15'/>

<div>
<select class="select" id='feedback-issue-type' data-placeholder="Выберите тип запроса..." name='feedback-issue-type'>
<option value='10000'>Техническая консультация<>Консультация</option>
<option value='10001'>Покупка продуктов и сервисов</option>
<option value='14'>Идея</option>
<option value='10002'>Новая функция или настройка<>Изменение конфигурации</option>
<option value='10003'>Сбой функции или системы</option>
</select>
<script>
AJS.$("#feedback-issue-type").auiSelect2();
</script>
</div>
 <br>
<div>
<select class="select" id="feedback-component" data-placeholder="Выберите компонент..." name='feedback-component'>
<option value='18261'>Intranet</option>
<option value='18260'>JIRA</option>
<option value='18262'>Public website</option>
</select>
<script>
AJS.$("#feedback-component").auiSelect2();
</script>
</div>
 
<div>
<select id="feedback-fix-version" multiple data-placeholder="Выберите продукт..." name='feedback-fix-version'>
<option value='23621'>JIRA</option>
<option value='23622'>Confluence</option>
<option value='23623'>CRM for JIRA</option>
<option value='23624'>JIRA Service Desk</option>
</select>
<script>
AJS.$("#feedback-fix-version").auiSelect2();
</script>
</div>
 <br>
<div>
<input class="text long-field" type='text' id='feedback-summary' name='feedback-summary' class='feedback-summary' placeholder='Тема обращения' value=''/>
</div>
<br>
<div>
<TEXTAREA class="textarea long-field" id='feedback-body' name='feedback-body' ROWS='5' placeholder='Тут можно указать подробности...'><>
</TEXTAREA>
</div>
<br>

<div>
<input class="text" type='text' id='feedback-email' name='feedback-email' placeholder='E-mail для ответа' size='38' value=''/>
</div>
 
<div>
<input<label class="ffi" data-ffi-button-text="Browse">
<input type='"file'" id='"feedback-attachment'" name='"feedback-attachment">
</label>
<script>
AJS.$(function(){
    AJS.$('.ffi size='38' />input[type="file"]').fancyFileInput();
});
</script>
</div>
<br>
 
 <br>
<div>
<input class="aui-button aui-button-primary" type='button' value=' Отправить ' onclick='addFeedback()'/>
</div>
 
<br>
 
<div id="docs-progress-bar" class="aui-progress-indicator">
    <span class="aui-progress-indicator-value"></span>
</div>
<div class="aui-group">
    <button id="toggle-progress-button" class="aui-button">Toggle</button>
</div>
</form>
</div>
 
<iframe id='feedback-response' name='feedback-response' frameborder='no' style='display: none' width='450' height='200'>
</iframe>
 
<div id='feedback-new-issue-div'>
<input class="aui-button aui-button-primary" type='button' id='feedback-new-issue-button' value='Создать еще запрос'>
</div>
 
<script type='text/javascript'>
jQuery(window).load(function()
{
   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 summary = jQuery('#feedback-summary').val();
   var email = jQuery('#feedback-email').val();
   if (summary == '' || email == '')
   {
    var message = '';
    if (summary == '')
    {
     message = message + '<div>Введите<div><font size="3" color="red">Введите тему обращения</font></div>';
    }
    if (email == '')
    {
     message = message + '<div>Введите<div><font size="3" color="red">Введите E-mail для ответа</font></div>';
    }
    jQuery('#feedback-error').html(message);
    return false;
}
   jQuery('#feedback-error').html('');
   jQuery('#feedback-main-div').hide();
   jQuery('#loading').fadeIn();
   jQuery('#feedback-response').show();
   jQuery('#feedback-form').submit();
   jQuery('#feedback-response').on("load", function() {
   jQuery('#feedback-new-issue-div').show();
   jQuery('#loading').fadeOut();
}); 
   return false;
}
 
 
AJS.$("#toggle-progress-button").click(function(){
    if(AJS.$("#docs-progress-bar").attr("data-value")){
        AJS.progressBars.setIndeterminate("#docs-progress-bar");
    } else {
         AJS.progressBars.update("#docs-progress-bar" , 1);
    }
});
</script>