From 8a83f72870bd4a291fdcf78d5ac17727b0a7618b Mon Sep 17 00:00:00 2001 From: Zaran Date: Fri, 6 Apr 2012 21:53:52 -0400 Subject: Basic style for the roster. Remove JavascriptMVC code in the angular branch --- webclient/lib/jquery.dialog.js | 63 ------------------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 webclient/lib/jquery.dialog.js (limited to 'webclient/lib/jquery.dialog.js') diff --git a/webclient/lib/jquery.dialog.js b/webclient/lib/jquery.dialog.js deleted file mode 100644 index 1a5679e..0000000 --- a/webclient/lib/jquery.dialog.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * jQuery dialog plugin - * - *
- *
- *
- *
- *
- */ -(function( $ ){ - - var methods = { - - init: function(){ - this.data('dialog', {opened: []}); - this.find('#dialog-overlay').bind('click.dialog', function(){ - $(this).parent().dialog('hide'); - }); - }, - - show: function(name){ - var maskHeight = $(document).height(); - var maskWidth = $(window).width(); - var overlay = this.find('#dialog-overlay'); - overlay.css({'width':maskWidth,'height':maskHeight}); - var winH = $(window).height(); - var winW = $(window).width(); - var dialog = this.find('#'+name); - dialog.css('top', winH/2-dialog.height()/2); - dialog.css('left', winW/2-dialog.width()/2); - this.data('dialog').opened.push(name); - overlay.show(); - dialog.show(); - }, - - hide: function(){ - var name = this.data('dialog').opened.pop(); - var dialog = this.find('#'+name); - var overlay = this.find('#dialog-overlay'); - dialog.hide(); - if (this.data('dialog').opened.length === 0){ - overlay.hide(); - } - } - }; - - /* - * Register the 'dialog' method to the jQuery objects - * the first argument of this method is the submethod - * you want to call - */ - $.fn.dialog = function(method) { - if ( methods[method] ) { - return methods[method].apply(this, Array.prototype.slice - .call(arguments, 1)); - } else if ( typeof method === 'object' || !method ) { - return methods.init.apply(this, arguments); - } else { - $.error('Method ' + method + ' does not exist on jQuery.dialog'); - } - }; - -})(jQuery); \ No newline at end of file -- cgit v1.2.3-70-g09d2