diff --git a/COPYRIGHT b/COPYRIGHT
index 0e304a379bb..6f730f6df3e 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -28,7 +28,6 @@ OdtPHP 1.0.1 GPL 2.0 Yes Library
Php-barcode 0.3pl1 GPL 2.0 Yes Bar code generation
PHP_WriteExcel 0.3.0 LGPL 2.1 Yes Excel files generation
PHP_ExcelReader 2.21 MIT License Yes Parse and retrieve information from XLS files
-Prototype 1.6.1 MIT License Yes Ajax library
Smarty 2.6.26 LGPL 2.1 Yes Templates engine used by some pages
SMTPs 1.15 GPL Yes SMTPS library
TCPDF 5.8.023 LGPL 3.0 Yes
diff --git a/ChangeLog b/ChangeLog
index 15490b1b2e4..2ae90ae8d76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,7 @@ For developers:
- New: Add jquery by default.
- New: Removed PWC libraries.
- New: Removed Scriptaculous libraries.
+- New: Removed Prototype libraries.
- New: Add first Selenium GUI tests.
- New: Enhance a lot of internal function to build external modules
more easily.
diff --git a/htdocs/core/photos_resize.php b/htdocs/core/photos_resize.php
index 7cf554b70d7..be03bde9395 100644
--- a/htdocs/core/photos_resize.php
+++ b/htdocs/core/photos_resize.php
@@ -27,9 +27,6 @@
//if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); // If we don't need to load the html.form.class.php
//if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
//if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is public (can be called outside logged session)
-if (! defined("DISABLE_PROTOTYPE")) define("DISABLE_PROTOTYPE",'1'); // If this page is public (can be called outside logged session)
-if (! defined("DISABLE_SCRIPTACULOUS")) define("DISABLE_SCRIPTACULOUS",'1'); // If this page is public (can be called outside logged session)
-if (! defined("DISABLE_PWC")) define("DISABLE_PWC",'1'); // If this page is public (can be called outside logged session)
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/product.lib.php");
diff --git a/htdocs/includes/scriptaculous/lib/prototype.js b/htdocs/includes/scriptaculous/lib/prototype.js
deleted file mode 100644
index 9fe6e1243bc..00000000000
--- a/htdocs/includes/scriptaculous/lib/prototype.js
+++ /dev/null
@@ -1,4874 +0,0 @@
-/* Prototype JavaScript framework, version 1.6.1
- * (c) 2005-2009 Sam Stephenson
- *
- * Prototype is freely distributable under the terms of an MIT-style license.
- * For details, see the Prototype web site: http://www.prototypejs.org/
- *
- *--------------------------------------------------------------------------*/
-
-var Prototype = {
- Version: '1.6.1',
-
- Browser: (function(){
- var ua = navigator.userAgent;
- var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
- return {
- IE: !!window.attachEvent && !isOpera,
- Opera: isOpera,
- WebKit: ua.indexOf('AppleWebKit/') > -1,
- Gecko: ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') === -1,
- MobileSafari: /Apple.*Mobile.*Safari/.test(ua)
- }
- })(),
-
- BrowserFeatures: {
- XPath: !!document.evaluate,
- SelectorsAPI: !!document.querySelector,
- ElementExtensions: (function() {
- var constructor = window.Element || window.HTMLElement;
- return !!(constructor && constructor.prototype);
- })(),
- SpecificElementExtensions: (function() {
- if (typeof window.HTMLDivElement !== 'undefined')
- return true;
-
- var div = document.createElement('div');
- var form = document.createElement('form');
- var isSupported = false;
-
- if (div['__proto__'] && (div['__proto__'] !== form['__proto__'])) {
- isSupported = true;
- }
-
- div = form = null;
-
- return isSupported;
- })()
- },
-
- ScriptFragment: ''."\n";
print ''."\n";
@@ -868,13 +868,6 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
print ''."\n";
}
-
- // This one is required for some Ajax features
- if (! defined('DISABLE_PROTOTYPE') && $conf->global->MAIN_USE_PROTOTYPE)
- {
- print ''."\n";
- print ''."\n";
- }
}
// Output module javascript
diff --git a/htdocs/projet/ganttview.php b/htdocs/projet/ganttview.php
index 95021110f00..d025bc10412 100644
--- a/htdocs/projet/ganttview.php
+++ b/htdocs/projet/ganttview.php
@@ -25,10 +25,6 @@
* \version $Id$
*/
-define('DISABLE_PROTOTYPE',1);
-define('DISABLE_SCRIPTACULOUS',1);
-define('DISABLE_PWC',1);
-
require ("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php");
require_once(DOL_DOCUMENT_ROOT."/projet/class/task.class.php");
diff --git a/test/phpunit/phpunittest.xml b/test/phpunit/phpunittest.xml
index e8b888902ea..98f3ab3e1ee 100644
--- a/test/phpunit/phpunittest.xml
+++ b/test/phpunit/phpunittest.xml
@@ -18,7 +18,6 @@
../../htdocs/includes/odtphp/
../../htdocs/includes/php_excelreader/
../../htdocs/includes/php_writeexcel/
- ../../htdocs/includes/scriptaculous/
../../htdocs/includes/smarty/
../../htdocs/includes/smtps/
../../htdocs/includes/tcpdf/