Skip to content

Commit

Permalink
Item964: Fixing minor things, adding tmform resthandler
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/UiByRestPlugin@2445 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
EugenMayer authored and EugenMayer committed Feb 10, 2009
1 parent d826001 commit fe0541b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/Foswiki/Plugins/UiByRestPlugin.pm
Expand Up @@ -87,6 +87,7 @@ sub initPlugin {

# request-a-UI-form ( template ) rest handlers
Foswiki::Func::registerRESTHandler('trform', \&_renameTopicForm);
Foswiki::Func::registerRESTHandler('tmform', \&_moveTopicForm);
Foswiki::Func::registerRESTHandler('loginform', \&_loginForm);
return 1;
}
Expand Down Expand Up @@ -191,6 +192,20 @@ sub _moveTopic {
return Foswiki::Plugins::UiByRestPlugin::TopicMove::do($session);
}

=begin TML
---++ _renameTopicForm( $session )
Return the template which is defined for renaming a topic ( movetopic.YOURSKIN.tmpl )
=cut

sub _moveTopicForm {
my $session = shift;
use Foswiki::Plugins::UiByRestPlugin::TopicMove;
return Foswiki::Plugins::UiByRestPlugin::TopicMove::template( $session );
}



=begin TML
---++ _moveAttachment( $session )
Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/UiByRestPlugin/TopicRename.pm
Expand Up @@ -66,6 +66,7 @@ sub do {
use Foswiki::UI::Manage;
Foswiki::UI::Manage::rename( $session );

$session->{response}->status( 200 );
return "";
}
=begin TML
Expand Down

0 comments on commit fe0541b

Please sign in to comment.