/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

  1. Drupal.behaviors.smssendtophone = function (context) {
  2. $("a.sms-sendtophone").addClass('thickbox').each(function(i) {
  3. if ($(this).attr('href').search(/\?/) < 0) {
  4. $(this).attr('href', $(this).attr('href').concat('?'));
  5. }
  6. else {
  7. $(this).attr('href', $(this).attr('href').concat('&'));
  8. }
  9. $(this).attr('href', $(this).attr('href').concat('height=275&width=300&thickbox=1'));
  10. })
  11. }