X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..3b944bb939d2bfffbfcd9dec2356ab284bd3dfae:/skins/ajax_scripts/growable_table.js diff --git a/skins/ajax_scripts/growable_table.js b/skins/ajax_scripts/growable_table.js index f1d21d3..b7fcf1f 100644 --- a/skins/ajax_scripts/growable_table.js +++ b/skins/ajax_scripts/growable_table.js @@ -1,8 +1,8 @@ // © Benoît PIN 2006-2008 // http://plinn.org // Licence GPL -// $Id: growable_table.js 1473 2009-03-06 17:02:21Z pin $ -// $URL: http://svn.cri.ensmp.fr/svn/Plinn/branches/CMF-2.1/skins/ajax_scripts/growable_table.js $ +// +// // GrowableTable: functions to edit quickly table form entries. function GrowableTable(tbody, fieldsDescription, submitExtName, skipFormManagerInit) { @@ -290,11 +290,13 @@ GrowableTable.prototype.cancelRow = function(element) { * http://www.sitepoint.com/blogs/2006/01/17/javascript-inheritance/ */ -function copyPrototype(descendant, parent) { - var sConstructor = parent.toString(); - var aMatch = sConstructor.match( /\s*function (.*)\(/ ); - if ( aMatch != null ) { descendant.prototype[aMatch[1]] = parent; } - for (var m in parent.prototype) { - descendant.prototype[m] = parent.prototype[m]; - } -} +// déplacé dans javascript_events_api.js + +// function copyPrototype(descendant, parent) { +// var sConstructor = parent.toString(); +// var aMatch = sConstructor.match( /\s*function (.*)\(/ ); +// if ( aMatch != null ) { descendant.prototype[aMatch[1]] = parent; } +// for (var m in parent.prototype) { +// descendant.prototype[m] = parent.prototype[m]; +// } +// }