michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
339 stars 71 forks source link

type='submit', 'reset' => #185

Closed soderlind closed 9 years ago

soderlind commented 9 years ago

Two wishes

  1. 'reset' => true and 'reset' => '"section_id"' is working fine, but I'd like to do 'reset' => '"section_id"_"field_id"' (i.e. reset just a field)
  2. I'd like to display different messages than "Please confirm your action" and "* Are you sure you want to reset the options?"
michaeluno commented 9 years ago

Good idea about the first issue. I barely remember it could be possible without modifications. Can you post a very simple small sample plugin just only shows that it does not work? Something like this one would help.

The second issue can be solved by modifying the property of the $oMsg object. I can show you how if there is a sample plugin.