fixed a minor problem of posting the same values multiple times for wrong usage of form_hidden()

This commit is contained in:
hyung-hwan 2015-04-27 06:52:41 +00:00
parent 12bee69139
commit aaa1dd3548
4 changed files with 15 additions and 15 deletions

View File

@ -259,7 +259,6 @@ $(function () {
$('#code_search_is_regex').button(); $('#code_search_is_regex').button();
$('.code_search_option').tooltip(); $('.code_search_option').tooltip();
//$('#code_search_wildcard').text($('#code_search_wildcard_pattern').val());
$('#code_search_wildcard').text($('input[name=search_wildcard_pattern]').val()); $('#code_search_wildcard').text($('input[name=search_wildcard_pattern]').val());
$('#code_search_wildcard').editable({ $('#code_search_wildcard').editable({
@ -267,7 +266,6 @@ $(function () {
title: '<?php print $this->lang->line('CODE_SEARCH_WILDCARD') ?>', title: '<?php print $this->lang->line('CODE_SEARCH_WILDCARD') ?>',
placement: 'bottom', placement: 'bottom',
success: function(response, newValue) { success: function(response, newValue) {
//$('#code_search_wildcard_pattern').val(newValue);
$('input[name=search_wildcard_pattern]').val(newValue); $('input[name=search_wildcard_pattern]').val(newValue);
} }
}); });
@ -353,8 +351,8 @@ $this->load->view (
if (CODEPOT_SIGNIN_FOR_CODE_SEARCH === FALSE || (isset($login['id']) && $login['id'] != '')) if (CODEPOT_SIGNIN_FOR_CODE_SEARCH === FALSE || (isset($login['id']) && $login['id'] != ''))
{ {
print form_hidden('search_folder', set_value('search_folder', $file['fullpath']), 'id="code_folder_search_folder"'); print form_hidden('search_folder', set_value('search_folder', $file['fullpath']));
print form_hidden('search_revision', set_value('search_revision', $revision), 'id="code_folder_search_revision"'); print form_hidden('search_revision', set_value('search_revision', $revision));
print '<i id="code_search_string_icon" class="fa"></i> '; print '<i id="code_search_string_icon" class="fa"></i> ';
print form_input(array( print form_input(array(
@ -425,8 +423,8 @@ $this->load->view (
array('class'=>'code_search_option', 'id'=>'code_search_is_regex_label') array('class'=>'code_search_option', 'id'=>'code_search_is_regex_label')
); );
printf ('<a id="code_search_wildcard" href="#"></a>'); print '<a id="code_search_wildcard" href="#"></a>';
print form_hidden('search_wildcard_pattern', set_value('search_wildcard_pattern', $wildcard_pattern), 'id="code_search_wildcard_pattern"'); print form_hidden('search_wildcard_pattern', set_value('search_wildcard_pattern', $wildcard_pattern));
print ' '; print ' ';
//print form_submit('search_submit', $this->lang->line('Search'), 'id="code_search_submit"'); //print form_submit('search_submit', $this->lang->line('Search'), 'id="code_search_submit"');

View File

@ -51,7 +51,6 @@ $(function() {
$('#code_search_is_regex').button(); $('#code_search_is_regex').button();
$('.code_search_option').tooltip(); $('.code_search_option').tooltip();
//$('#code_search_wildcard').text($('#code_search_wildcard_pattern').text());
$('#code_search_wildcard').text($('input[name=search_wildcard_pattern]').val()); $('#code_search_wildcard').text($('input[name=search_wildcard_pattern]').val());
$('#code_search_wildcard').editable({ $('#code_search_wildcard').editable({
@ -59,7 +58,6 @@ $(function() {
title: '<?php print $this->lang->line('CODE_SEARCH_WILDCARD') ?>', title: '<?php print $this->lang->line('CODE_SEARCH_WILDCARD') ?>',
placement: 'bottom', placement: 'bottom',
success: function(response, newValue) { success: function(response, newValue) {
//$('#code_search_wildcard_pattern').val(newValue);
$('input[name=search_wildcard_pattern]').val(newValue); $('input[name=search_wildcard_pattern]').val(newValue);
} }
}); });
@ -155,8 +153,8 @@ $this->load->view (
<div class="infostrip" id="code_search_mainarea_infostrip"> <div class="infostrip" id="code_search_mainarea_infostrip">
<?php <?php
print form_open("code/search/{$project->id}/", 'id="code_search_form"'); print form_open("code/search/{$project->id}/", 'id="code_search_form"');
print form_hidden ('search_folder', set_value('search_folder', $file['fullpath']), 'id="code_search_search_folder"'); print form_hidden ('search_folder', set_value('search_folder', $file['fullpath']));
print form_hidden ('search_revision', set_value('search_revision', $revision), 'id="code_search_search_revision"'); print form_hidden ('search_revision', set_value('search_revision', $revision));
print '<i id="code_search_string_icon" class="fa"></i> '; print '<i id="code_search_string_icon" class="fa"></i> ';
print form_input(array( print form_input(array(
@ -227,8 +225,8 @@ $this->load->view (
array('class'=>'code_search_option', 'id'=>'code_search_is_regex_label') array('class'=>'code_search_option', 'id'=>'code_search_is_regex_label')
); );
printf ('<a id="code_search_wildcard" href="#"></a>'); print '<a id="code_search_wildcard" href="#"></a>';
print form_hidden('search_wildcard_pattern', set_value('search_wildcard_pattern', $wildcard_pattern), 'id="code_search_wildcard_pattern"'); print form_hidden('search_wildcard_pattern', set_value('search_wildcard_pattern', $wildcard_pattern));
print ' '; print ' ';
printf ('<a id="code_search_submit" href="#">%s</a>', $this->lang->line('Search')); printf ('<a id="code_search_submit" href="#">%s</a>', $this->lang->line('Search'));

View File

@ -135,7 +135,7 @@ body {
.content .fit-width-result-table tr, .content .fit-width-result-table tr,
.content .full-width-result-table tr { .content .full-width-result-table tr {
vertical-align: top; vertical-align: text-top;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
@ -527,7 +527,7 @@ body {
} }
.content .mainarea table.wiki tr { .content .mainarea table.wiki tr {
vertical-align: top; vertical-align: text-top;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;

View File

@ -11,7 +11,7 @@
} }
#issue_home_mainarea_result_table tr { #issue_home_mainarea_result_table tr {
vertical-align: middle; vertical-align: text-top;
} }
#issue_home_mainarea_result_table tr.new td.status, #issue_home_mainarea_result_table tr.new td.status,
@ -62,6 +62,10 @@
width: 1px; width: 1px;
} }
#issue_home_mainarea_result_table td.summary {
white-space: normal;
}
#issue_home_mainarea_result_pages { #issue_home_mainarea_result_pages {
margin-top: 1em; margin-top: 1em;
text-align: center; text-align: center;