Browse Source

fix modal show

master
filesite 1 year ago
parent
commit
ea93e6884b
  1. 19
      www/js/tajian.js

19
www/js/tajian.js

@ -1,6 +1,25 @@
/* for theme TaJian */ /* for theme TaJian */
(function() { (function() {
//show modal
$('.btn-open').click(function(evt) {
var target_id = $(evt.target).parents('.btn-open').attr('href');
if ($(evt.target).hasClass('btn-open')) {
target_id = $(evt.target).attr('href');
}
$(target_id).css('display', 'block');
});
//hide modal
$('.btn-close').click(function(evt) {
$(evt.target).parents('.modal-mask').css('display', 'none');
});
$('.modal-mask').click(function(evt) {
if ($(evt.target).hasClass('modal-mask')) {
$(evt.target).css('display', 'none');
}
});
$('#btn_addfav').click(function(e) { $('#btn_addfav').click(function(e) {
var share_content = $('input[name=share_content]').val(), var share_content = $('input[name=share_content]').val(),
select_tag = $('select[name=tag]').val(); select_tag = $('select[name=tag]').val();

Loading…
Cancel
Save