/* dialog */ (function($) { var methods = { init: function(annotations) { var options=this.hjq('getOptions', annotations); if(!options.position) { options.position = {}; } if($.isPlainObject(options.position)) { this.data('hjq-dialog-position', $.extend({}, {my: 'center', at: 'center center', of: this.prev('.dialog-position')}, options.position)); delete options.position; } if(annotations.buttons) { options.buttons = {}; for(var i=0; i