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!
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

wb-disable-controls.js 426B

123456789101112
  1. function wbDisableControls() {
  2. $('input, select, button').attr('disabled', 'disabled');
  3. $('a').each(function() { $(this).data('old_href', $(this).attr('href')); });
  4. $('a').attr('href', null);
  5. }
  6. function wbEnableControls() {
  7. $('input, select, button').attr('disabled', null);
  8. $('a').each(function() { $(this).attr('href', $(this).data('old_href')); });
  9. }
  10. export { wbEnableControls, wbDisableControls };