Changeset 879

Show
Ignore:
Timestamp:
12/11/06 11:49:38 (2 years ago)
Author:
fumiakiy
Message:

Fixed tag existence checking condition so it will work correctly. Also fixed javascript code so hitting enter key will work. BugId: 44741

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r878 r879  
    682682    my $class = $app->_load_driver_for($type) or return; 
    683683    if ($tag && $blog_id) { 
    684         require MT::Entry; 
    685684        require MT::ObjectTag; 
    686685        my $count = MT::ObjectTag->count({ 
    687            datasource => $class->datasource, 
     686           object_datasource => $class->datasource, 
    688687           blog_id => $blog_id, 
    689688           tag_id => $tag->id 
  • branches/wheeljack/tmpl/cms/list_tags.tmpl

    r613 r879  
    5656 
    5757function submit_edit(id) { 
     58    if ((0 != current_edit) && (id != current_edit)) 
     59        id = current_edit; 
    5860    // if old name matches new name, ignore submission (same as cancel) 
    5961    // if new name is already in our tagList array, warn user 
     
    123125                submit_edit_form(id); 
    124126            } 
     127        } else { 
     128            submit_edit_form(id); 
    125129        } 
    126130    } else {