Response title
This is preview!
(function($){
var dialogExtensions ={
_makeDraggable_original: $.ui.dialog.prototype._makeDraggable,
_makeDraggable: function () {
// original code
this._makeDraggable_original();
// set containment from options
if (this.options.containment) {
this.uiDialog.draggable("option", "containment", this.options.containment);
}
}
};
$.extend($.ui.dialog.prototype, dialogExtensions);
})(jQuery);
© 2013 jQuery Foundation
Sponsored by and others.