Projects
Kolab:Winterfell
roundcubemail
roundcubemail-1.4.rc1.133-add-in_selection.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File roundcubemail-1.4.rc1.133-add-in_selection.patch of Package roundcubemail (Revision 177)
Currently displaying revision
177
,
Show latest
commit d646a10217ad99bda44c2c5930e15c4d71481c78 Author: Aleksander Machniak <alec@alec.pl> Date: Mon May 20 11:33:14 2019 +0200 Add in_selection() to rcube_treelist_widget So code working on all lists doesn't have to check widget type to work with selection. diff --git a/program/js/treelist.js b/program/js/treelist.js index 04e36ae22..96610a14c 100644 --- a/program/js/treelist.js +++ b/program/js/treelist.js @@ -96,6 +96,7 @@ function rcube_treelist_widget(node, p) this.get_item = get_item; this.get_node = get_node; this.get_selection = get_selection; + this.in_selection = in_selection; this.get_next = get_next; this.get_prev = get_prev; this.get_single_selection = get_selection; @@ -295,6 +296,15 @@ function rcube_treelist_widget(node, p) return selection; } + /** + * Check if given id is selected + * This is for consistency with rcube_list_widget + */ + function in_selection(id) + { + return selection == id; + } + /** * Return the DOM element of the list item with the given ID */
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.