Commit Graph

69 Commits

Author SHA1 Message Date
niphlod
17f1a51133 fixes #1100
now elements with data-w2p_disable are not disabled.
in addition, for non-ajax forms, disabled submit buttons are reenabled
after 5 seconds

plus reindented, refactored AND jslinted
2015-12-30 16:19:39 +01:00
ilvalle
d883e3d84e added w2p_target attribute in form to control the output destination 2015-11-14 12:03:20 +01:00
mdipierro
8e3925820c allow disabling of confirmation in js delete 2015-05-02 23:16:05 -05:00
niphlod
a6b50dcdcd streamline behaviour of component (trapped) forms with multiple submit buttons
this is because jquery can't know what button was pressed when the 
submit event is triggered. We circumvent it adding an hidden field before
triggering the submission

BTW: don't know why the commit seems huge. I just changed a bit the trap_form
function to handle the corner case and streamlined what disableElement, 
enableElement, disableFormElements, enableFormElements do, 
along with formInputClickSelector
2014-11-08 23:04:58 +01:00
mdipierro
8804a9ed77 Merge pull request #524 from niphlod/js/speed
Waiting for a sane "prefixing", a much more efficient way to find errors
2014-10-16 16:12:05 -05:00
niphlod
b43ef65eb1 while we wait for a sane "prefixing", use a much more efficient way to find errors
This comes from an unfortunate choice of naming conventions and the fact that 
manage errors gets called even on the full document on page load.
I had a table full of .error-"classed" elements and it took nearly 30 seconds for that
snippet to hide and fade them in. We should definitevely prefix every css class with
something that won't clash with everything else.
2014-10-16 21:08:55 +02:00
niphlod
15fe54bdca refactor main_hook to a function 2014-10-14 23:42:41 +02:00
niphlod
db68a2a10e fixes issue 1985
plus made a pass to jsbeautifier for improved reading
plus fixed an annoying trailing comma that could cause issues with IE >= 8
2014-09-25 22:49:40 +02:00
ilvalle
7fa8f1fa08 fix web2py.js with show_if and grid 2014-09-05 16:17:36 +02:00
mdipierro
ae0749d6b8 reverted some bs3 changes 2014-03-03 08:13:37 -06:00
mdipierro
1e9872c015 welcome more bootstrap3 compliant, thanks Paolo Caruccio 2014-02-27 09:33:26 -06:00
ilvalle
2d669a50b2 Manage w2p:enable-with in order to reuse form 2013-12-13 12:09:52 +01:00
ilvalle
371f97e050 invalidate function in web2py.js 2013-12-11 15:50:19 +01:00
niphlod
b0b2fd7804 fixed naming bug. Thanks @Peter Govers for the patch 2013-12-10 21:08:39 +01:00
Massimo
e6f84c45b9 fixed 1756:scripts/sessions2trash.py doesn't work with 'separate=True', thanks Paolo Valleri 2013-11-07 10:25:29 -06:00
mdipierro
3defd7d7b1 fixed issue 1763 user of arrows in numerical fields 2013-11-06 11:11:01 -06:00
mdipierro
643e945540 fixed web2py.js for trapped non-self-submitting forms, thanks Vinicius 2013-11-06 10:30:41 -06:00
niphlod
a6223cc319 fixes issue 1753, web2py.js doesn't set the disabled state for inputs with name 2013-10-31 21:10:37 +01:00
mdipierro
06ca5e6857 grid refcator patch for ajax, thanks Niphlod 2013-10-05 08:52:45 -05:00
niphlod
cb6ae0516c pass the correct element when trapping links 2013-09-25 00:09:19 +02:00
niphlod
4f44188997 fixed issue when target is not none. removed useless file in admin/static/js 2013-09-19 21:52:45 +02:00
Paolo
28b4badb9a concatenation of filter and find for a better <title> discovery 2013-09-18 17:33:54 +02:00
niphlod
837808bd77 never got to understand ASI. Let's behave and have a semicolon. 2013-09-14 00:22:53 +02:00
ilvalle
5176890ff3 updated web2py.js for all apps (examples and admin) 2013-09-09 08:43:07 +02:00
niphlod
a6baead531 streamlined the "working..." status handling and added an example 2013-09-07 15:34:03 +02:00
niphlod
79bd1d2e24 help preventing double submissions for normal forms too. Helps with issue #1644 2013-09-04 23:22:41 +02:00
niphlod
cd30382c0e attach datetime/date/time validators only on events 2013-09-03 20:52:25 +02:00
niphlod
24bed97a51 fixed the order of response.js execution. Thanks @Anthony 2013-08-29 20:55:03 +02:00
mdipierro
0f2f6a35f4 no more autocomplete for date/time inputs, thaks Paolo 2013-07-19 11:31:32 -05:00
niphlod
2d95327a79 normalized behaviour in A() handler, fixed anonymous function block. 2013-07-14 19:42:49 +02:00
mdipierro
e7565845a0 fixed problem with web2py.js, thanks Niphlod 2013-07-07 12:25:31 -05:00
niphlod
917d2087c5 fixed the collapse function, refactored LOAD() to use new web2py.js 2013-06-27 22:31:11 +02:00
niphlod
81495f7cca nicer alignment, removed leftovers, new listwidget and passwordwidget 2013-06-27 00:25:44 +02:00
mdipierro
cdf8ee8d85 web2py.js with no inline code, thanks Niphlod (this upgrade required upgrading web2py.js 2013-06-26 05:12:47 -05:00
mdipierro
1d38b87719 jQuery('#component').reload() 2013-06-21 06:44:37 -05:00
Massimo
ea3aa62476 fixed show_if with LOAD, thanks Niphlod 2013-06-04 16:41:05 -05:00
mdipierro
50dcd7a572 conditional fields 2013-06-03 17:48:13 -05:00
mdipierro
93f26540e6 allow component that do not reload, thanks Niphlod 2013-02-15 17:33:55 -06:00
mdipierro
88d2216780 fixed issue 1254, change of scope for web2py-component-command and web2py-component-flash, thanks Paolo valleri 2013-01-08 09:06:30 -06:00
mdipierro
6fc307cf7b better reporting of 500 ajax errors, issue 832, thanks Paolo Velleri 2012-12-24 11:21:37 -06:00
mdipierro
411ef4549e closeflash patch, thanks Paolo, issue 1191 2012-12-03 16:06:27 -06:00
mdipierro
792b313891 Allow for Field Validators to handle None values, fixed issue 1183, thanks Joe Barnhart 2012-11-29 22:35:20 -06:00
mdipierro
2b05b92de8 fixed issue 1152, gae sql varchar limit, and fixed typo in fpdf 2012-11-17 11:46:46 -06:00
mdipierro
440885cee2 synced web2py.js, thanks Jeremy 2012-09-24 20:18:30 -05:00
mdipierro
be76f61c96 nore more typo fixed, thanks niphlod 2012-09-24 15:54:58 -05:00
mdipierro
ffca891f57 data, no attr, thanks Niphlod 2012-09-24 15:13:34 -05:00
mdipierro
823dbdfcc1 addClass/hasClass entropy_check, thanks Niphlod 2012-09-24 11:50:59 -05:00
mdipierro
d8417955b3 entropy check code in web2py.js, thanks Niphlod 2012-09-23 14:07:50 -05:00
mdipierro
084c22c282 redirect(...) now works on ajax responses, thanks Anthony 2012-08-08 10:05:09 -05:00
mdipierro
0b7eefd862 reverted http://code.google.com/p/web2py/source/detail?r=65caec4dae5f7c971d406beb0eb3b32f471d84a4, thanks Anthony 2012-08-07 22:45:46 -05:00