WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#5936 closed defect (bug) (fixed)

Widget sidebar dropdown should automatically change

Reported by: filosofo Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.5
Component: Widgets Keywords: select widgets admin has-patch
Focuses: Cc:

Description

The sidebar drop-down list for the admin widgets page should automatically switch to the selected sidebar, as it's tedious to have to select the sidebar, then press "go."

My patch adds one line of JavaScript to the common admin js file, a line which automatically submits any dropdowns with the class of 'auto-submit', so the same automatic submission can be used anywhere in admin.

Attachments (3)

auto_submit.diff (1.3 KB) - added by filosofo 6 years ago.
auto_submit.2.diff (1.2 KB) - added by filosofo 6 years ago.
auto_submit_management.diff (2.4 KB) - added by filosofo 6 years ago.

Download all attachments as: .zip

Change History (9)

filosofo6 years ago

comment:1 bryan8686 years ago

+1 for this!

comment:2 bryan8686 years ago

FYI: This fix needs to be updated for RC2

filosofo6 years ago

comment:3 filosofo6 years ago

I've refreshed the patch for trunk. The lack of this feature--i.e. the fact that you have to select the sidebar, then click "Show"--was something one of the guests on the WordPress Weekly podcast was just complaining about last week, and I've seen others mention it as well.

Besides, the nifty thing is that because it's based on a drop-down having a certain class, it can be used elsewhere in the admin.

comment:4 filosofo6 years ago

The auto_submit_management.diff patch shows how a simple change--just adding the "auto-submit" class--can make for a better user experience. Try the drop-downs on the post and link management pages after applying the patches, to see what I mean.

comment:5 ryan5 years ago

  • Component changed from Administration to Widgets
  • Owner anonymous deleted

comment:6 Denis-de-Bernardy5 years ago

  • Milestone changed from 2.9 to 2.8
  • Resolution set to fixed
  • Status changed from new to closed

marking as fixed with #9511

Note: See TracTickets for help on using tickets.