Item14317: Under some conditions, JEditableContrib attempts to load an .uncompressed.js
source, which is not in the distribution.
Priority: Urgent
Current State: Closed
Released In: 2.1.3
Target Release: patch
Firebug tells me:
Attention
Attachment ” does not exist
You are trying to System/JEditableContrib/jquery.jeditable.uncompressed.js an attachment that does not exist.
After a brute trial
www-data@foswiki:~/Foswiki-2.1.3-Beta2/pub/System/JEditableContrib$ cp -p jquery.jeditable.js jquery.jeditable.uncompressed.js
The error disappears.
--
IgorGiunta - 02 Feb 2017
This extension ships with two versions of the javascript.
- jquery.editable.js
- jquery.editable_src.js
The _src file is the original uncompressed source, and the other is the compressed (minified) version. We should also have shipped a .gz file, which some web server configurations will automatically send if gzip compression is accepted.
The code in
lib/Foswiki/Contrib/JEditableContrib/JEDITABLE.pm
specifies:
my $src = (DEBUG) ? '_src' : '';
...
javascript => ["jquery.jeditable${src}.js"]
From there I'm not sure how
jquery.jeditable.uncompressed.js
is generated.
Michael, Could you check this out? Is the
JQueryPlugin inserting the ".uncompressed" somehow, with DEBUG enabled? This extension seems inconsistent.
--
GeorgeClark - 02 Feb 2017
You are right, the DEBUG modus of the
JQueryPlugin is activated and it tells
This flag enables the debug mode for JQueryPlugin and all of its sub-modules. Instead of loading jquery.myplugin.js, it will load jquery.myplugin.uncompressed.js.
PS: no gzipped version has been shipped (status 24.1.2017)
--
IgorGiunta - 03 Feb 2017
This is a packaging error of
JEditableContrib.
JQueryPlugin's DEBUG mode isn't compatible with it either.
--
MichaelDaum - 03 Feb 2017