Ignore:
Timestamp:
Jul 3, 2009, 2:23:11 PM (15 years ago)
Author:
ronosman
Message:

Feature 1039 added. Feature 1040 added. Filter and add Piwigo tags.
The tag list is filtered based on user input ( tag beginning with same characters ) or tag status ( All, Selected, Not selected ).
When a search result is empty, user is asked for tag creation confirmation.
When a search result returns a single result, the user input is autocompleted and the tag is selected if user validates with Enter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/PWG/WebServices.pm

    r3472 r3504  
    209209}
    210210
     211sub AddTags {
     212    my ( $self, $name ) = @_;
     213
     214    my $form = {
     215        method            => 'pwg.tags.add',
     216        name              => $name,
     217       
     218    };
     219
     220    my $result = $self->uagent->post(
     221        $self->urlbase.'/ws.php?format=json',
     222        $form
     223    );
     224
     225    my $content = {};
     226        eval {
     227            $content = from_json(
     228                $result->content
     229            );
     230        };
     231
     232    return ( $result->is_success, $result->status_line, $content );
     233       
     234}
     235
    211236
    212237sub UploadImage {
Note: See TracChangeset for help on using the changeset viewer.