[Rt-commit] rt branch, development, updated. 32842079b5a8eaba4a601b6259892bb6d90e1809
Thomas Sibley
trs at bestpractical.com
Mon Jul 19 15:40:27 EDT 2010
The branch, development has been updated
via 32842079b5a8eaba4a601b6259892bb6d90e1809 (commit)
from 5551247be2e68fba2f6d8b6a77ff5d97065edc58 (commit)
Summary of changes:
lib/RT/View/SetupWizard.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 32842079b5a8eaba4a601b6259892bb6d90e1809
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Jul 19 15:42:00 2010 -0400
Make the doc sliding less jumpy
diff --git a/lib/RT/View/SetupWizard.pm b/lib/RT/View/SetupWizard.pm
index ff335a9..075e707 100644
--- a/lib/RT/View/SetupWizard.pm
+++ b/lib/RT/View/SetupWizard.pm
@@ -132,14 +132,14 @@ template 'organization' => setup_page {
my $config = new_action( class => 'RT::Action::ConfigSystem' );
my $meta = $config->metadata;
- my $selector = 'jQuery(this).parent().parent().find(".doc")';
+ my $this = 'jQuery(this).parent().parent().find(".doc")';
for my $field (qw( rtname organization time_zone )) {
div {{ class is 'config-field' };
render_param(
$config => $field,
- onfocus => "$selector.slideDown();",
- onblur => "$selector.slideUp();",
+ # Slide up everything else and slide down this doc
+ onfocus => "jQuery('.config-field .doc').not($this).slideUp(); $this.slideDown();",
);
div {{ class is 'doc' };
outs_raw( $meta->{$field}{'doc'} )
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list