1
0
mirror of synced 2024-11-22 04:56:08 +03:00

#1260 closes #1252 fixes #992 - retrieve option text as value when value is not defined

This commit is contained in:
Igor Vaynberg 2013-05-06 09:54:17 -07:00
parent 83050fd2fa
commit 62e0ae6004
3 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
"version": "3.3.2",
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "select2-spinner.gif"],
"dependencies": {
"jquery": ">= 1.4.4"
"jquery": ">= 1.7.1"
}
}

View File

@ -31,6 +31,6 @@
"docs": "http://ivaynberg.github.com/select2/",
"download": "https://github.com/ivaynberg/select2/tags",
"dependencies": {
"jquery": ">=1.4.4"
"jquery": ">=1.7.1"
}
}

View File

@ -739,7 +739,7 @@ the specific language governing permissions and limitations under the Apache Lic
optionToData: function(element) {
if (element.is("option")) {
return {
id:element.attr("value"),
id:element.prop("value"),
text:element.text(),
element: element.get(),
css: element.attr("class"),