/modules/sms_sendtophone/sms_sendtophone.js
https://gitlab.com/vozmob/smsframework · JavaScript · 11 lines · 11 code · 0 blank · 0 comment · 2 complexity · 77ac0db30e50c56e9eca95cf9041f616 MD5 · raw file
- Drupal.behaviors.smssendtophone = function (context) {
- $("a.sms-sendtophone").addClass('thickbox').each(function(i) {
- if ($(this).attr('href').search(/\?/) < 0) {
- $(this).attr('href', $(this).attr('href').concat('?'));
- }
- else {
- $(this).attr('href', $(this).attr('href').concat('&'));
- }
- $(this).attr('href', $(this).attr('href').concat('height=275&width=300&thickbox=1'));
- })
- }