Show
Ignore:
Timestamp:
11/15/07 22:38:24 (6 years ago)
Author:
charsbar
Message:

lang/perl/Jipotter: ajaxified

Location:
lang/perl/Jipotter/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Jipotter/trunk/etc/site_config.yml.sample

    r1563 r1595  
    11framework: 
    22  Plugins: 
     3    # This may spew lots of warnings, depending on  
     4    # the versions of CSS::Squish and Jifty. 
     5    - CompressedCSSandJS: {} 
     6 
    37    - Jipotter::Plugin::Timelines: 
    48        items_per_page: 20 
  • lang/perl/Jipotter/trunk/lib/Jipotter/Plugin/Timelines/Action/Post.pm

    r1563 r1595  
    1313    rows   is 3, 
    1414    cols   is 60, 
    15     id     is 'MessageTextarea', 
    1615    sticky is 0; 
    1716 
  • lang/perl/Jipotter/trunk/lib/Jipotter/Plugin/Timelines/View.pm

    r1563 r1595  
    1717    render_param( $action => 'message' ); 
    1818 
    19     form_submit( label => 'Update' ); 
     19    set message_id => $action->form_field('message')->element_id; 
     20 
     21    form_submit( label => 'Update', name => 'submit' ); 
    2022 
    2123    my $plugin = Jifty->find_plugin('Jipotter::Plugin::Timelines'); 
     
    3335 
    3436private template 'timelines/table' => sub { 
    35   my $region = Jifty->web->region( 
     37  render_region( 
    3638    name     => 'timelines_table', 
    37     path     => 'timelines/region', 
     39    path     => '/timelines/region', 
    3840    defaults => { page => get('page') || 1 }, 
    3941  ); 
     
    4244template 'timelines/region' => sub { 
    4345  my $page = get('page') || 1; 
     46  my $message_id = get('message_id') || ''; 
    4447 
    4548  my $plugin = Jifty->find_plugin('Jipotter::Plugin::Timelines'); 
     
    8689            outs $entry->hms; 
    8790          }; 
    88           div { attr { class => 'ReplyAt', onclick => q{var i=document.getElementById('MessageTextarea'); i.value='@}.$login_id.q{ '; i.focus(); return true;} }; 
     91          div { attr { class => 'ReplyAt', onclick => q{var i=document.getElementById('}.$message_id.q{'); i.value='@}.$login_id.q{ '; i.focus(); return true;} }; 
    8992            outs '@' . $entry->package_name; 
    9093          }; 
  • lang/perl/Jipotter/trunk/lib/Jipotter/View.pm

    r1400 r1595  
    4242      href => '/css/jipotter.css', media => 'screen, projection' 
    4343    }}; 
     44 
     45    Jifty->web->include_javascript; 
     46 
    4447    title { Jifty->config->framework('ApplicationName') }; 
    4548  }