1
0
mirror of synced 2024-11-22 21:16:10 +03:00

support readonly attribute by disabling select2. fixes #293

This commit is contained in:
Igor Vaynberg 2012-08-03 06:19:22 -07:00
parent b422d4efef
commit 15b654a170

View File

@ -559,7 +559,7 @@
this.monitorSource(); this.monitorSource();
} }
if (opts.element.is(":disabled")) this.disable(); if (opts.element.is(":disabled") || opts.element.is("[readonly='readonly']")) this.disable();
}, },
// abstract // abstract