Fix release template editor (#120)

This commit is contained in:
Roman Kelesidis 2023-04-02 13:43:58 +07:00 committed by GitHub
parent c4fe5fb0e0
commit acece3f437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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>';
}
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');
exit;

View File

@ -238,7 +238,7 @@ var TPL = {
$('select.rel-input').bind('change', function(){
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;" />');
$sel.after($input);
$sel.remove();