mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
r448
И еще в паре мест переделка. Также требуется вставить на форме регистрации после тестов. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@448 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
2c0a8961db
commit
c315bc8cda
4 changed files with 11 additions and 9 deletions
|
@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 Beta';
|
$bb_cfg['tp_version'] = '2.5 Beta';
|
||||||
$bb_cfg['tp_release_state'] = 'R447';
|
$bb_cfg['tp_release_state'] = 'R448';
|
||||||
$bb_cfg['tp_release_date'] = '03-09-2012';
|
$bb_cfg['tp_release_date'] = '03-09-2012';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
|
|
|
@ -288,7 +288,7 @@ $(function(){
|
||||||
<legend>{L_TITLE_MATCH}</legend>
|
<legend>{L_TITLE_MATCH}</legend>
|
||||||
<div>
|
<div>
|
||||||
<p class="input">
|
<p class="input">
|
||||||
<input style="width: 95%;" class="post" type="text" size="50" maxlength="{TITLE_MATCH_MAX}" name="{TITLE_MATCH_NAME}" value="{TITLE_MATCH_VAL}" />
|
<input style="width: 95%;" class="post" type="text" size="50" maxlength="{TITLE_MATCH_MAX}" name="{TITLE_MATCH_NAME}" value="{TITLE_MATCH_VAL}" required />
|
||||||
</p>
|
</p>
|
||||||
<p class="chbox med">
|
<p class="chbox med">
|
||||||
{ALL_WORDS_CHBOX}
|
{ALL_WORDS_CHBOX}
|
||||||
|
|
|
@ -410,12 +410,12 @@ td.topic_id { cursor: pointer; }
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="nowrap" style="padding: 0px 4px 2px 4px;">
|
<td class="nowrap" style="padding: 0px 4px 2px 4px;">
|
||||||
<form action="{PAGE_URL}" method="post" onsubmit="var txt=$('#search-text').val(); return !(txt=='{L_TITLE_SEARCH_HINT}' || !txt);">
|
<form action="{PAGE_URL}" method="post">
|
||||||
<input id="search-text" type="text" name="nm"
|
<input id="search-text" type="text" name="nm"
|
||||||
<!-- IF TITLE_MATCH -->
|
<!-- IF TITLE_MATCH -->
|
||||||
value="{TITLE_MATCH}" <!-- IF FOUND_TOPICS -->class="found"<!-- ELSE -->class="error"<!-- ENDIF -->
|
value="{TITLE_MATCH}" required <!-- IF FOUND_TOPICS -->class="found"<!-- ELSE -->class="error"<!-- ENDIF -->
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
value="{L_TITLE_SEARCH_HINT}" class="hint"
|
placeholder="{L_TITLE_SEARCH_HINT}" required class="hint"
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
style="width: 150px;" />
|
style="width: 150px;" />
|
||||||
<input type="submit" class="bold" value="»" style="width: 30px;" />
|
<input type="submit" class="bold" value="»" style="width: 30px;" />
|
||||||
|
|
|
@ -90,11 +90,13 @@ function set_hid_chbox (id)
|
||||||
var $tt_td = $('.maintitle');
|
var $tt_td = $('.maintitle');
|
||||||
function edit_topic_title (mode)
|
function edit_topic_title (mode)
|
||||||
{
|
{
|
||||||
if (mode == 'edit') {
var tt_text = $tt_td.find('.tt-text').text();
|
if (mode == 'edit') {
|
||||||
|
var tt_text = $tt_td.find('.tt-text').text();
|
||||||
|
|
||||||
ajax.tte_orig_html = $tt_td.html();
|
ajax.tte_orig_html = $tt_td.html();
|
||||||
$tt_td.html( $('#tt-edit-tpl').html() );
|
$tt_td.html( $('#tt-edit-tpl').html() );
|
||||||
$('.tt-edit-input', $tt_td).val(tt_text).focus();
}
|
$('.tt-edit-input', $tt_td).val(tt_text).focus();
|
||||||
|
}
|
||||||
else if (mode == 'save') {
|
else if (mode == 'save') {
|
||||||
var topic_title = $('.tt-edit-input', $tt_td).val();
|
var topic_title = $('.tt-edit-input', $tt_td).val();
|
||||||
|
|
||||||
|
@ -181,8 +183,8 @@ ajax.callback.mod_action = function(data) {
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="nowrap" style="padding: 0px 4px 2px 4px;">
|
<td class="nowrap" style="padding: 0px 4px 2px 4px;">
|
||||||
<form action="search.php?t={TOPIC_ID}&dm=1&s=1" method="post" onsubmit="var txt=$('#search-text').val(); return !(txt=='{L_SEARCH_IN_TOPIC}' || !txt);">
|
<form action="search.php?t={TOPIC_ID}&dm=1&s=1" method="post">
|
||||||
<input id="search-text" type="text" name="nm" value="{L_SEARCH_IN_TOPIC}" class="hint" style="width: 150px;" />
|
<input id="search-text" type="text" name="nm" class="hint" style="width: 150px;" placeholder="{L_SEARCH_IN_TOPIC}" required />
|
||||||
<input type="submit" class="bold" value="»" style="width: 30px;" />
|
<input type="submit" class="bold" value="»" style="width: 30px;" />
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue