myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1656645 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-console.js
Date Tue, 03 Feb 2015 08:32:31 GMT
Author: lofwyr
Date: Tue Feb  3 08:32:30 2015
New Revision: 1656645

URL: http://svn.apache.org/r1656645
Log:
TOBAGO-1439: Log Console in IE should be closable for a longer time

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-console.js

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-console.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-console.js?rev=1656645&r1=1656644&r2=1656645&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-console.js
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-console.js
Tue Feb  3 08:32:30 2015
@@ -291,14 +291,16 @@ if (!console.trace) {
   };
 }
 
+console.TOBAGO_HIDE_CONSOLE = "tobagoHideConsole";
+
 console.hideConsoleForThisSession = function() {
-  document.cookie = "tobagoHideConsole";
+  document.cookie = console.TOBAGO_HIDE_CONSOLE;
 };
 
 console.isConsoleHidden = function () {
   var part = document.cookie.split(';');
   for (var i = 0; i < part.length; i++) {
-    if ("tobagoHideConsole" == part[i]) {
+    if (console.TOBAGO_HIDE_CONSOLE == part[i]) {
       return true;
     }
   }



Mime
View raw message