diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-12 11:22:18 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-12 11:22:40 +0100 |
commit | a75e37f56963bc55faf182811237cee8a4172fb7 (patch) | |
tree | 2c4048d9ffc6188d6886cafa4f4c4c38b089a1a8 /templates | |
parent | a1e85b1e4cc145e65575c08702f2e72f5ced1235 (diff) |
slide areas with jquery and slide click directive
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 8 | ||||
-rw-r--r-- | templates/part.addnew.php | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/templates/main.php b/templates/main.php index 5e3fec9b1..2b8cc1188 100644 --- a/templates/main.php +++ b/templates/main.php @@ -10,12 +10,14 @@ <?php print_unescaped($this->inc('part.showall')); ?> </ul> - <div id="app-settings" ng-class="{open: showSettings==true}" - ng-controller="SettingsController" hide-settings-when-focus-lost> + <div id="app-settings" ng-controller="SettingsController"> <div id="app-settings-header"> <button name="app settings" class="settings-button" - ng-click="showSettings=!showSettings"></button> + click-slide-toggle="{ + selector: '#app-settings-content', + hideOnFocusLost: true + }"></button> </div> <div id="app-settings-content"> <?php print_unescaped($this->inc('part.settings')) ?> diff --git a/templates/part.addnew.php b/templates/part.addnew.php index 59dc00380..c791b86d6 100644 --- a/templates/part.addnew.php +++ b/templates/part.addnew.php @@ -1,5 +1,9 @@ <li class="add-new" ng-controller="AddNewController"> - <a class="list-title list-title-with-icon" ng-click="showAdd=!showAdd" href="#"> + <a class="list-title list-title-with-icon" ng-click="showAdd=!showAdd" + click-slide-toggle="{ + selector: '.add-new-popup', + hideOnFocusLost: true + }" href="#"> <?php p($l->t('New'))?> </a> |