Changeset 6543

Show
Ignore:
Timestamp:
09/03/08 10:40:14 (3 months ago)
Author:
p_lindheimer
Message:

fixes #3150 enclose javascript confirm and alert mesagges in gettext function for localization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/page.trunks.php

    r6298 r6543  
    459459 
    460460                        function disable_verify(field) { 
    461                             if (field.checked) { 
    462                                 var answer=confirm("Are you sure you want to disable this trunk in all routes it is used?"); 
    463                                 if (!answer) { 
    464                                     field.checked = false; 
    465                                 } 
    466                             } 
    467                             else { 
    468                                 alert("You have enabled this trunk in all routes it is used"); 
    469                             } 
     461                                if (field.checked) { 
     462                                        var answer=confirm("<?php echo _("Are you sure you want to disable this trunk in all routes it is used?") ?>"); 
     463                                        if (!answer) { 
     464                                                field.checked = false; 
     465                                        } 
     466                                } else { 
     467                                        alert("<?php echo _("You have enabled this trunk in all routes it is used") ?>"); 
     468                                } 
    470469                        } 
    471470 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads