2010-09-17 20:24:12 +00:00
|
|
|
/*
|
|
|
|
|
* jQuery Mobile Framework : prototype for "dialog" plugin.
|
|
|
|
|
* Copyright (c) jQuery Project
|
|
|
|
|
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
|
|
|
|
* Note: Code is in draft form and is subject to change
|
|
|
|
|
*/
|
|
|
|
|
(function($){
|
|
|
|
|
$.fn.dialog = function(options){
|
|
|
|
|
return $(this).each(function(){
|
|
|
|
|
$(this)
|
|
|
|
|
.addClass('ui-dialog')
|
|
|
|
|
.find('.ui-header')
|
|
|
|
|
.addClass('ui-corner-top ui-overlay-shadow')
|
2010-09-17 20:55:30 +00:00
|
|
|
.end()
|
2010-09-17 20:24:12 +00:00
|
|
|
.find('.ui-content,.ui-footer')
|
2010-09-17 20:55:30 +00:00
|
|
|
.last()
|
|
|
|
|
.addClass('ui-corner-bottom ui-overlay-shadow');
|
2010-09-17 20:24:12 +00:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
})(jQuery);
|