]> dev.renevier.net Git - syj.git/blobdiff - public/js/list.js
some files were missing copyright information
[syj.git] / public / js / list.js
index fe0eb62aa86e7d9005a065f49f0f88b286076c19..a51092772ccb6083583d6c01eb0c27feff7f5fd5 100644 (file)
@@ -1,3 +1,8 @@
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
+    and is published under the AGPL license. */
+
+"use strict";
+
 var WGS84 = new OpenLayers.Projection("EPSG:4326");
 var Mercator = new OpenLayers.Projection("EPSG:900913");
 
@@ -91,7 +96,7 @@ item.prototype = {
         }
         var id = this.elt.getAttribute('data-id');
 
-        $("message").hide();
+        $("message").clearMessages();
         new Ajax.Request('path/' + id.toString() + '/delete', {
             method: 'post',
             onSuccess: this.deleteSuccess.bind(this),