fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9664789
)
FIX: Skrypt jquery.loggin.js nie działał w Safari 4.
author
zuber
<marek@stepniowski.com>
Wed, 26 Aug 2009 08:51:12 +0000
(10:51 +0200)
committer
zuber
<marek@stepniowski.com>
Wed, 26 Aug 2009 08:51:12 +0000
(10:51 +0200)
project/static/js/jquery.logging.js
patch
|
blob
|
history
diff --git
a/project/static/js/jquery.logging.js
b/project/static/js/jquery.logging.js
index
9a7fbe0
..
3b9175b
100644
(file)
--- a/
project/static/js/jquery.logging.js
+++ b/
project/static/js/jquery.logging.js
@@
-6,11
+6,17
@@
const LOG_LEVEL = LEVEL_DEBUG;
var mozillaLog = function() {
const LOG_LEVEL = LEVEL_DEBUG;
var mozillaLog = function() {
- if (window.console) console.log.apply(this, arguments);
+ if (window.console)
+ console.log.apply(this, arguments);
};
};
+ var safariLog = function() {
+ if (window.console)
+ console.log.apply(console, arguments);
+ };
+
var operaLog = function() {
var operaLog = function() {
- opera.postError
.
(arguments.join(' '));
+ opera.postError(arguments.join(' '));
};
var defaultLog = function() { return false; };
};
var defaultLog = function() { return false; };
@@
-19,10
+25,12
@@
return $.log.browserLog.apply(this, arguments);
};
return $.log.browserLog.apply(this, arguments);
};
- if ($.browser.mozilla
|| $.browser.safari
)
+ if ($.browser.mozilla)
$.log.browserLog = mozillaLog;
$.log.browserLog = mozillaLog;
+ if ($.browser.safari)
+ $.log.browserLog = safariLog;
else if($.browser.opera)
else if($.browser.opera)
- $.log.browserLog = operaLog
+ $.log.browserLog = operaLog
;
else
$.log.browserLog = defaultLog;
else
$.log.browserLog = defaultLog;