diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-23 17:55:30 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-23 17:55:30 +0200 |
commit | 6208debf043fc8af28de13515dec4d10ace99bc3 (patch) | |
tree | 3d1cfc3a94b622f5fc7c65fac0a8f9fb8aadfb37 /js/gui | |
parent | 4fa9c6d6cfc24b848bc8bb1526ef8ef50f046cb3 (diff) |
use firefox for ci and e2e
Diffstat (limited to 'js/gui')
-rw-r--r-- | js/gui/app.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/js/gui/app.js b/js/gui/app.js new file mode 100644 index 000000000..171911cec --- /dev/null +++ b/js/gui/app.js @@ -0,0 +1,36 @@ +/** + * ownCloud - core + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2014 + */ + +(function (window, document, $) { + + 'use strict'; + + $(document).ready(function () { + + var buttons = $('[data-app-slide-toggle-area]:not([data-app-slide-toggle-area=""])'); + + $(document).click(function (event) { + + buttons.each(function (index, button) { + console.log(button); + + var area = $(button).data('app-slide-toggle-area'); + + // if the + if (button === event.target) { + console.log(area); + event.stopPropagation(); + } + }); + + }); + }); + +}(window, document, jQuery));
\ No newline at end of file |