Opportunity html
Jump to navigation
Jump to search
| Line 663: | Line 663: | ||
}); | }); | ||
| − | $('select[multiple]').multiselect({selectGroup: true,search: true}); | + | $('select[multiple]').multiselect({selectGroup: true,search: true, |
| + | |||
| + | click: function(event, ui){ | ||
| + | $callback.text(ui.value + ' ' + (ui.checked ? 'checked' : 'unchecked') ); | ||
| + | }, | ||
| + | beforeopen: function(){ | ||
| + | $callback.text("Select about to be opened..."); | ||
| + | }, | ||
| + | open: function(){ | ||
| + | $callback.text("Select opened!"); | ||
| + | }, | ||
| + | beforeclose: function(){ | ||
| + | $callback.text("Select about to be closed..."); | ||
| + | }, | ||
| + | close: function(){ | ||
| + | $callback.text("Select closed!"); | ||
| + | }, | ||
| + | checkAll: function(){ | ||
| + | $callback.text("Check all clicked!"); | ||
| + | }, | ||
| + | uncheckAll: function(){ | ||
| + | $callback.text("Uncheck all clicked!"); | ||
| + | }, | ||
| + | optgrouptoggle: function(event, ui){ | ||
| + | var values = $.map(ui.inputs, function(checkbox){ | ||
| + | return checkbox.value; | ||
| + | }).join(", "); | ||
| + | |||
| + | $callback.html("Checkboxes " + (ui.checked ? "checked" : "unchecked") + ": " + values); | ||
| + | } | ||
| + | |||
| + | }); | ||
| + | |||
| + | onOptionClick( element, option ) | ||
//$('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | //$('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | ||
Revision as of 08:33, 6 March 2020