PageSourceSearch

https://www.cultura.gal/sites/all/modules/custom/cultura_evento/js/cultura_evento.js?tlvppw

js cultura.gal collected 2026-09-24 23:25:17 UTC 942 bytes, 24 lines download raw bytes

1
2/* global Drupal */
3
4(function($, Drupal) {
5  Drupal.behaviors.node_evento = {
6    attach:function() {
7      // Adjuntamos esta función para cuando se hace clic en las estrellas de añadir a tu agenda
8      $('.suggestion-block a :button').click(function(event) {
9        var link   = $(this);
10        if (jQuery('body.not-logged-in').length > 0) {
11          var message = Drupal.t('Para enviar un evento debes estar rexistrado');
12          var destUrl = (location && location.pathname) ? '?destination=suxestions' : '';
13          if (typeof jQuery.colorbox !== 'undefined') {
14            jQuery.colorbox({html:'<div class="text-center" style="padding: 0 15px;"><p>'+message+'</p>'+
15              '<a class="cultura-button-link btn-no-border" href="/user'+destUrl+'">Iniciar sesión</a></div>'});
16          } else {
17            alert(message);
18          }
19          event.preventDefault();
20        }
21      });
22    }
23  };
24}(jQuery, Drupal));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.