diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-31 02:05:07 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-31 02:05:07 +0200 |
commit | cdf8441a5148228fecbfb0941a1e998bee7a8e83 (patch) | |
tree | 75e7c4bb10a6f76d623380262add4ded30e90274 /templates | |
parent | 0675405a8cb0a35797e4f0b96bd9072986bd1507 (diff) |
transform add new linkn to a button which is more correct and doesnt break routing
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 1 | ||||
-rw-r--r-- | templates/part.addnew.php | 14 |
2 files changed, 12 insertions, 3 deletions
diff --git a/templates/main.php b/templates/main.php index e2679115a..7021884e0 100644 --- a/templates/main.php +++ b/templates/main.php @@ -32,6 +32,7 @@ <?php print_unescaped($this->inc('part.listfolder')) ?> </ul> + <!-- settigns --> <div id="app-settings" ng-controller="SettingsController as Settings"> <?php print_unescaped($this->inc('part.settings')) ?> </div> diff --git a/templates/part.addnew.php b/templates/part.addnew.php index b3e02afdf..d48e7b516 100644 --- a/templates/part.addnew.php +++ b/templates/part.addnew.php @@ -1,7 +1,15 @@ <li class="add-new"> - <a class="list-title list-title-with-icon" - data-apps-slide-toggle=".add-new-popup" - href="#">+ <span><?php p($l->t('Add Website'))?></span></a> + <div class="list-title list-title-with-icon heading" + ng-mouseover="longadd=true" + ng-mouseleave="longadd=false"> + + <button data-apps-slide-toggle=".add-new-popup" + ng-hide="longadd" + >+ </button> + <button data-apps-slide-toggle=".add-new-popup" + ng-show="longadd" + >+ <?php p($l->t('Add Website'))?></button> + </div> <div class="add-new-popup"> |