mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Fix release template editor (#120)
This commit is contained in:
parent
c4fe5fb0e0
commit
acece3f437
@ -263,7 +263,7 @@ if ($mode == 'new_rel')
|
|||||||
{
|
{
|
||||||
$topics .= $bb_cfg['tor_icons'][$row['tor_status']] .'<a href="'. TOPIC_URL . $row['topic_id'] .'">'. $row['topic_title'] .'</a><div class="spacer_12"></div>';
|
$topics .= $bb_cfg['tor_icons'][$row['tor_status']] .'<a href="'. TOPIC_URL . $row['topic_id'] .'">'. $row['topic_title'] .'</a><div class="spacer_12"></div>';
|
||||||
}
|
}
|
||||||
if ($topics) bb_die($topics . $lang['UNEXECUTED_RELEASE']);
|
if ($topics && !(IS_SUPER_ADMIN && !empty($_REQUEST['edit_tpl']))) bb_die($topics . $lang['UNEXECUTED_RELEASE']);
|
||||||
}
|
}
|
||||||
require(INC_DIR .'posting_tpl.php');
|
require(INC_DIR .'posting_tpl.php');
|
||||||
exit;
|
exit;
|
||||||
|
@ -238,7 +238,7 @@ var TPL = {
|
|||||||
|
|
||||||
$('select.rel-input').bind('change', function(){
|
$('select.rel-input').bind('change', function(){
|
||||||
var $sel = $(this);
|
var $sel = $(this);
|
||||||
if ( $sel.val().toLowerCase().match(/^друг(ой|ая|ое|ие)$/) ) {
|
if ( $sel.val().toLowerCase().match(/^друг(ой|ая|ое|ие)|other$/) ) {
|
||||||
var $input = $('<input class="rel-el rel-input" type="text" id="'+ $sel.attr('id') +'" style="width: '+ $sel.width() +'px;" />');
|
var $input = $('<input class="rel-el rel-input" type="text" id="'+ $sel.attr('id') +'" style="width: '+ $sel.width() +'px;" />');
|
||||||
$sel.after($input);
|
$sel.after($input);
|
||||||
$sel.remove();
|
$sel.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user