]> git.wh0rd.org Git - tt-rss.git/commitdiff
allow panel resize when dragging post header
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 May 2008 08:29:13 +0000 (09:29 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 May 2008 08:29:13 +0000 (09:29 +0100)
feedlist.js
functions.php
tt-rss.css
tt-rss.php

index 004ae46292517906f49f159d7358d02d55c59129..62fceca37edd628b47f77921768a8fb41c26d46b 100644 (file)
@@ -7,7 +7,7 @@ var mouse_is_down = false;
 var mouse_y = 0;
 var mouse_x = 0;
 
-var enable_resize = false;
+var resize_enabled = false;
 
 function viewCategory(cat) {
        active_feed_is_cat = true;
@@ -485,13 +485,13 @@ function mouse_move_handler(e) {
        }
 }
 
-function resize_enabled(b) {
-       enable_resize = b;
+function enable_resize(b) {
+       resize_enabled = b;
 }
 
 function mouse_down_handler(e) {
        try {
-               if (enable_resize) { 
+               if (resize_enabled) { 
                        mouse_is_down = true;
                        mouse_x = 0;
                        mouse_y = 0;
index 5d49668655a7bf1e325f057a64953e345704a51e..967739241d78f696e8ff716143404aef86fa5fcb 100644 (file)
 
                        print "<div class=\"postReply\">";
 
-                       print "<div class=\"postHeader\">";
+                       print "<div class=\"postHeader\" onmouseover=\"enable_resize(true)\" 
+                               onmouseout=\"enable_resize(false)\">";
 
                        $entry_author = $line["author"];
 
index a37e6870a814d8cb90dc0a41f8c66610354363cf..55265f51f97044da37189bc29897fa67ff0daf52 100644 (file)
@@ -35,6 +35,7 @@ div.postReply div.postHeader {
        border-color : #88b0f0; 
        margin : 0px 1px 0px 0px;
        padding : 5px;
+       cursor : move;
 }
 
 /* div.postReply > div.postHeader {
index e0a5d0862653f0de6a1e61cd931e74ada95d0f02..3b6dcada5a151d525e31fb50e449d35f216e5108 100644 (file)
@@ -242,7 +242,7 @@ window.onload = init;
                <div class="whiteBox"><?php echo __('No feed selected.') ?></div></div>
        <div id="content-frame"><div class="whiteBox">&nbsp;</div></div>
        <div id="resize-grabber"
-               onmouseover="resize_enabled(true)" onmouseout="resize_enabled(false)"
+               onmouseover="enable_resize(true)" onmouseout="enable_resize(false)"
                title="<?php echo __('Drag me to resize panels') ?>"> </div>
 <?php } else { ?>
        <div id="headlines-frame" class="headlines_cdm">