This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a commit to branch gc/8453
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 97616926254480fc7c974914c4a44b8deacb1f45
Author: Guillermo Cruz <[email protected]>
AuthorDate: Fri Aug 19 11:15:00 2022 -0600

    [#8453] updated jquery removed method size() for length
---
 Allura/allura/public/nf/js/jquery.daterangepicker.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/public/nf/js/jquery.daterangepicker.js 
b/Allura/allura/public/nf/js/jquery.daterangepicker.js
index aad806865..66b30fcf8 100644
--- a/Allura/allura/public/nf/js/jquery.daterangepicker.js
+++ b/Allura/allura/public/nf/js/jquery.daterangepicker.js
@@ -102,7 +102,7 @@ jQuery.fn.daterangepicker = function(settings){
        //Capture Dates from input(s)
        var inputDateA, inputDateB = Date.parse('today');
        var inputDateAtemp, inputDateBtemp;
-       if(rangeInput.size() == 2){
+       if(rangeInput.length == 2){
                inputDateAtemp = Date.parse( rangeInput.eq(0).val() );
                inputDateBtemp = Date.parse( rangeInput.eq(1).val() );
                if(inputDateAtemp == null){inputDateAtemp = inputDateBtemp;}
@@ -291,7 +291,7 @@ jQuery.fn.daterangepicker = function(settings){
        }
 
        //add arrows (only available on one input)
-       if(options.arrows && rangeInput.size()==1){
+       if(options.arrows && rangeInput.length ==1){
                var prevLink = jQuery('<a href="#" 
class="ui-daterangepicker-prev ui-corner-all" title="'+ options.prevLinkText 
+'"><span class="ui-icon ui-icon-circle-triangle-w">'+ options.prevLinkText 
+'</span></a>');
                var nextLink = jQuery('<a href="#" 
class="ui-daterangepicker-next ui-corner-all" title="'+ options.nextLinkText 
+'"><span class="ui-icon ui-icon-circle-triangle-e">'+ options.nextLinkText 
+'</span></a>');
                jQuery(this)

Reply via email to