IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

20 行
610B

  1. //
  2. // Copyright (C) Stanislaw Adaszewski, 2020
  3. // Contact: s.adaszewski@gmail.com
  4. // Website: https://adared.ch/wba
  5. // License: GNU Affero General Public License, Version 3
  6. //
  7. function wbDisableControls() {
  8. $('input, select, button').attr('disabled', 'disabled');
  9. $('a').each(function() { $(this).data('old_href', $(this).attr('href')); });
  10. $('a').attr('href', null);
  11. }
  12. function wbEnableControls() {
  13. $('input, select, button').attr('disabled', null);
  14. $('a').each(function() { $(this).attr('href', $(this).data('old_href')); });
  15. }
  16. export { wbEnableControls, wbDisableControls };