fix new prettier defaults
This commit is contained in:
parent
02b15e10cf
commit
43a1ead1cb
40 changed files with 111 additions and 122 deletions
|
@ -1,20 +1,11 @@
|
|||
/* globals $ */
|
||||
|
||||
$(document).on('click', '.delete', function() {
|
||||
$(document).on('click', '.delete', function () {
|
||||
$(this).hide();
|
||||
$(this)
|
||||
.closest('td')
|
||||
.find('.confirm')
|
||||
.show();
|
||||
$(this).closest('td').find('.confirm').show();
|
||||
});
|
||||
|
||||
$(document).on('click', '.cancel', function() {
|
||||
$(this)
|
||||
.closest('td')
|
||||
.find('.delete')
|
||||
.show();
|
||||
$(this)
|
||||
.closest('td')
|
||||
.find('.confirm')
|
||||
.hide();
|
||||
$(document).on('click', '.cancel', function () {
|
||||
$(this).closest('td').find('.delete').show();
|
||||
$(this).closest('td').find('.confirm').hide();
|
||||
});
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/* globals $ */
|
||||
|
||||
$(document).on('click', 'button#archive-procedure', function() {
|
||||
$(document).on('click', 'button#archive-procedure', function () {
|
||||
$('button#archive-procedure').hide();
|
||||
$('#confirm').show();
|
||||
});
|
||||
|
||||
$(document).on('click', '#confirm #cancel', function() {
|
||||
$(document).on('click', '#confirm #cancel', function () {
|
||||
$('button#archive-procedure').show();
|
||||
$('#confirm').hide();
|
||||
});
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$(document).on('turbolinks:load', wysihtml5_active);
|
||||
|
||||
function wysihtml5_active() {
|
||||
$('.wysihtml5').each(function(i, elem) {
|
||||
$('.wysihtml5').each(function (i, elem) {
|
||||
$(elem).wysihtml5({
|
||||
toolbar: {
|
||||
fa: true,
|
||||
|
|
|
@ -7,11 +7,11 @@ function init_default_data_block() {
|
|||
$('.default-data-block #dossier .carret-right').toggle();
|
||||
$('.default-data-block #dossier .carret-down').toggle();
|
||||
|
||||
$('.default-data-block .title').click(function() {
|
||||
$('.default-data-block .title').click(function () {
|
||||
toggle_default_data_bloc(this, 400);
|
||||
});
|
||||
|
||||
$('.new-action').click(function() {
|
||||
$('.new-action').click(function () {
|
||||
var messages_block = $(this)
|
||||
.parents()
|
||||
.closest('.default-data-block')
|
||||
|
@ -19,7 +19,7 @@ function init_default_data_block() {
|
|||
toggle_default_data_bloc(messages_block, 400);
|
||||
});
|
||||
|
||||
$('.default-data-block.default_visible').each(function() {
|
||||
$('.default-data-block.default_visible').each(function () {
|
||||
toggle_default_data_bloc($(this).find('.title'), 0);
|
||||
});
|
||||
|
||||
|
|
|
@ -3,30 +3,23 @@
|
|||
$(document).on('turbolinks:load', filters_init);
|
||||
|
||||
function filters_init() {
|
||||
$('html').click(function(event) {
|
||||
$('html').click(function (event) {
|
||||
var visible_filter = $('.filter_framed:visible');
|
||||
if (visible_filter.length) {
|
||||
if (
|
||||
!$(event.target)
|
||||
.closest('.filter_framed')
|
||||
.is(':visible')
|
||||
) {
|
||||
if (!$(event.target).closest('.filter_framed').is(':visible')) {
|
||||
visible_filter.hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.filter').on('click', function(event) {
|
||||
$('.filter').on('click', function (event) {
|
||||
filter_framed_show(event);
|
||||
filter_framed_close_all_excepted(framed_id(event));
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
$('.erase-filter').on('click', function() {
|
||||
$(this)
|
||||
.parent()
|
||||
.find('.filter_input')
|
||||
.val('');
|
||||
$('.erase-filter').on('click', function () {
|
||||
$(this).parent().find('.filter_input').val('');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* globals $ */
|
||||
|
||||
$(document).on('click', '#dossiers-list tr', function(event) {
|
||||
$(document).on('click', '#dossiers-list tr', function (event) {
|
||||
var href = $(this).data('href');
|
||||
if (href && event.target.tagName !== 'A') {
|
||||
location.href = href;
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
$(document).on('turbolinks:load', action_type_de_champs);
|
||||
|
||||
function action_type_de_champs() {
|
||||
$("input[type='email']").on('change', function() {
|
||||
$("input[type='email']").on('change', function () {
|
||||
toggleErrorClass(this, validateEmail($(this).val()));
|
||||
});
|
||||
|
||||
$("input[type='number']").on('change', function() {
|
||||
$("input[type='number']").on('change', function () {
|
||||
toggleErrorClass(this, validateNumber($(this).val()));
|
||||
});
|
||||
|
||||
$("input[type='phone']").on('change', function() {
|
||||
$("input[type='phone']").on('change', function () {
|
||||
var val = $(this).val();
|
||||
val = val.replace(/[ ]/g, '');
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$(document).on('turbolinks:load', modal_action);
|
||||
|
||||
function modal_action() {
|
||||
$('#pj-modal').on('show.bs.modal', function(event) {
|
||||
$('#pj-modal').on('show.bs.modal', function (event) {
|
||||
$('#pj-modal .modal-body .table .tr-content').hide();
|
||||
|
||||
var button = $(event.relatedTarget); // Button that triggered the modal
|
||||
|
|
|
@ -8,7 +8,7 @@ function button_edit_procedure_init() {
|
|||
}
|
||||
|
||||
function buttons_api_carto() {
|
||||
$('#procedure-module-api-carto-use-api-carto').on('change', function() {
|
||||
$('#procedure-module-api-carto-use-api-carto').on('change', function () {
|
||||
$('#modules-api-carto').toggle();
|
||||
});
|
||||
|
||||
|
@ -17,7 +17,7 @@ function buttons_api_carto() {
|
|||
}
|
||||
|
||||
function button_individual() {
|
||||
$('#procedure_for_individual').on('change', function() {
|
||||
$('#procedure_for_individual').on('change', function () {
|
||||
$('#individual-with-siret').toggle();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue