Changeset 6755

Show
Ignore:
Timestamp:
09/16/08 15:53:50 (5 years ago)
Author:
sasargen
Message:

ARI: disable delete button on callmonitor page when no recordings shown

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/callmonitor.module

    r6747 r6755  
    142142    // build controls 
    143143    if ($CALLMONITOR_ALLOW_DELETE) { 
     144      if (count($recordings) > 0) { 
     145        $controls .= "<button "; 
     146      } 
     147      else { 
     148        $controls .= "<button disabled='disabled' "; 
     149      } 
    144150      $controls .= " 
    145         <button class='infobar' type='submit' onclick=\"document.callmonitor_form.a.value='delete'\"> 
     151        class='infobar' type='submit' onclick=\"document.callmonitor_form.a.value='delete'\"> 
    146152        " . _("delete") . " 
    147153        </button>