Changeset 3716

Show
Ignore:
Timestamp:
11/05/08 23:12:19 (5 years ago)
Author:
Cyrus
Message:

Merge on_***_to handlers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/web/luasrc/dispatcher.lua

    r3714 r3716  
    530530        end 
    531531 
     532        if config.on_valid_to and state and state > 0 and state < 2 then 
     533            luci.http.redirect(config.on_valid_to) 
     534            return 
     535        end 
     536 
     537        if config.on_changed_to and state and state > 1 then 
     538            luci.http.redirect(config.on_changed_to) 
     539            return 
     540        end 
     541 
    532542        if config.on_success_to and state and state > 0 then 
    533543            luci.http.redirect(config.on_success_to)