소스 검색

Treat config.json ajax output as JSON instead of string

inderpreet99 11 년 전
부모
커밋
25fbae3c1b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      js/app.js

+ 2 - 2
js/app.js

@@ -1,6 +1,6 @@
   jQuery( document ).ready(function( $ ) {
 
-    $.ajax( { url: 'config.json' } ).done(  function( config ) {
+    $.ajax( { url: 'config.json', dataType: 'json' } ).done(  function( config ) {
 
     var c = config;
 
@@ -470,4 +470,4 @@
           };
    
 
- });
+ });