aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js22
1 files changed, 16 insertions, 6 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index cc156569f..6825ecbce 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -113,15 +113,25 @@ function isR2L() {
make_multi: function() {
var $this = $(this),
- all = $this.data('all');
+ all = $this.data('all'),
+ none = $this.data('none') || all,
+ allOpts = $this.data('all-options') || [],
+ extra = $this.data('extra'),
+ extraOpts = $this.data('extra-options') || [];
+
+ var presets = [{
+ name: all,
+ options: allOpts
+ }];
+
+ if (extra) {
+ presets.push({name: extra, options: extraOpts});
+ }
$this.multiSelect({
allText: all,
- noneText: all,
+ noneText: none,
positionMenuWithin: $('#side'),
- presets: [{
- name: all,
- options: []
- }]
+ presets: presets
});
}