From 2e20872c7e1edd8b36aa7c6a6cb164dbcfb99e4a Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 24 Aug 2009 15:11:10 +0200 Subject: [PATCH 1/1] =?utf8?q?Usuni=C4=99cie=20nieu=C5=BCywanego=20ju?= =?utf8?q?=C5=BC=20jquery.resizable.js=20(zast=C4=85pi=C5=82=20je=20skrypt?= =?utf8?q?=20jquery.hpanel.js).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/jquery.resizable.js | 54 ------------------------ project/templates/explorer/file_xml.html | 1 - 2 files changed, 55 deletions(-) delete mode 100644 project/static/js/jquery.resizable.js diff --git a/project/static/js/jquery.resizable.js b/project/static/js/jquery.resizable.js deleted file mode 100644 index 3fae2bf0..00000000 --- a/project/static/js/jquery.resizable.js +++ /dev/null @@ -1,54 +0,0 @@ -(function($){ - $.resizable = { - settings: {}, - element: {}, - drag: function(event) { - $.resizable.element.element.css({ - width: Math.max(event.pageX - $.resizable.element.mouseX + $.resizable.element.width, - $.resizable.settings.minWidth) - }) - $.resizable.element.element.trigger('resizable:resize'); - return false; - }, - stop: function(event) { - $.resizable.element.element.trigger('resizable:stop'); - $(document).unbind('mousemove', $.resizable.drag).unbind('mouseup', $.resizable.stop) - $('body').css('cursor', 'auto'); - return false; - } - }; - - $.fn.resizable = function(options) { - var settings = { - minWidth: 0, - maxWidth: $(window).width() - } - - $.extend(settings, options); - - var element = $(this); - var handle = $('.panel-slider', element) - - handle.mousedown(function(event) { - var position = element.position(); - console.log('Mouse down on position: ' + position); - /* from this point on, the panel should resize events */ - - /* $.resizable.settings = settings; - $.resizable.data = { - element: element, - width: parseInt(element.css('width')) || element[0].scrollWidth || 0, - mouseX: event.pageX, - }; */ - - $(document).mousemove($.resizable.ondrag, element).mouseup($.resizable.stop, element); - /* $('body').css('cursor', 'col-resize'); */ - }); - - /* stop drag events */ - handle.bind('dragstart', function(event) { event.preventDefault(); }) - .bind('drag', function(event) { event.preventDefault(); }) - .bind('draggesture', function(event) { event.preventDefault(); }); - }; -})(jQuery); - diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index c6caca69..eb180157 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -5,7 +5,6 @@ - {% endblock extrahead %} -- 2.20.1