Skip to content
This repository

Added ngMultiple support to uiSelect2 #220

Merged
merged 1 commit into from over 1 year ago

1 participant

Dean Sofer
Dean Sofer ProLoser merged commit 8ec4fb8 into from October 28, 2012
Dean Sofer ProLoser closed this October 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 07, 2012
Dean Sofer Added ngMultiple support to uiSelect2 8ec4fb8
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  modules/directives/select2/select2.js
4  modules/directives/select2/select2.js
@@ -90,6 +90,10 @@ angular.module('ui.directives').directive('uiSelect2', ['ui.config', '$http', fu
90 90
           elm.select2(value && 'disable' || 'enable');
91 91
         });
92 92
 
  93
+        scope.$watch(attrs.ngMultiple, function(newVal) {
  94
+          elm.select2(opts);
  95
+        });
  96
+
93 97
         // Set initial value since Angular doesn't
94 98
         elm.val(scope.$eval(attrs.ngModel));
95 99
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.