diff options
Diffstat (limited to 'js/gui/app.js')
-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 |