allow panel resize when dragging post header
This commit is contained in:
parent
0c5897c864
commit
94047498ff
|
@ -7,7 +7,7 @@ var mouse_is_down = false;
|
||||||
var mouse_y = 0;
|
var mouse_y = 0;
|
||||||
var mouse_x = 0;
|
var mouse_x = 0;
|
||||||
|
|
||||||
var enable_resize = false;
|
var resize_enabled = false;
|
||||||
|
|
||||||
function viewCategory(cat) {
|
function viewCategory(cat) {
|
||||||
active_feed_is_cat = true;
|
active_feed_is_cat = true;
|
||||||
|
@ -485,13 +485,13 @@ function mouse_move_handler(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function resize_enabled(b) {
|
function enable_resize(b) {
|
||||||
enable_resize = b;
|
resize_enabled = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
function mouse_down_handler(e) {
|
function mouse_down_handler(e) {
|
||||||
try {
|
try {
|
||||||
if (enable_resize) {
|
if (resize_enabled) {
|
||||||
mouse_is_down = true;
|
mouse_is_down = true;
|
||||||
mouse_x = 0;
|
mouse_x = 0;
|
||||||
mouse_y = 0;
|
mouse_y = 0;
|
||||||
|
|
|
@ -4601,7 +4601,8 @@
|
||||||
|
|
||||||
print "<div class=\"postReply\">";
|
print "<div class=\"postReply\">";
|
||||||
|
|
||||||
print "<div class=\"postHeader\">";
|
print "<div class=\"postHeader\" onmouseover=\"enable_resize(true)\"
|
||||||
|
onmouseout=\"enable_resize(false)\">";
|
||||||
|
|
||||||
$entry_author = $line["author"];
|
$entry_author = $line["author"];
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ div.postReply div.postHeader {
|
||||||
border-color : #88b0f0;
|
border-color : #88b0f0;
|
||||||
margin : 0px 1px 0px 0px;
|
margin : 0px 1px 0px 0px;
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
|
cursor : move;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* div.postReply > div.postHeader {
|
/* div.postReply > div.postHeader {
|
||||||
|
|
|
@ -242,7 +242,7 @@ window.onload = init;
|
||||||
<div class="whiteBox"><?php echo __('No feed selected.') ?></div></div>
|
<div class="whiteBox"><?php echo __('No feed selected.') ?></div></div>
|
||||||
<div id="content-frame"><div class="whiteBox"> </div></div>
|
<div id="content-frame"><div class="whiteBox"> </div></div>
|
||||||
<div id="resize-grabber"
|
<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>
|
title="<?php echo __('Drag me to resize panels') ?>"> </div>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<div id="headlines-frame" class="headlines_cdm">
|
<div id="headlines-frame" class="headlines_cdm">
|
||||||
|
|
Loading…
Reference in New Issue