You are here: Foswiki>Tasks Web>Item13569 (03 Aug 2015, GeorgeClark)Edit Attach

Item13569: JQueryLoader runtime error

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.1
Target Release: patch
Applies To: Engine
Component: JQueryPlugin
Branches: master Item13525
Reported By: JozefMojzis
Waiting For:
Last Change By: GeorgeClark

How to repo

  • Got o topic JQueryLoader
  • at the bottom of page select for example the "slide" effect
  • click refresh
  • the page refreshes without any effect
  • and the console.log contains following error
[Error] TypeError: undefined is not a function (evaluating 'jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration)')
   run (jquery-2.1.3.js, line 3)
   tick (jquery-2.1.3.js, line 3)
   timer (jquery-2.1.3.js, line 4)
   Animation (jquery-2.1.3.js, line 3)
   doAnimation (jquery-2.1.3.js, line 3)
   dequeue (jquery-2.1.3.js, line 2)
   (anonymous function) (jquery-2.1.3.js, line 2)
   each (jquery-2.1.3.js, line 1)
   each (jquery-2.1.3.js, line 1)
   queue (jquery-2.1.3.js, line 2)
   animate (jquery-2.1.3.js, line 3)
   (anonymous function) (jquery-2.1.3.js, line 4)
   (anonymous function) (jquery.loader.js, line 1)
   fire (jquery-2.1.3.js, line 2)
   fireWith (jquery-2.1.3.js, line 2)
   done (jquery-2.1.3.js, line 4)
   (anonymous function) (jquery-2.1.3.js, line 4)
Probably simple to fix, and would be nice to have an working example.

-- JozefMojzis - 28 Jul 2015

Fixed by adding easing to the dependencies:

diff --git a/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/LOADER.pm b/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/LOADER.pm
index 3e86734..86c2787 100644
--- a/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/LOADER.pm
+++ b/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/LOADER.pm
@@ -12,13 +12,13 @@ sub new {
     my $this = bless(
         $class->SUPER::new(
             name         => 'Loader',
-            version      => '2.00',
+            version      => '2.01',
             author       => 'Michael Daum',
             homepage     => 'http://foswiki.org/Extensions/JQueryPlugin',
             tags         => 'LOADER',
             css          => ['jquery.loader.css'],
             javascript   => ['jquery.loader.js'],
-            dependencies => ['metadata'],
+            dependencies => ['metadata', 'easing'],
         ),
         $class
     );

-- MichaelDaum - 28 Jul 2015
 
Topic revision: r4 - 03 Aug 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy