diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-22 02:08:53 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-03 22:51:56 +0100 |
commit | 5d3fb35cd149288ddbab94ffa903c5977ca3da76 (patch) | |
tree | cf0f7f857de25ff16e6275f2bd48d2c683585e3f | |
parent | 918dc873768359cbb7de5e83bc900fb0dacce938 (diff) | |
download | gitlab-ce-5d3fb35cd149288ddbab94ffa903c5977ca3da76.tar.gz |
Rename JS behaviors
4 files changed, 10 insertions, 10 deletions
diff --git a/app/assets/javascripts/behaviors/details_behavior.coffee b/app/assets/javascripts/behaviors/details_behavior.coffee new file mode 100644 index 00000000000..7ad5c818946 --- /dev/null +++ b/app/assets/javascripts/behaviors/details_behavior.coffee @@ -0,0 +1,5 @@ +$ -> + $("body").on "click", ".js-details-target", -> + container = $(@).closest(".js-details-container") + + container.toggleClass("open") diff --git a/app/assets/javascripts/behaviors/toggler_behavior.coffee b/app/assets/javascripts/behaviors/toggler_behavior.coffee new file mode 100644 index 00000000000..3fefbf8e121 --- /dev/null +++ b/app/assets/javascripts/behaviors/toggler_behavior.coffee @@ -0,0 +1,5 @@ +$ -> + $("body").on "click", ".js-toggler-target", -> + container = $(@).closest(".js-toggler-container") + + container.toggleClass("on") diff --git a/app/assets/javascripts/behaviours/details_behavior.coffee b/app/assets/javascripts/behaviours/details_behavior.coffee deleted file mode 100644 index f75284d9cf6..00000000000 --- a/app/assets/javascripts/behaviours/details_behavior.coffee +++ /dev/null @@ -1,5 +0,0 @@ -$ -> - $("body").on "click", ".js-details-target", -> - container = $(@).closest ".js-details-container" - - container.toggleClass "open" diff --git a/app/assets/javascripts/behaviours/toggler_behaviour.coffee b/app/assets/javascripts/behaviours/toggler_behaviour.coffee deleted file mode 100644 index 76f200d4667..00000000000 --- a/app/assets/javascripts/behaviours/toggler_behaviour.coffee +++ /dev/null @@ -1,5 +0,0 @@ -$ -> - $("body").on "click", ".js-toggler-target", -> - container = $(@).closest ".js-toggler-container" - - container.toggleClass "on" |