X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=public%2Fjs%2Flist.js;h=a51092772ccb6083583d6c01eb0c27feff7f5fd5;hb=24364d6ff0a0f73a41cf8df2bd17283f3355a59a;hp=fe0eb62aa86e7d9005a065f49f0f88b286076c19;hpb=66441b64eacf64a0f7a14246139ed807ab816a04;p=syj.git diff --git a/public/js/list.js b/public/js/list.js index fe0eb62..a510927 100644 --- a/public/js/list.js +++ b/public/js/list.js @@ -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),