Skip to content

Commit 6c19cc3

Browse files
author
ehynds
committed
swap variable names
1 parent f867852 commit 6c19cc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jquery.multiselect.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@
135135
el.find('option').each(function(i) {
136136
var $this = $(this);
137137
var parent = this.parentNode;
138-
var title = this.innerHTML;
139-
var description = this.title;
138+
var description = this.innerHTML;
139+
var title = this.title;
140140
var value = this.value;
141141
var inputID = 'ui-multiselect-' + (this.id || id + '-option-' + i);
142142
var isDisabled = this.disabled;
@@ -169,7 +169,7 @@
169169
html += '<li class="' + liClasses + '">';
170170

171171
// create the label
172-
html += '<label for="' + inputID + '" title="' + description + '" class="' + labelClasses.join(' ') + '">';
172+
html += '<label for="' + inputID + '" title="' + title + '" class="' + labelClasses.join(' ') + '">';
173173
html += '<input id="' + inputID + '" name="multiselect_' + id + '" type="' + (o.multiple ? "checkbox" : "radio") + '" value="' + value + '" title="' + title + '"';
174174

175175
// pre-selected?
@@ -185,7 +185,7 @@
185185
}
186186

187187
// add the title and close everything off
188-
html += ' /><span>' + title + '</span></label></li>';
188+
html += ' /><span>' + description + '</span></label></li>';
189189
});
190190

191191
// insert into the DOM

0 commit comments

Comments
 (0)