removed mods directory from the ATutor codebase
[atutor.git] / mods / ldap / jscripts / jqgrid / js / jqDnR.js
diff --git a/mods/ldap/jscripts/jqgrid/js/jqDnR.js b/mods/ldap/jscripts/jqgrid/js/jqDnR.js
deleted file mode 100644 (file)
index dac3b27..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*\r
- * jqDnR - Minimalistic Drag'n'Resize for jQuery.\r
- *\r
- * Copyright (c) 2007 Brice Burgess <bhb@iceburg.net>, http://www.iceburg.net\r
- * Licensed under the MIT License:\r
- * http://www.opensource.org/licenses/mit-license.php\r
- * \r
- * $Version: 2007.02.09 +r1\r
- */\r
-(function($){\r
-$.fn.jqDrag=function(r){$.jqDnR.init(this,r,'d'); return this;};\r
-$.fn.jqResize=function(r){$.jqDnR.init(this,r,'r'); return this;};\r
-$.jqDnR={\r
-init:function(w,r,t){ r=(r)?$(r,w):w;\r
-       r.bind('mousedown',{w:w,t:t},function(e){ var h=e.data; var w=h.w;\r
-       hash=$.extend({oX:f(w,'left'),oY:f(w,'top'),oW:f(w,'width'),oH:f(w,'height'),pX:e.pageX,pY:e.pageY,o:w.css('opacity')},h);\r
-       h.w.css('opacity',0.8); $().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);\r
-       return false;});\r
-},\r
-drag:function(e) {var h=hash; var w=h.w[0];\r
-       if(h.t == 'd') h.w.css({left:h.oX + e.pageX - h.pX,top:h.oY + e.pageY - h.pY});\r
-       else h.w.css({width:Math.max(e.pageX - h.pX + h.oW,0),height:Math.max(e.pageY - h.pY + h.oH,0)});\r
-       return false;},\r
-stop:function(){var j=$.jqDnR; hash.w.css('opacity',hash.o); $().unbind('mousemove',j.drag).unbind('mouseup',j.stop);},\r
-h:false};\r
-var hash=$.jqDnR.h;\r
-var f=function(w,t){return parseInt(w.css(t)) || 0};\r
-})(jQuery);
\ No newline at end of file