Changeset 807

Show
Ignore:
Timestamp:
04/18/08 15:47:02 (3 months ago)
Author:
seancribbs
Message:

All flash messages now fade after 3 seconds.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/radiant/CHANGELOG

    r805 r807  
    22 
    33=== SVN 
     4* All flash messages now fade after 3 seconds. [Sean Cribbs] 
     5* Notice area now fades away after 3 seconds. [Andrew O'Brien] 
    46* Update RSpec and RSpec on Rails to r3333. [Josh French] 
    57* Add autotest support for Radiant and extensions. [Josh French] 
  • trunk/radiant/public/javascripts/admin.js

    r806 r807  
    66        breadcrumb = $('page_breadcrumb'), 
    77        oldTitle = title.value; 
    8      
     8 
    99    if (!slug || !breadcrumb) return; 
    10      
     10 
    1111    new Form.Element.Observer(title, 0.15, function() { 
    1212      if (oldTitle.toSlug() == slug.value) slug.value = title.value.toSlug(); 
     
    1818  when('tab-control', function(element) { 
    1919    tabControl = new TabControl(element); 
    20      
     20 
    2121    $$('#pages div.part > input[type=hidden]:first-child').each(function(part, index) { 
    2222      var page = part.up('.page'); 
     
    2929  when('tag-reference-popup', function(popup) { 
    3030    var tags, searchingOn = ""; 
    31      
     31 
    3232    new Form.Element.Observer('search-tag-reference', 0.5, function(element, value) { 
    3333      if (!tags) tags = popup.select('.tag-description') 
    34        
     34 
    3535      if (value.length < 3 && searchingOn != "") { 
    3636        searchingOn = ""; 
     
    4949    }); 
    5050  }); 
    51    
     51 
    5252  when('page_status_id', function(select){ 
    5353    if($F('page_status_id') == '100') 
    5454      $('publication-date').show().select('select').invoke('enable'); 
    55      
     55 
    5656    select.observe('change', function(){ 
    5757      if($F(this) == '100') 
     
    6363 
    6464  when('notice', function(notice) { 
    65     new Effect.Fade(notice, {delay: 3}) 
     65    new Effect.Fade(notice, {delay: 3}); 
     66  }); 
     67 
     68  when('error', function(error) { 
     69    new Effect.Fade(error, {delay: 3}); 
    6670  }); 
    6771}); 
     
    7377      return element.nodeValue.include(word); 
    7478    } else { 
    75       return $A(element.childNodes).any(function(child) {  
    76         return Element.hasWord(child, word);  
     79      return $A(element.childNodes).any(function(child) { 
     80        return Element.hasWord(child, word); 
    7781      }); 
    7882    }