diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-07 08:22:45 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-07 08:22:45 +0400 |
commit | 96f17c2dac1dd4f22237be289907e3b3979e5f21 (patch) | |
tree | c8b62acb02956db5f20a032583f6ecc91d36a5ee /plugins | |
parent | c9e9801181480d0ac8fbd6d9dfc0f0b144b5b6a9 (diff) |
white space
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MobileMessaging/templates/reportParametersScheduledReports.twig | 106 |
1 files changed, 48 insertions, 58 deletions
diff --git a/plugins/MobileMessaging/templates/reportParametersScheduledReports.twig b/plugins/MobileMessaging/templates/reportParametersScheduledReports.twig index 3e9087a76a..5d69b2d9f1 100644 --- a/plugins/MobileMessaging/templates/reportParametersScheduledReports.twig +++ b/plugins/MobileMessaging/templates/reportParametersScheduledReports.twig @@ -1,71 +1,61 @@ <tr class='{{ reportType }}'> <td class="first"> - {{ 'MobileMessaging_PhoneNumbers'|translate }} + {{ 'MobileMessaging_PhoneNumbers'|translate }} </td> <td> - <div class="entityInlineHelp"> - {% if phoneNumbers|length == 0 %} - {{ 'MobileMessaging_MobileReport_NoPhoneNumbers'|translate }} - {% else %} - {% for phoneNumber in phoneNumbers %} - <label><input name='phoneNumbers' type='checkbox' id='{{ phoneNumber }}'/>{{ phoneNumber }}</label> - <br/> - {% endfor %} - {{ 'MobileMessaging_MobileReport_AdditionalPhoneNumbers'|translate }} - {% endif %} - <a href='{{ linkTo({'module':"MobileMessaging", 'action': 'index', 'updated':null}) }}'>{{ 'MobileMessaging_MobileReport_MobileMessagingSettingsLink'|translate }}</a> - </div> - <script> - $(function () { - resetReportParametersFunctions ['{{ reportType }}'] = - function () { - - var reportParameters = { - 'phoneNumbers': [] - }; - - updateReportParametersFunctions['{{ reportType }}'](reportParameters); - }; - - updateReportParametersFunctions['{{ reportType }}'] = - function (reportParameters) { - - if (reportParameters == null) return; - - $('[name=phoneNumbers]').removeProp('checked'); - $(reportParameters.phoneNumbers).each(function (index, phoneNumber) { - $('#\\' + phoneNumber).prop('checked', 'checked'); - }); - - $(document).trigger('ScheduledReport.edit', {}); - - }; - - getReportParametersFunctions['{{ reportType }}'] = - function () { + <div class="entityInlineHelp"> + {% if phoneNumbers|length == 0 %} + {{ 'MobileMessaging_MobileReport_NoPhoneNumbers'|translate }} + {% else %} + {% for phoneNumber in phoneNumbers %} + <label><input name='phoneNumbers' type='checkbox' id='{{ phoneNumber }}'/>{{ phoneNumber }}</label> + <br/> + {% endfor %} + {{ 'MobileMessaging_MobileReport_AdditionalPhoneNumbers'|translate }} + {% endif %} + <a href='{{ linkTo({'module':"MobileMessaging", 'action': 'index', 'updated':null}) }}'>{{ 'MobileMessaging_MobileReport_MobileMessagingSettingsLink'|translate }}</a> + </div> + <script> + $(function () { + resetReportParametersFunctions ['{{ reportType }}'] = function () { + var reportParameters = { + 'phoneNumbers': [] + }; + updateReportParametersFunctions['{{ reportType }}'](reportParameters); + }; + + updateReportParametersFunctions['{{ reportType }}'] = function (reportParameters) { + + if (reportParameters == null) return; + + $('[name=phoneNumbers]').removeProp('checked'); + $(reportParameters.phoneNumbers).each(function (index, phoneNumber) { + $('#\\' + phoneNumber).prop('checked', 'checked'); + }); - var parameters = Object(); + $(document).trigger('ScheduledReport.edit', {}); - var selectedPhoneNumbers = - $.map( - $('[name=phoneNumbers]').filter(function() { - return !this.disabled && this.checked; - }), - function (phoneNumber) { - return $(phoneNumber).attr('id'); + }; - } - ); + getReportParametersFunctions['{{ reportType }}'] = function () { + var parameters = Object(); + var selectedPhoneNumbers = $.map( + $('[name=phoneNumbers]').filter(function() { + return !this.disabled && this.checked; + }), + function (phoneNumber) { + return $(phoneNumber).attr('id'); + } + ); - // returning [''] when no phone numbers are selected avoids the "please provide a value for 'parameters'" error message - parameters.phoneNumbers = - selectedPhoneNumbers.length > 0 ? selectedPhoneNumbers : ['']; + // returning [''] when no phone numbers are selected avoids the "please provide a value for 'parameters'" error message + parameters.phoneNumbers = selectedPhoneNumbers.length > 0 ? selectedPhoneNumbers : ['']; - return parameters; - }; - }); - </script> + return parameters; + }; + }); + </script> </td> </tr> |