From a6bb56d2e1e2b5bf206fc963d6f645f3a1539101 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 19 Feb 2015 17:14:31 +0000 Subject: [PATCH] Fix bug in rule removal prevented adding more rules --- phpgwapi/js/jsapi/egw_css.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/js/jsapi/egw_css.js b/phpgwapi/js/jsapi/egw_css.js index 590f8eb6c0..00b56969ed 100644 --- a/phpgwapi/js/jsapi/egw_css.js +++ b/phpgwapi/js/jsapi/egw_css.js @@ -77,6 +77,10 @@ egw.extend('css', egw.MODULE_WND_LOCAL, function(_app, _wnd) { } delete (selectors[_selector]); + if(!_rule) + { + selectorCount--; + } } else {