From 9c793136790115bc385b9799aeb0a420a0211b63 Mon Sep 17 00:00:00 2001 From: Pablo Marti Date: Fri, 3 Oct 2014 16:39:46 +0700 Subject: [PATCH] Do not add the ripple effect to all a elements Sometimes we might not want to have some links "rippled" this patch prevents so. Ideally we'd have the possibility of passing our own set of selectors to ripples.init tho --- scripts/material.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/material.js b/scripts/material.js index 1f846079..9b4f7b53 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -3,7 +3,7 @@ $(function (){ if (ripples) { - ripples.init(".btn:not(.btn-link), .navbar a, .nav-tabs a, .withripple"); + ripples.init(".btn:not(.btn-link), .navbar a:not(.withoutripple), .nav-tabs a:not(.withoutripple), .withripple"); } var initInputs = function() {