167 Commits

Author SHA1 Message Date
Francisco Ribeiro
7aafd05cbb patched flash function to prevent XSS 2018-02-12 11:36:34 +00:00
mdipierro
14e58276cf form handling of f.options, f.regex, f.listable, f.rearchable 2017-11-10 18:41:41 -06:00
mdipierro
5583e9cdc7 R-2.16.0b1 2017-07-05 01:37:48 -05:00
Carlos Cesar Caballero Díaz
02d2fefc21 renamed "on_succes" option to "done" allowing multiple inputs
renamed "on_succes" option to "done" allowing multiple inputs,code
refactoring
2017-04-12 08:48:52 -04:00
Carlos Cesar Caballero Díaz
232598fd8d Added on_succes and custom options for web2py ajax function 2017-04-10 12:23:34 -04:00
Vinyl Darkscratch
fc0add67b5 Add web2py componentBegin event
Like the “w2p:componentComplete” event I added a while back, this is
another event that I use in my website, and I thought it would be
helpful to share it with others.  This way, you can easily catch when a
web2py component starts loading, and write a handler for whatever
reason (in my case, determining when the user is navigating to a new
page through a smooth loading function piggybacking off of the web2py
component system)
2016-11-29 14:05:17 -08:00
Vinyl Darkscratch
e19435dbcf Prevent Firefox from loading the page "javascript:null;" 2016-11-11 18:51:38 -08:00
Vinyl Darkscratch
f7adfbde76 Replace "#" link with "javascript:null;" 2016-11-11 03:30:50 -08:00
Vinyl Darkscratch
8e79e49ae3 Mobile (iOS) fix for dismissing flashes
iOS devices don’t like listening to clicks on most objects.  They
typically prefer a and button objects.  This fix replaces the
#closeflash span with a link to “#” instead (while also inheriting
text-decoration and color styling), so that mobile (iOS) devices will
allow you to close the flash.
2016-11-10 01:19:06 -08:00
Vinyl Darkscratch
7615848f83 Add a fired event after the component has finished loading
Sometimes we may want to know when the component is finished with it’s
loading process entirely to trigger animations or something similar.  I
added this for my own website, and I think that others may want to use
this.  It’s a small addition, but I hope that it will be helpful to
others!
2016-10-18 18:27:37 -07:00
Vinyl Darkscratch
a28b1e30c9 Merge remote-tracking branch 'web2py/master' 2016-10-10 20:49:54 -07:00
mdipierro
d03337a737 compile views with . separator anot _ seperator 2016-09-30 11:24:55 -05:00
mdipierro
4026357689 fixed undefined var in web2py.js 2016-09-27 16:49:20 -05:00
Vinyl Darkscratch
24d1eea554 Support for custom 503 responses
Added support for a custom 503 (temporary maintenance) page based upon
the DISABLED file in an app folder
2016-09-09 00:23:33 -07:00
mdipierro
e87378b07f allow a cllback in streamer 2016-08-16 19:12:47 -05:00
mdipierro
665e14186e fixed issue with sessions in db on GAE 2016-07-17 04:18:56 -05:00
mdipierro
67b27f4daf removed webshell 2016-07-01 01:59:12 -05:00
mdipierro
f8f471f51f new cheatsheet 2016-06-26 00:30:25 -05:00
mdipierro
f4a353960b merged conflicts 2016-06-12 19:59:58 -05:00
mdipierro
4bd002aee9 fixed CSRF in admin enabled/disable. thanks Nerendra Bhati 2016-05-04 09:11:55 -05:00
mdipierro
6400e28a85 fixed stupid 2016-04-13 08:40:19 -05:00
mdipierro
83cf098c07 fixed stupid.css and impersonate 2016-04-09 10:30:31 -05:00
Richard Vézina
c3aa02b3ce Improve welcome (web2py.com) site aesthetic 2016-04-08 15:16:58 -04:00
mdipierro
d94e8415c7 reverted stupid 2016-04-02 14:57:36 -05:00
mdipierro
ba2be80080 updated stupic.css and suport page 2016-04-02 14:35:28 -05:00
Leonel Câmara
d0f6ef4783 made stuff prettier
added myself to the contributor list :P
2016-03-31 00:29:28 +01:00
mdipierro
197b018534 fixed stupid.css again 2016-03-26 17:54:11 -05:00
mdipierro
46dc83a1bb synced to latest stupid.css 2016-03-25 23:57:13 -05:00
mdipierro
e6fad4f007 fixed default validators 2016-03-19 17:00:35 -05:00
mdipierro
d5d25e8110 jquery 1.12.2 2016-03-18 20:49:19 -05:00
mdipierro
86c70df1e7 updated style and spacing 2016-03-18 20:47:59 -05:00
mdipierro
702e7cbea2 added missing file 2016-03-09 11:50:48 -06:00
mdipierro
db223dc70a examples in stupid.css 2016-03-09 09:24:47 -06:00
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
mdipierro
dd180019a1 Merge pull request #1118 from matclab/readonly-label
Add readonly class to labels of readonly fields and set padding to 0
2015-12-04 10:43:17 -06:00
Mathieu Clabaut
864dbe73f2 Add readonly class to labels of readonly fields and set padding to 0
This allow for readonly fields content to be vertical aligned with their label
2015-12-04 15:29:45 +01:00
ilvalle
d883e3d84e added w2p_target attribute in form to control the output destination 2015-11-14 12:03:20 +01:00
mdipierro
7761219cba jquery 1.11.3, bootstrap 3.3.5 2015-08-07 02:10:27 -05:00
mdipierro
8e3925820c allow disabling of confirmation in js delete 2015-05-02 23:16:05 -05:00
mdipierro
70b0d67345 R-2.10.1 2015-03-31 14:57:40 -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
mdipierro
0120ad5b95 upgraded simplejson 2014-09-14 16:37:09 -05:00
ilvalle
7fa8f1fa08 fix web2py.js with show_if and grid 2014-09-05 16:17:36 +02:00
mdipierro
33fcfe2736 links to new videos 2014-08-30 21:33:27 -05:00
niphlod
0c30bc5d7d few "fashion" tweaks plus sphinx over epydoc docs 2014-04-08 23:03:15 +02:00
mdipierro
29ca1872b0 GAE should use 2.7, not 2.5 2014-03-29 17:28:45 -05:00