From 6208debf043fc8af28de13515dec4d10ace99bc3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 23 May 2014 17:55:30 +0200 Subject: use firefox for ci and e2e --- js/gui/app.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 js/gui/app.js (limited to 'js/gui') 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 + * @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 -- cgit v1.2.3