Project

General

Profile

Bug #1190

Use external/system mootools js code

Added by Yves-Alexis Perez almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
03.11.2015
Due date:
Estimated time:
Affected version:
5.3.3
Resolution:
Fixed

Description

Hi,

the medsrv stuff uses javascript in the template, which originates from mootools (src/medsrv/templates/static/mootools.js). The embedded code is obfuscated, and quite old apparently. Would it be possible to just use the system library when present (like the libjs-mootools in Debian), like standard shared libraries?

Associated revisions

Revision 9953e76c
Added by Tobias Brunner over 4 years ago

Merge branch 'medsrv-js-css'

Removes the outdated version of MooTools and actually all
JavaScript code as that stuff can now be done with CSS directly.

Fixes #1190.

History

#1 Updated by Tobias Brunner almost 5 years ago

  • Status changed from New to Feedback

the medsrv stuff uses javascript in the template, which originates from mootools (src/medsrv/templates/static/mootools.js). The embedded code is obfuscated, and quite old apparently.

There wasn't any significant change to the medsrv code since it was added in June of 2008, so that JavaScript code is even older than that. I wonder if anyone actually uses this stuff (apparently it still works).

Would it be possible to just use the system library when present (like the libjs-mootools in Debian), like standard shared libraries?

I guess, but there is very little actual JavaScript code in that web frontend (script.js). And half of it can be replaced with CSS by now. I actually pushed a couple of commits to the 1190-medsrv-js-css branch where I removed the MooTools dependency altogether (actually there is no JavaScript anymore).

#2 Updated by Yves-Alexis Perez almost 5 years ago

Tobias Brunner wrote:

the medsrv stuff uses javascript in the template, which originates from mootools (src/medsrv/templates/static/mootools.js). The embedded code is obfuscated, and quite old apparently.

There wasn't any significant change to the medsrv code since it was added in June of 2008, so that JavaScript code is even older than that. I wonder if anyone actually uses this stuff (apparently it still works).

Yeah. I intend to take a new look at all those plugins in Debian and decide if we can safely drop them.

Would it be possible to just use the system library when present (like the libjs-mootools in Debian), like standard shared libraries?

I guess, but there is very little actual JavaScript code in that web frontend (script.js). And half of it can be replaced with CSS by now. I actually pushed a couple of commits to the 1190-medsrv-js-css branch where I removed the MooTools dependency altogether (actually there is no JavaScript anymore).

I guess that's even better, thanks :)

#3 Updated by Tobias Brunner over 4 years ago

  • Status changed from Feedback to Closed
  • Assignee set to Tobias Brunner
  • Target version set to 5.3.4
  • Resolution set to Fixed

Also available in: Atom PDF