Граф коммитов

211 Коммитов

Автор SHA1 Сообщение Дата
Paul Kozlovitch 2eab63fba6 fixed: finding element to autofocus 2014-08-18 11:31:53 +03:00
Paul Kozlovitch fd8bafa6a0 fixed: finding element to autofocus
added check if element has children, before trying to traverse through
them
2014-08-15 18:16:24 +03:00
David I. Lehn 66aa3b3605 Make constants local vars. 2014-07-28 19:03:23 -04:00
Paul Kozlovitch 4e4019739f fixed: first reposition, then autofocus
to prevent document scrolling on focus() call
2014-06-26 15:34:24 +03:00
Cory Brown e74e47f218 correctly deals with submits of forms of type dialog 2014-04-28 12:03:00 -06:00
Cory Brown fd89705794 refactor submit handling within modal to account for dynamically added forms 2014-04-28 10:51:20 -06:00
Cory Brown 2a35773f31 more explicit comparisions 2014-04-28 10:33:40 -06:00
Cory dea6af02ad IE 11 reports a `CustomEvent` object 2014-04-14 13:49:33 -06:00
Cory Brown 09db916ead fix for IE 11 2014-04-14 12:05:27 -06:00
Austin Matzko fb258ba6c9 Prevent dialog top from going past top of screen. 2014-02-12 23:52:41 -05:00
Matt Falkenhagen 98aaf37e3f Merge pull request #11 from agektmr/master
changed autofocus to only applied when non-modal.
2014-01-05 03:28:21 -08:00
Matt Falkenhagen 9864a93e05 Merge pull request #12 from krman009/master
Added syntax highlighting.
2014-01-05 03:27:34 -08:00
Austin Matzko 1feb2a504a Reposition dialog before focusing on it, so scrolling does not happen prematurely. 2014-01-02 14:59:17 -05:00
Austin Matzko def77bf82d Set opacity styling for backdrop in a way that older IE can use. 2014-01-02 14:06:25 -05:00
Austin Matzko f93247e1a7 Do not attempt to throw a nonexistent error type. 2014-01-02 13:59:45 -05:00
Austin Matzko 0333e4acac Catch exceptions thrown by IE when attempting to focus on elements. 2014-01-02 13:42:41 -05:00
Austin Matzko 478e49a58a Find the index of the dialog in the stack, for those browsers that do not support "indexOf" 2014-01-02 13:42:41 -05:00
Austin Matzko a5e0f03029 Do not try to dispatch a custom "close" event in older browsers (such as IE) that do not support doing so. 2014-01-02 13:42:41 -05:00
Austin Matzko 01be272ba2 Set zoom=1 on the dialog element, in order to trigger hasLayout for older IEs and show the element. 2014-01-02 13:42:41 -05:00
Austin Matzko b6456d6930 When older IEs throw an error at setting the background-color using RGBA, use something they understand. 2014-01-02 12:55:26 -05:00
Austin Matzko 7753b01c7d Older browsers do not have "classList," but there is no reason to use it on a newly-created element anyways. 2014-01-02 11:54:14 -05:00
Austin Matzko 10ac08e23e Older browsers do not have forEach, so iterate using while instead. 2014-01-02 11:53:37 -05:00
Austin Matzko 15b226268c Older IEs do not have "bind," so use lambdas instead. 2014-01-02 11:52:34 -05:00
Austin Matzko 4c69ab0c07 Get dialog position for older IEs 2014-01-02 11:51:35 -05:00
Austin Matzko df91cac3b3 Get window height for older IEs 2014-01-02 11:51:06 -05:00
Kaushalya Mandaliya 06590c69d2 Added_Syntax_Highlighting 2013-12-19 17:49:40 +05:30
Eiji Kitamura 64a2a61673 removed comment 2013-12-18 17:52:01 +09:00
Eiji Kitamura 18e671592b changed autofocus to only applied when non-modal. 2013-12-18 17:00:30 +09:00
Eiji Kitamura efa6f5e103 tagged as 0.2.0 2013-12-17 23:07:31 +09:00
Matt Falkenhagen 97cadbff37 Merge pull request #10 from agektmr/master
ESC key support + 'cancel' event, autofocus, form[type=dialog]
2013-12-17 02:00:56 -08:00
Eiji Kitamura c61f4de568 one more fix 2013-12-17 18:58:18 +09:00
Eiji Kitamura 77b2edd80d another fix 2013-12-17 18:45:41 +09:00
Eiji Kitamura e0043ae807 fixed nits 2013-12-17 14:52:56 +09:00
Eiji Kitamura 1765be19e5 forms now propagate custom events for dialog 2013-12-17 00:50:58 +09:00
Eiji Kitamura 24138f317f autofocus is now supported 2013-12-16 15:58:24 +09:00
Eiji Kitamura 0cc4a0fb9a find form[method=dialog] instead of simply form 2013-12-16 10:24:00 +09:00
Eiji Kitamura ae9234c60a turned off "cancel" event bubbling, "ESC" key detection is now persistent 2013-12-16 00:24:43 +09:00
Eiji Kitamura f380f98448 added ESC key support and cancel event 2013-12-15 16:48:57 +09:00
Eiji Kitamura 806de1f717 encapsulated whole script and added private methods 2013-12-15 16:06:16 +09:00
Matt Falkenhagen 20e8c72a47 Make the backdrop fixed positioned, matching the spec. 2013-10-30 20:05:27 +09:00
Matt Falkenhagen f654c638d3 Merge pull request #1 from dinoboff/master
Add bower support
2013-10-30 03:50:23 -07:00
Matt Falkenhagen dbbb69f9a8 Merge pull request #7 from xballoy/master
Add the position of the backdrop
2013-10-30 03:49:45 -07:00
Xavier Balloy 2aa6aa54d5 Add the position of the backdrop 2013-10-29 14:12:04 +01:00
Matt Falkenhagen fe0ec5c4e8 Merge pull request #6 from zendesk/open-attribute
set and clear the open attribute
2013-10-17 23:59:20 -07:00
Mick Staugaard e8d5e2d469 displaying the dialogs is now done via CSS and not JavaScript 2013-10-17 10:57:52 -07:00
Mick Staugaard a90dfc54b8 set and clear the open attribute 2013-10-17 10:34:48 -07:00
Matt Falkenhagen 635481ba8e Merge pull request #2 from suhajdab/master
Added "close" event triggering and returnValue
2013-09-26 06:56:58 -07:00
Balázs Suhajda f48155420e Fix for "space after each comma" 2013-09-26 15:43:47 +02:00
Balázs Suhajda 57cc2165c9 Fix for "Missing space after the if" 2013-09-26 13:53:46 +02:00
Balázs Suhajda 35956f1800 Fix for previous 2013-09-26 13:32:21 +02:00