Commit abcacedd authored by merlinofchaos's avatar merlinofchaos
Browse files

#110299: change max size of nodes per block from 2 to 3 as it was meant to be.

parent ac84db8d
......@@ -115,7 +115,8 @@ Views --dev
o 107218: 107217: Fixed some E_NOTICE errors.
o 106464: Taxonomy links showed up as Array | Array | Array rather than the taxonomy terms.
o 110212: Text patch to clarify date fields.
o 110299: Change nodes per block max size from 2 chars wide to 3, as it was meant to be.
New features:
o 107471: Spiffy new theme wizard features. Thanks Crell!!
o 105081: Save and edit button to save but not go change screens.
......@@ -937,8 +937,8 @@ function views_edit_view($view, $op = '') {
'#type' => 'textfield',
'#title' => t('Nodes per Block'),
'#default_value' => $view->nodes_per_block,
'#size' => 2,
'#maxlength' => 2,
'#size' => 3,
'#maxlength' => 3,
'#description' => t('If using a block, the maximum number of items to display in the block. Pagers are not used in blocks.'),
'#attributes' => NULL,
);
......@@ -1055,6 +1055,10 @@ function views_edit_view($view, $op = '') {
'#type' => 'submit',
'#value' => t('Save'),
);
$form['save_and_edit'] = array(
'#type' => 'submit',
'#value' => t('Save and edit'),
);
if ($view->vid) {
$form['delete'] = array(
'#type' => 'submit',
......@@ -1602,8 +1606,9 @@ function views_ui_render_section_add(&$form, $items, $label) {
* Validate that a view sent via form is OK.
*/
function views_edit_view_validate($form_id, $view, $form) {
$op = $_POST['op'];
if ($op != t('Save')) {
$op = $view['op'];
if ($op != t('Save') && $op != t('Save and edit')) {
return; // only validate on saving!
}
......@@ -1711,7 +1716,10 @@ function views_edit_view_submit($form_id, $form) {
drupal_set_message(t('View successfully added.'));
}
return 'admin/build/views';
if ($form['op'] == t('Save')) {
return 'admin/build/views';
}
}
/**
......
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