mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
get subtitle in chzn template from state
This commit is contained in:
parent
5fb5cd00bc
commit
63ba189b3f
|
@ -4,8 +4,10 @@
|
|||
* will receive an unescaped string
|
||||
* (see https://forums.select2.org/t/propperly-escape-option-value-to-prevent-xss/788)
|
||||
*/
|
||||
chzn_template_func = function (state) {
|
||||
chzn_template_func = function (state) { /* {{{ */
|
||||
var subtitle = '';
|
||||
if(state.subtitle)
|
||||
subtitle = state.subtitle;
|
||||
if($(state.element).data('subtitle'))
|
||||
subtitle = $(state.element).data('subtitle')+''; /* make sure it is a string */
|
||||
var warning = '';
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
* will receive an unescaped string
|
||||
* (see https://forums.select2.org/t/propperly-escape-option-value-to-prevent-xss/788)
|
||||
*/
|
||||
chzn_template_func = function (state) {
|
||||
chzn_template_func = function (state) { /* {{{ */
|
||||
var subtitle = '';
|
||||
if(state.subtitle)
|
||||
subtitle = state.subtitle;
|
||||
if($(state.element).data('subtitle'))
|
||||
subtitle = $(state.element).data('subtitle')+''; /* make sure it is a string */
|
||||
var warning = '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user