]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Hope can fix on IE, not tested
authorSeven Du <dujinfang@gmail.com>
Tue, 30 Jul 2013 16:23:07 +0000 (00:23 +0800)
committerSeven Du <dujinfang@gmail.com>
Tue, 30 Jul 2013 19:26:46 +0000 (03:26 +0800)
htdocs/portal/assets/js/ie-console.js [new file with mode: 0644]
htdocs/portal/index.html

diff --git a/htdocs/portal/assets/js/ie-console.js b/htdocs/portal/assets/js/ie-console.js
new file mode 100644 (file)
index 0000000..60f73cc
--- /dev/null
@@ -0,0 +1,19 @@
+// var ie_console_alertFallback = true;
+// var ie_console_divFallback = true;
+
+if (typeof console === "undefined" || typeof console.log === "undefined") {
+ console = {};
+
+ if (typeof ie_console_divFallback != "undefined") {
+    console.log = function(msg) {
+      $('#ie_console_debug_div').append(msg);
+      $('#ie_console_debug_div').append("<br>");
+    }
+ } else if (typeof ie_console_alertFallback != "undefined" ) {
+     console.log = function(msg) {
+          alert(msg);
+     };
+ } else {
+     console.log = function() {};
+ }
+}
index c1e9d3cfe48721d572c298124f6a806c9662f8cc..351b09590e312b7aa95944d178d368251b6d08e2 100644 (file)
 <!-- Le javascript
 ================================================== -->
 <!-- Placed at the end of the document so the pages load faster -->
+<script src="assets/js/ie-console.js"></script>
 <script src="assets/js/jquery-1.9.1.min.js"></script>
 <script src="assets/js/handlebars.js"></script>
 <script src="assets/js/ember-1.0.0-rc.1.js"></script>