{"size": 2009, "ext": "js", "max_stars_repo_path": "web/webapp/src/view/common/dialog.js", "max_stars_repo_name": "duanxiaohui/testProject", "max_stars_repo_stars_event_min_datetime": "2016-08-01T10:32:00.000Z", "max_stars_repo_stars_event_max_datetime": "2016-09-07T09:53:25.000Z", "max_issues_repo_path": "web/webapp/src/view/common/dialog.js", "max_issues_repo_name": "duanxiaohui/testProject", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/webapp/src/view/common/dialog.js", "max_forks_repo_name": "duanxiaohui/testProject", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.4032258065, "max_line_length": 408, "alphanum_fraction": 0.5450472872}
define(function(require){
	$.alert = function(content, opt){
		opt = $.extend(true, {
			modal: true,
			title: '温馨提示',
			buttons: {
				'确定': function(){
					$(this).dialog("close");
				}
			}
		}, opt);
		$(['<div class="dialog-content">', content, '</div>'].join('')).dialog(opt);
	};

	$.confirm = function(content, opt){
		opt = $.extend(true, {
			modal: true,
			title: '温馨提示',
			buttons: [{
				text: "确定",
				click: function(){
					$(this).dialog("close");
				}
			}, {
				text: "取消",
				click: function(){
					$(this).dialog("close");
				}
			}]
		}, opt);
		$(['<div class="dialog-content">', content, '</div>'].join('')).dialog(opt);
	};
	//mousewheel method
	(function(a){
		function d(b){
			var c = b || window.event, d = [].slice.call(arguments, 1), e = 0, f = !0, g = 0, h = 0;
			return b = a.event.fix(c), b.type = "mousewheel", c.wheelDelta && (e = c.wheelDelta / 120), c.detail && (e = -c.detail / 3), h = e, c.axis !== undefined && c.axis === c.HORIZONTAL_AXIS && (h = 0, g = -1 * e), c.wheelDeltaY !== undefined && (h = c.wheelDeltaY / 120), c.wheelDeltaX !== undefined && (g = -1 * c.wheelDeltaX / 120), d.unshift(b, e, g, h), (a.event.dispatch || a.event.handle).apply(this, d)
		}
		var b = ["DOMMouseScroll", "mousewheel"];
		if (a.event.fixHooks) {
			for (var c = b.length; c;) 
				a.event.fixHooks[b[--c]] = a.event.mouseHooks;
		}
		a.event.special.mousewheel = {
			setup: function(){
				if (this.addEventListener) for (var a = b.length; a;) 
					this.addEventListener(b[--a], d, !1);
				else this.onmousewheel = d
			},
			teardown: function(){
				if (this.removeEventListener) for (var a = b.length; a;) 
					this.removeEventListener(b[--a], d, !1);
				else this.onmousewheel = null
			}
		};
		a.fn.extend({
			mousewheel: function(a){ return a ? this.bind("mousewheel", a) : this.trigger("mousewheel")} ,
			unmousewheel: function(a){ return this.unbind("mousewheel", a)} }
	);
	})(jQuery);
})
