Skip to content
Snippets Groups Projects
Commit 033c24be authored by colemanw's avatar colemanw
Browse files

CRM-12872 - Add ui-spinner to page num input

parent ecc20f0e
Branches
Tags
No related merge requests found
......@@ -50,8 +50,8 @@ class CRM_Core_QuickForm_Action_Refresh extends CRM_Core_QuickForm_Action {
/**
* Processes the request.
*
* @param object $page CRM_Core_Form the current form-page
* @param string $actionName Current action name, as one Action object can serve multiple actions
* @param CRM_Core_Form $page the current form-page
* @param string $actionName Current action name, as one Action object can serve multiple actions
*
* @return void
* @access public
......
......@@ -72,3 +72,4 @@
<div class="spacer">&nbsp;</div>
{/if}
</div>
{*include file="CRM/common/searchJs.tpl"*}
......@@ -26,7 +26,7 @@
{if $pager and $pager->_response}
{if $pager->_response.numPages > 1}
<div class="crm-pager">
{if ! isset($noForm) || ! $noForm}
{if empty($noForm)}
<span class="element-right">
{if $location eq 'top'}
{$pager->_response.titleTop}&nbsp;<input class="form-submit" name="{$pager->_response.buttonTop}" value="{ts}Go{/ts}" type="submit"/>
......@@ -44,6 +44,14 @@
</span>
</div>
{if empty($noForm) and $location neq 'top'}
<script type="text/javascript">
cj('input[name^=crmPID]', '#{$form.formName}').spinner({ldelim}
min: 1,
max: {$pager->_response.numPages}
{rdelim});
</script>
{/if}
{/if}
{* Controller for 'Rows Per Page' *}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment