Opened 3 years ago

Closed 3 years ago

#2415 closed Task (fixed)

simplify language and website selection

Reported by: SteveG Owned by: SteveG
Priority: low Milestone: 1.5 - Piwik 1.5
Component: UI - UX (AngularJS, twig, less) Keywords:
Cc: Sensitive: no

Description

the currently used fdd2div javascript is a bit crappy and the website selection quite too complicated

We should:

  • remove fdd2div and use native jquery (ui) functions instead
  • try to simplify the website selection (no different implemetations depeding on number of websites)

Change History (5)

comment:1 Changed 3 years ago by SteveG (sgiehl)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4660]) fixes #2415

  • removed fdd2div js
  • replaced fdd2div with jquery ui autocomplete in language selection
  • simplified site selector - now using same code for both variants

comment:2 Changed 3 years ago by SteveG (sgiehl)

(In [4661]) refs #2415 added missing doc block

comment:3 Changed 3 years ago by matt (mattab)

  • Resolution fixed deleted
  • Status changed from closed to reopened

good stuff!!
some feeedback

  • when there is one website only, the website selector should not have the arrow on the right and not be clickable
  • when search for "aiehgeaiuhg" and there is no website with such name, the line "There is no site for XXX" is clickable and leads to error, instead it should not be clickable

Note: to display search in site selector, you can set {{{
[General]
autocomplete_min_sites = 2
}}} in config file

comment:4 Changed 3 years ago by SteveG (sgiehl)

(In [4671]) refs #2415 fixed error occuring on clicking empty-result message

comment:5 Changed 3 years ago by SteveG (sgiehl)

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4672]) fixes #2415 handle case with only one site correct

Note: See TracTickets for help on using tickets.