[ticket/11956] Fix docblock for dropdown handler

PHPBB3-11956
This commit is contained in:
Vjacheslav Trushkin 2013-10-23 22:57:16 +03:00
parent 016958ea5e
commit a8f14b9ce3

View file

@ -409,14 +409,6 @@ function insert_single_user(formId, user)
self.close(); self.close();
} }
/**
* Dropdown handler
* Shows/hides dropdown, decides which side to open to
*
* @param [jQuery] toggle Link that toggles dropdown
* @param [jQuery] dropdown Dropdown menu
* @param [Object] [options] List of options
*/
function toggle_dropdown() function toggle_dropdown()
{ {
var $this = $(this), var $this = $(this),
@ -461,6 +453,14 @@ function toggle_dropdown()
parent.toggleClass(options.visibleClass, !visible).toggleClass('dropdown-visible', !visible); parent.toggleClass(options.visibleClass, !visible).toggleClass('dropdown-visible', !visible);
} }
/**
* Dropdown handler
* Shows/hides dropdown, decides which side to open to
*
* @param [jQuery] toggle Link that toggles dropdown
* @param [jQuery] dropdown Dropdown menu
* @param [Object] [options] List of options
*/
function register_dropdown(toggle, dropdown, options) function register_dropdown(toggle, dropdown, options)
{ {
var ops = { var ops = {