LSview : Fixed customAction confirm by JS
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 20 May 2011 16:42:21 +0000 (18:42 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 20 May 2011 16:42:21 +0000 (18:42 +0200)
public_html/includes/js/LSview.js

index 666e746..2b850a3 100644 (file)
@@ -29,6 +29,9 @@ var LSview = new Class({
         if (checkRemove.exec(el.href)) {
           el.addEvent('click',this.onRemoveViewBtnClick.bindWithEvent(this,el));
         }
+        else if(el.hasClass('LScustomActions')) {
+          el.addEvent('click',this.onCustomActionBtnClick.bindWithEvent(this,el));
+        }
       }, this);
       
       this.LSsearchForm = $('LSsearch_form');