Skip to content
Extraits de code Groupes Projets

WIP: Resolve "Gestion des prélèvements automatiques"

Ouvert olb requested to merge 311-gestion-des-prelevements-automatiques into develop
Comparer et
113 fichiers
+ 5532
354
Comparer les modifications
  • Côte à côte
  • En ligne
Fichiers
113
$(document).ready(function() {
$(".modal-select").each(function(index){
$(".modal-select").each(function(index) {
$(this).select2({
theme: "bootstrap",
width: '100%',
language: "fr",
dropdownParent: $(this).closest(".modal")
});
});
});
$(document).ready(function(){
$('.new-service-ticket-select').on('change', function(){
$(document).ready(function() {
$('.new-service-ticket-select').on('change', function() {
const value = $(this).val();
$('.new-service-link').each(function(index) {
$('.new-service-link').each(function(index) {
const orig_href = $(this).data('orig-href') || $(this).attr('href');
$(this).data('orig-href', orig_href);
$(this).attr('href', orig_href + '?ticket_number='+value);
$(this).attr('href', orig_href + '?ticket_number=' + value);
});
});
});
$(document).ready(function(){
$('.subscription-user-select').on('change', function(){
$(document).ready(function() {
$('.subscription-user-select').on('change', function() {
const value = $(this).val();
$(this).closest('.modal').find('.submit-link').attr('href', '/admin/users/'+ value +'/subscriptions/new');
$(this).closest('.modal').find('.submit-link').attr('href', '/admin/users/' + value + '/subscriptions/new');
});
});
Chargement en cours