[Pkg-mozext-commits] [requestpolicy] 28/80: Rename many more CSS classes

David Prévot taffit at moszumanska.debian.org
Sun Jul 5 15:02:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 49c123495f8cf145c382ad10891ffd5d0cfe742a
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue May 12 03:14:24 2015 +0200

    Rename many more CSS classes
---
 src/content/ui/classicmenu.js |  8 ++++----
 src/content/ui/menu.js        | 36 ++++++++++++++++++------------------
 src/skin/requestpolicy.css    | 18 +++++++++---------
 3 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/src/content/ui/classicmenu.js b/src/content/ui/classicmenu.js
index acf76c3..3bb3039 100644
--- a/src/content/ui/classicmenu.js
+++ b/src/content/ui/classicmenu.js
@@ -75,7 +75,7 @@ requestpolicy.classicmenu = (function() {
     var command = "requestpolicy.overlay.temporarilyAllowOrigin('"
         + requestpolicy.menu._sanitizeJsFunctionArg(originHost) + "');";
     var item = self.addMenuItem(menu, label, command);
-    item.setAttribute("class", "requestpolicyTemporary");
+    item.setAttribute("class", "rpcontinuedTemporary");
     return item;
   };
 
@@ -95,7 +95,7 @@ requestpolicy.classicmenu = (function() {
         + requestpolicy.menu._sanitizeJsFunctionArg(originHost) + "', '"
         + requestpolicy.menu._sanitizeJsFunctionArg(destHost) + "');";
     var item = self.addMenuItem(menu, label, command);
-    item.setAttribute("class", "requestpolicyTemporary");
+    item.setAttribute("class", "rpcontinuedTemporary");
     return item;
   };
 
@@ -106,7 +106,7 @@ requestpolicy.classicmenu = (function() {
         + requestpolicy.menu._sanitizeJsFunctionArg(originHost) + "', '"
         + requestpolicy.menu._sanitizeJsFunctionArg(destHost) + "');";
     var item = self.addMenuItem(menu, label, command);
-    item.setAttribute("class", "requestpolicyAllowOriginToDest");
+    item.setAttribute("class", "rpcontinuedAllowOriginToDest");
     return item;
   };
 
@@ -116,7 +116,7 @@ requestpolicy.classicmenu = (function() {
     var command = "requestpolicy.overlay.temporarilyAllowDestination('"
         + requestpolicy.menu._sanitizeJsFunctionArg(destHost) + "');";
     var item = self.addMenuItem(menu, label, command);
-    item.setAttribute("class", "requestpolicyTemporary");
+    item.setAttribute("class", "rpcontinuedTemporary");
     return item;
   };
 
diff --git a/src/content/ui/menu.js b/src/content/ui/menu.js
index 641ef97..93ae62e 100644
--- a/src/content/ui/menu.js
+++ b/src/content/ui/menu.js
@@ -806,56 +806,56 @@ requestpolicy.menu = (function() {
   self._addMenuItemStopAllowingOrigin = function(list, ruleData, subscriptionOverride) {
     var originHost = ruleData["o"]["h"];
     var ruleAction = subscriptionOverride ? 'deny' : 'stop-allow';
-    return self._addMenuItemHelper(list, ruleData, 'stopAllowingOrigin', [originHost], ruleAction, 'rp-stop-rule rp-stop-allow');
+    return self._addMenuItemHelper(list, ruleData, 'stopAllowingOrigin', [originHost], ruleAction, 'rpc-stop-rule rpc-stop-allow');
   };
 
   self._addMenuItemStopAllowingDest = function(list, ruleData, subscriptionOverride) {
     var destHost = ruleData["d"]["h"];
     var ruleAction = subscriptionOverride ? 'deny' : 'stop-allow';
-    return self._addMenuItemHelper(list, ruleData, 'stopAllowingDestination', [destHost], ruleAction, 'rp-stop-rule rp-stop-allow');
+    return self._addMenuItemHelper(list, ruleData, 'stopAllowingDestination', [destHost], ruleAction, 'rpc-stop-rule rpc-stop-allow');
   };
 
   self._addMenuItemStopAllowingOriginToDest = function(list, ruleData, subscriptionOverride) {
     var originHost = ruleData["o"]["h"];
     var destHost = ruleData["d"]["h"];
     var ruleAction = subscriptionOverride ? 'deny' : 'stop-allow';
-    return self._addMenuItemHelper(list, ruleData, 'stopAllowingOriginToDestination', [originHost, destHost], ruleAction, 'rp-stop-rule rp-stop-allow');
+    return self._addMenuItemHelper(list, ruleData, 'stopAllowingOriginToDestination', [originHost, destHost], ruleAction, 'rpc-stop-rule rpc-stop-allow');
   };
 
   // Allow
 
   self._addMenuItemAllowOrigin = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'allowOrigin', [originHost], 'allow', 'rp-start-rule rp-allow');
+    return self._addMenuItemHelper(list, ruleData, 'allowOrigin', [originHost], 'allow', 'rpc-start-rule rpc-allow');
   };
 
   self._addMenuItemAllowDest = function(list, ruleData) {
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'allowDestination', [destHost], 'allow', 'rp-start-rule rp-allow');
+    return self._addMenuItemHelper(list, ruleData, 'allowDestination', [destHost], 'allow', 'rpc-start-rule rpc-allow');
   };
 
   self._addMenuItemAllowOriginToDest = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'allowOriginToDestination', [originHost, destHost], 'allow', 'rp-start-rule rp-allow');
+    return self._addMenuItemHelper(list, ruleData, 'allowOriginToDestination', [originHost, destHost], 'allow', 'rpc-start-rule rpc-allow');
   };
 
   // Allow temp
 
   self._addMenuItemTempAllowOrigin = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'allowOriginTemporarily', [originHost], 'allow-temp', 'rp-start-rule rp-allow rp-temporary');
+    return self._addMenuItemHelper(list, ruleData, 'allowOriginTemporarily', [originHost], 'allow-temp', 'rpc-start-rule rpc-allow rpc-temporary');
   };
 
   self._addMenuItemTempAllowDest = function(list, ruleData) {
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'allowDestinationTemporarily', [destHost], 'allow-temp', 'rp-start-rule rp-allow rp-temporary');
+    return self._addMenuItemHelper(list, ruleData, 'allowDestinationTemporarily', [destHost], 'allow-temp', 'rpc-start-rule rpc-allow rpc-temporary');
   };
 
   self._addMenuItemTempAllowOriginToDest = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'allowOriginToDestinationTemporarily', [originHost, destHost], 'allow-temp', 'rp-start-rule rp-allow rp-temporary');
+    return self._addMenuItemHelper(list, ruleData, 'allowOriginToDestinationTemporarily', [originHost, destHost], 'allow-temp', 'rpc-start-rule rpc-allow rpc-temporary');
   };
 
   // Stop denying
@@ -863,50 +863,50 @@ requestpolicy.menu = (function() {
   self._addMenuItemStopDenyingOrigin = function(list, ruleData, subscriptionOverride) {
     var originHost = ruleData["o"]["h"];
     var ruleAction = subscriptionOverride ? 'allow' : 'stop-deny';
-    return self._addMenuItemHelper(list, ruleData, 'stopDenyingOrigin', [originHost], ruleAction, 'rp-stop-rule rp-stop-deny');
+    return self._addMenuItemHelper(list, ruleData, 'stopDenyingOrigin', [originHost], ruleAction, 'rpc-stop-rule rpc-stop-deny');
   };
 
   self._addMenuItemStopDenyingDest = function(list, ruleData, subscriptionOverride) {
     var destHost = ruleData["d"]["h"];
     var ruleAction = subscriptionOverride ? 'allow' : 'stop-deny';
-    return self._addMenuItemHelper(list, ruleData, 'stopDenyingDestination', [destHost], ruleAction, 'rp-stop-rule rp-stop-deny');
+    return self._addMenuItemHelper(list, ruleData, 'stopDenyingDestination', [destHost], ruleAction, 'rpc-stop-rule rpc-stop-deny');
   };
 
   self._addMenuItemStopDenyingOriginToDest = function(list, ruleData, subscriptionOverride) {
     var originHost = ruleData["o"]["h"];
     var destHost = ruleData["d"]["h"];
     var ruleAction = subscriptionOverride ? 'allow' : 'stop-deny';
-    return self._addMenuItemHelper(list, ruleData, 'stopDenyingOriginToDestination', [originHost, destHost], ruleAction, 'rp-stop-rule rp-stop-deny');
+    return self._addMenuItemHelper(list, ruleData, 'stopDenyingOriginToDestination', [originHost, destHost], ruleAction, 'rpc-stop-rule rpc-stop-deny');
   };
 
   // Deny
 
   self._addMenuItemDenyOrigin = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'denyOrigin', [originHost], 'deny', 'rp-start-rule rp-deny');
+    return self._addMenuItemHelper(list, ruleData, 'denyOrigin', [originHost], 'deny', 'rpc-start-rule rpc-deny');
   };
 
   self._addMenuItemDenyDest = function(list, ruleData) {
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'denyDestination', [destHost], 'deny', 'rp-start-rule rp-deny');
+    return self._addMenuItemHelper(list, ruleData, 'denyDestination', [destHost], 'deny', 'rpc-start-rule rpc-deny');
   };
 
   self._addMenuItemDenyOriginToDest = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'denyOriginToDestination', [originHost, destHost], 'deny', 'rp-start-rule rp-deny');
+    return self._addMenuItemHelper(list, ruleData, 'denyOriginToDestination', [originHost, destHost], 'deny', 'rpc-start-rule rpc-deny');
   };
 
   // Deny temp
 
   self._addMenuItemTempDenyOrigin = function(list, ruleData) {
     var originHost = ruleData["o"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'denyOriginTemporarily', [originHost], 'deny-temp', 'rp-start-rule rp-deny rp-temporary');
+    return self._addMenuItemHelper(list, ruleData, 'denyOriginTemporarily', [originHost], 'deny-temp', 'rpc-start-rule rpc-deny rpc-temporary');
   };
 
   self._addMenuItemTempDenyDest = function(list, ruleData) {
     var destHost = ruleData["d"]["h"];
-    return self._addMenuItemHelper(list, ruleData, 'denyDestinationTemporarily', [destHost], 'deny-temp', 'rp-start-rule rp-deny rp-temporary');
+    return self._addMenuItemHelper(list, ruleData, 'denyDestinationTemporarily', [destHost], 'deny-temp', 'rpc-start-rule rpc-deny rpc-temporary');
   };
 
   self._addMenuItemTempDenyOriginToDest = function(list, ruleData) {
@@ -914,7 +914,7 @@ requestpolicy.menu = (function() {
     var destHost = ruleData["d"]["h"];
     return self._addMenuItemHelper(list, ruleData,
         'denyOriginToDestinationTemporarily', [originHost, destHost],
-        'deny-temp', 'rp-start-rule rp-deny rp-temporary');
+        'deny-temp', 'rpc-start-rule rpc-deny rpc-temporary');
   };
 
   self._addMenuItemHelper = function(list, ruleData, fmtStrName, fmtStrArgs,
diff --git a/src/skin/requestpolicy.css b/src/skin/requestpolicy.css
index 9666fda..830813c 100644
--- a/src/skin/requestpolicy.css
+++ b/src/skin/requestpolicy.css
@@ -96,37 +96,37 @@
   border-color: #eee !important;
   background-color: #f1f1f1;
 }
-#rpc-details .rp-allow {
+#rpc-details .rpc-allow {
   /* This should probably stay the same color as the allowed destinations. */
   color: #484;
 }
-#rpc-details .rp-deny {
+#rpc-details .rpc-deny {
   /* This should probably stay the same color as the blocked destinations. */
   color: #844;
 }
-#rpc-details .rp-temporary {
+#rpc-details .rpc-temporary {
   font-style: italic;
   font-size: 0.9em;
   color: #999;
 }
 /* When in private browsing mode, the user only has the option of adding
    temporary rules. So, don't show them only small, grey text. */
-#rpc-details.privatebrowsing .rp-allow {
+#rpc-details.privatebrowsing .rpc-allow {
   font-size: 1em;
   color: #484;
 }
-#rpc-details.privatebrowsing .rp-deny {
+#rpc-details.privatebrowsing .rpc-deny {
   font-size: 1em;
   color: #844;
 }
 
 
 
-#rpc-details .rp-stop-rule[selected-rule="true"] {
+#rpc-details .rpc-stop-rule[selected-rule="true"] {
   text-decoration: underline;
 }
 
-#rpc-details .rp-start-rule[selected-rule="true"] {
+#rpc-details .rpc-start-rule[selected-rule="true"] {
   text-decoration: underline;
 }
 
@@ -259,11 +259,11 @@
 /*********************************************
 * ClassicMenu contents
 *********************************************/
-.requestpolicyTemporary {
+.rpcontinuedTemporary {
   font-style: italic;
 }
 
-.requestpolicyAllowOriginToDest {
+.rpcontinuedAllowOriginToDest {
   font-weight: bold;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list