Changeset 8789

Show
Ignore:
Timestamp:
02/08/10 07:47:36 (7 months ago)
Author:
mbrevda
Message:

closes #4025; disable ivr buttons until page is completly loaded

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.7/ivr/page.ivr.php

    r8709 r8789  
    114114        <input type="hidden" name="display" value="ivr" /> 
    115115        <input type="hidden" name="id" value="<?php echo $id ?>" /> 
    116         <input name="Submit" type="submit" value="<?php echo _("Save")?>" tabindex="<?php echo ++$tabindex;?>"
     116        <input name="Submit" type="submit" value="<?php echo _("Save")?>" tabindex="<?php echo ++$tabindex;?>" disabled
    117117<?php 
    118118        $usage_list = array(); 
     
    132132        } else { 
    133133?> 
    134         <input name="delete" type="submit" value="<?php echo _("Delete")." "._("Digital Receptionist")." {$ivr_details['displayname']}"; ?>" /> 
     134        <input name="delete" type="submit" value="<?php echo _("Delete")." "._("Digital Receptionist")." {$ivr_details['displayname']}"; ?>" disabled/> 
    135135<?php 
    136136        } 
     
    289289                <tr><td colspan=2> 
    290290 
    291                         <input name="increase" type="submit" value="<?php echo _("Increase Options")?>"
     291                        <input name="increase" type="submit" value="<?php echo _("Increase Options")?>" disabled
    292292                        &nbsp; 
    293                         <input name="Submit" type="submit" value="<?php echo _("Save")?>" tabindex="<?php echo ++$tabindex;?>"
     293                        <input name="Submit" type="submit" value="<?php echo _("Save")?>" tabindex="<?php echo ++$tabindex;?>" disabled
    294294                        &nbsp; 
    295295                        <?php if ($nbroptions > 1) { ?> 
    296                         <input name="decrease" type="submit" value="<?php echo _("Decrease Options")?>"
     296                        <input name="decrease" type="submit" value="<?php echo _("Decrease Options")?>" disabled
    297297                        <?php } ?> 
    298298                </td> 
     
    326326        echo $module_hook->hookHtml; 
    327327?> 
    328         <input name="increase" type="submit" value="<?php echo _("Increase Options")?>"
     328        <input name="increase" type="submit" value="<?php echo _("Increase Options")?>" disabled
    329329        &nbsp; 
    330         <input name="Submit" type="submit" value="<?php echo _("Save")?>"
     330        <input name="Submit" type="submit" value="<?php echo _("Save")?>" disabled
    331331        &nbsp; 
    332332        <?php if ($nbroptions > 1) { ?> 
    333         <input name="decrease" type="submit" value="<?php echo _("Decrease Options")?>"
     333        <input name="decrease" type="submit" value="<?php echo _("Decrease Options")?>" disabled
    334334        <?php } ?> 
    335335         
    336336        <script language="javascript"> 
    337337        <!-- 
    338  
     338$(document).ready(function() {   
     339        $(':submit:disabled').removeAttr('disabled');  
     340});  
    339341var theForm = document.prompt; 
    340342theForm.displayname.focus();