mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-1115 - fix lightbox mobile events handling
This commit is contained in:
@@ -2,8 +2,8 @@ $(document).ready(function () {
|
|||||||
if (typeof validator_loaded === 'boolean')
|
if (typeof validator_loaded === 'boolean')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
$('body').on('touchstart click', '.confirm_report', function (event) {
|
||||||
$('.confirm_report').on('click', function () {
|
event.preventDefault();
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
$('.loader', $this).css({
|
$('.loader', $this).css({
|
||||||
@@ -38,9 +38,10 @@ $(document).ready(function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.agreement_radio').on('vmousedown', function () {
|
$('body').on('touchstart click', '.agreement_radio', function (event) {
|
||||||
var sselcont_id = $(this).attr('for').split('_').pop();
|
var sselcont_id = $(this).attr('for').split('_').pop();
|
||||||
var agreement = $('#' + $(this).attr('for')).val() == 'yes' ? '1' : '-1';
|
var agreement = $('#' + $(this).attr('for')).val() == 'yes' ? '1' : '-1';
|
||||||
|
|
||||||
@@ -81,10 +82,11 @@ $(document).ready(function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return false;
|
//return false;
|
||||||
|
|
||||||
});
|
});
|
||||||
$('.note_area_validate').on('click', function () {
|
|
||||||
|
$('body').on('touchstart click', '.note_area_validate', function (event) {
|
||||||
var sselcont_id = $(this).closest('form').find('input[name="sselcont_id"]').val();
|
var sselcont_id = $(this).closest('form').find('input[name="sselcont_id"]').val();
|
||||||
|
|
||||||
$.mobile.loading();
|
$.mobile.loading();
|
||||||
|
Reference in New Issue
Block a user