Commit cd8690fb authored by Dries's avatar Dries
Browse files

- Patch #158790 by kkaefer: usability improvement: automatically select proper radio button.

parent 834eab50
// $Id$
if (Drupal.jsEnabled) {
$(function() {
// Automatically selects the right radio button in the filter section of
// the admin content list.
$('#node-admin-filter select').change(function() {
$('#node-admin-filter input:radio[@value="'+ this.id.substr(5) +'"]')
.attr('checked', true);
});
});
}
......@@ -1524,6 +1524,8 @@ function node_filter_form() {
$form['filters']['buttons']['reset'] = array('#type' => 'submit', '#value' => t('Reset'));
}
drupal_add_js(drupal_get_path('module', 'node') .'/node.js');
return $form;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment