나는 그것은 확인 작업이이상한 jQueryUI 대화 오류
$('#add_error').click(function(e) {
$('<div>')
.load('/someaction/format/html/')
.dialog({
title: 'Some title',
modal: true,
width: 385,
close: function() {
$(this).remove();
}
});
e.preventDefault();
});
처럼 만들어 대화를하지만 대화 열려면 링크를 클릭 할 때마다 (그 정말 세 번째 경우 정말 확실하지) 세 번째, 그것은 불을 지르고에서 오류와 함께 실패
"$ (" ")가 addClass ("UI-위젯 오버레이 ")이 정의되지 않는다"
코드 조각 dialog.js에서:.
var $el = (this.oldInstances.length ? this.oldInstances.splice(0, 1)[0] : $('<div></div>').addClass('ui-widget-overlay'))
.appendTo(document.body)
.css({
width: this.width(),
height: this.height()
});
,174,
작성 : 함수 (대화 상자) 메소드.
이상한 것은 내가
close: function() {
$(this).remove();
}
어떤 생각을 제거 할 때이 오류가 발생하지 않는다는 것입니다?
jQuery를 UI 작동을 참조하십시오? –
최신 jQuery UI 1.8rc3 – umpirsky