Changeset 12

Show
Ignore:
Timestamp:
03/19/07 10:22:01 (2 years ago)
Author:
root
Message:

Make clid on busy buttons show up when 1st load instead of permanent text

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/op_server.pl

    r10 r12  
    78787878            } 
    78797879        } 
    7880         for $interno ( keys %estadoboton ) { 
    7881  
    7882             if ( $estadoboton{$interno} =~ /^busy/ ) { 
    7883                 send_status_to_flash( $socket, "$interno|state|busy", 0 ); 
    7884                 if ( defined( $botonlabel{$interno} ) ) { 
    7885                     send_status_to_flash( $socket, "$interno|changelabel0|$botonlabel{$interno}", 0 ); 
    7886                 } 
    7887             } 
    7888             elsif ( $estadoboton{$interno} =~ /ringi/ ) { 
    7889                 send_status_to_flash( $socket, "$interno|state|ringing", 0 ); 
    7890             } 
    7891             if ( defined( $botonclid{$interno} ) ) { 
    7892                 my $texti = ""; 
    7893                 if ( $botonclid{$interno} ne "" ) { 
    7894                     send_status_to_flash( $socket, "$interno|settext|$botonclid{$interno}", 0 ); 
    7895                 } 
    7896             } 
    7897  
    7898         } 
    78997880        if ( keys(%botonpermanenttext) ) { 
    79007881            for $interno ( keys %botonpermanenttext ) { 
     
    79057886            } 
    79067887        } 
    7907  
     7888        for $interno ( keys %estadoboton ) { 
     7889 
     7890            if ( $estadoboton{$interno} =~ /^busy/ ) { 
     7891                send_status_to_flash( $socket, "$interno|state|busy", 0 ); 
     7892                if ( defined( $botonlabel{$interno} ) ) { 
     7893                    send_status_to_flash( $socket, "$interno|changelabel0|$botonlabel{$interno}", 0 ); 
     7894                } 
     7895            } 
     7896            elsif ( $estadoboton{$interno} =~ /ringi/ ) { 
     7897                send_status_to_flash( $socket, "$interno|state|ringing", 0 ); 
     7898            } 
     7899            if ( defined( $botonclid{$interno} ) ) { 
     7900                my $texti = ""; 
     7901                if ( $botonclid{$interno} ne "" ) { 
     7902                    send_status_to_flash( $socket, "$interno|settext|$botonclid{$interno}", 0 ); 
     7903                } 
     7904            } 
     7905 
     7906        } 
    79087907        if ( keys(%botonlinked) ) { 
    79097908            for $interno ( keys %botonlinked ) {