commit
00a019b227
10
select2.js
10
select2.js
@ -684,8 +684,10 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
.addClass("select2-hidden-accessible")
|
.addClass("select2-hidden-accessible")
|
||||||
.appendTo(document.body);
|
.appendTo(document.body);
|
||||||
|
|
||||||
this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid()).replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
|
this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid());
|
||||||
this.containerSelector="#"+this.containerId;
|
this.containerEventName= this.containerId
|
||||||
|
.replace(/([.])/g, '_')
|
||||||
|
.replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
|
||||||
this.container.attr("id", this.containerId);
|
this.container.attr("id", this.containerId);
|
||||||
|
|
||||||
this.container.attr("title", opts.element.attr("title"));
|
this.container.attr("title", opts.element.attr("title"));
|
||||||
@ -1335,7 +1337,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
*/
|
*/
|
||||||
// abstract
|
// abstract
|
||||||
opening: function() {
|
opening: function() {
|
||||||
var cid = this.containerId,
|
var cid = this.containerEventName,
|
||||||
scroll = "scroll." + cid,
|
scroll = "scroll." + cid,
|
||||||
resize = "resize."+cid,
|
resize = "resize."+cid,
|
||||||
orient = "orientationchange."+cid,
|
orient = "orientationchange."+cid,
|
||||||
@ -1407,7 +1409,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
close: function () {
|
close: function () {
|
||||||
if (!this.opened()) return;
|
if (!this.opened()) return;
|
||||||
|
|
||||||
var cid = this.containerId,
|
var cid = this.containerEventName,
|
||||||
scroll = "scroll." + cid,
|
scroll = "scroll." + cid,
|
||||||
resize = "resize."+cid,
|
resize = "resize."+cid,
|
||||||
orient = "orientationchange."+cid;
|
orient = "orientationchange."+cid;
|
||||||
|
Loading…
Reference in New Issue
Block a user