1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Очистка полей фильтра в личных сообщениях

This commit is contained in:
Mzhelskiy Maxim 2012-04-14 16:13:51 +04:00
parent 2ec7c69227
commit 3e3af2df3b
5 changed files with 18 additions and 6 deletions

View file

@ -197,7 +197,7 @@ $config['module']['comment']['nested_per_page'] = 0; // Число коммен
$config['module']['comment']['nested_page_reverse'] = true; // Определяет порядок вывода страниц. true - последние комментарии на первой странице, false - последние комментарии на последней странице
$config['module']['comment']['favourite_target_allow'] = array('topic'); // Список типов комментов, которые разрешено добавлять в избранное
// Модуль Talk
$config['module']['talk']['per_page'] = 15; // Число приватных сообщений на одну страницу
$config['module']['talk']['per_page'] = 30; // Число приватных сообщений на одну страницу
$config['module']['talk']['reload'] = false;
$config['module']['talk']['request'] = 60;
$config['module']['talk']['period'] = 20000;

View file

@ -70,7 +70,7 @@ ls.talk = (function ($) {
});
return false;
}
};
/**
* Добавляет пользователя в черный список
@ -106,7 +106,7 @@ ls.talk = (function ($) {
}
});
return false;
}
};
/**
* Удаляет пользователя из черного списка
@ -135,7 +135,7 @@ ls.talk = (function ($) {
ls.hook.run('ls_talk_remove_from_black_list_after',[idTarget],link);
});
return false;
}
};
/**
* Добавляет или удаляет друга из списка получателей
@ -147,7 +147,16 @@ ls.talk = (function ($) {
});
if (add) { to.push(login); to = $.richArray.unique(to); } else { to = $.richArray.without(to, login); }
$('#talk_users').val(to.join(', '));
}
};
/**
* Очищает поля фильтра
*/
this.clearFilter = function() {
$('#block_talk_search_content').find('input[type="text"]').val('');
$('#block_talk_search_content').find('input[type="checkbox"]').removeAttr("checked");
return false;
};
return this;
}).call(ls.talk || {},jQuery);

View file

@ -761,6 +761,7 @@ return array(
'talk_filter_notice_keyword' => 'Specify keywords',
'talk_filter_notice_date' => 'Date should be in the following format 25.12.2008',
'talk_filter_submit' => 'Submit filter',
'talk_filter_submit_clear' => 'Clear',
'talk_filter_error' => 'Filter error',
'talk_filter_error_date_format' => 'Wrong date format',
'talk_filter_result_count' => 'Found %%count%% messages',

View file

@ -761,6 +761,7 @@ return array(
'talk_filter_notice_keyword' => 'Введите одно или несколько слов',
'talk_filter_notice_date' => 'Дата вводится в формате 25.12.2008',
'talk_filter_submit' => 'Отфильтровать',
'talk_filter_submit_clear' => 'Очистить',
'talk_filter_error' => 'Ошибка фильтрации',
'talk_filter_error_date_format' => 'Указан неверный формат даты',
'talk_filter_result_count' => 'Найдено писем: %%count%%',

View file

@ -3,7 +3,7 @@
<h3><a href="#" class="link-dotted" onclick="jQuery('#block_talk_search_content').toggle(); return false;">{$aLang.talk_filter_title}</a></h3>
</header>
<div class="block-content" id="block_talk_search_content">
<div class="block-content" id="block_talk_search_content" {if $_aRequest.submit_talk_filter}style="display:block;" {/if}>
<form action="{router page='talk'}" method="GET" name="talk_filter_form">
<p><label for="talk_filter_sender">{$aLang.talk_filter_label_sender}:</label>
<input type="text" id="talk_filter_sender" name="sender" value="{$_aRequest.sender}" class="input-text input-width-full" />
@ -25,6 +25,7 @@
{$aLang.talk_filter_label_favourite}</label></p>
<input type="submit" name="submit_talk_filter" value="{$aLang.talk_filter_submit}" class="button" />
<input type="submit" name="" value="{$aLang.talk_filter_submit_clear}" class="button" onclick="return ls.talk.clearFilter();" />
</form>
</div>
</section>