Browse Source

Merge pull request #1222 from orloffv/patch-1

add title for choice item
Igor Vaynberg 12 years ago
parent
commit
839d4db9de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2494,7 +2494,7 @@ the specific language governing permissions and limitations under the Apache Lic
 
 
             formatted=this.opts.formatSelection(data, choice.find("div"));
             formatted=this.opts.formatSelection(data, choice.find("div"));
             if (formatted != undefined) {
             if (formatted != undefined) {
-                choice.find("div").replaceWith("<div>"+this.opts.escapeMarkup(formatted)+"</div>");
+                choice.find("div").replaceWith("<div title='"+this.opts.escapeMarkup(formatted)+"'>"+this.opts.escapeMarkup(formatted)+"</div>");
             }
             }
 
 
             if(enableChoice){
             if(enableChoice){