GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Enable jsmidcom by default, fix some minor issues
bergie (author)
Fri Apr 04 13:16:40 -0700 2008
commit  4b2fae3cee562be5142253ae1cd9ad00aaa1d3ac
tree    3a7c318f3b0bc2329a3254da029b173da987c959
parent  923897c6e77e3ae3cab7c9705a203046e8cc161b
...
6
7
8
9
 
10
11
 
12
13
14
15
16
17
18
19
20
...
6
7
8
 
9
10
 
11
12
13
14
15
 
 
16
17
18
0
@@ -6,15 +6,13 @@ services_uimessages: midcom_core_services_uimessages_midgard
0
 cache_directory: __MIDGARDCACHE__/midgard
0
 enable_benchmark: false
0
 enable_included_list: false
0
-enable_jquery_framework: false
0
+enable_jquery_framework: true
0
 enable_js_midcom: true
0
-js_midcom_config: 'enable_watchers: true, debug: true'
0
+js_midcom_config: 'enable_watchers: true, debug: false'
0
 date_formats:
0
     short: '%d/%m/%Y'
0
     long: '%x %X'
0
 default_timezone: UTC
0
-enable_jquery_framework: false
0
-enable_js_midcom: false
0
 toolbar_configuration:
0
     type: float
0
     js:
...
34
35
36
37
 
38
39
40
...
47
48
49
50
 
51
52
53
...
91
92
93
94
 
95
96
97
...
119
120
121
122
 
123
124
125
...
34
35
36
 
37
38
39
40
...
47
48
49
 
50
51
52
53
...
91
92
93
 
94
95
96
97
...
119
120
121
 
122
123
124
125
0
@@ -34,7 +34,7 @@ class midcom_core_helpers_head
0
     public $jquery_enabled = false;
0
     public $jsmidcom_enabled = false;
0
     
0
- public function __construct($enable_jquery=false, $enable_jsmidcom=false, $jsmidcom_config=null)
0
+ public function __construct($enable_jquery = false, $enable_jsmidcom = false, $jsmidcom_config = null)
0
     {
0
         if ($enable_jquery)
0
         {
0
@@ -47,7 +47,7 @@ class midcom_core_helpers_head
0
         }
0
     }
0
     
0
- public function enable_jquery($version="1.2.3")
0
+ public function enable_jquery($version = '1.2.3')
0
     {
0
         if ($this->jquery_enabled)
0
         {
0
@@ -91,7 +91,7 @@ class midcom_core_helpers_head
0
         }
0
     }
0
     
0
- public function enable_jsmidcom($config=null)
0
+ public function enable_jsmidcom($config = null)
0
     {
0
         if ($this->jsmidcom_enabled)
0
         {
0
@@ -119,7 +119,7 @@ class midcom_core_helpers_head
0
         $script .= " MIDCOM_STATIC_URL: '" . MIDCOM_STATIC_URL . "',\n";
0
         $script .= " MIDCOM_PAGE_PREFIX: '/'\n"; //$_MIDCOM->get_page_prefix()
0
         $script .= "});\n";
0
-
0
+
0
         if (! is_null($config))
0
         {
0
             $config_str = $config;
...
82
83
84
85
 
86
87
88
...
82
83
84
 
85
86
87
88
0
@@ -82,7 +82,7 @@ class midcom_core_midcom
0
         
0
         // Load the navigation helper
0
         //$this->navigation = new midcom_core_helpers_navigation();
0
-
0
+
0
         // Load the head helper
0
         $this->head = new midcom_core_helpers_head
0
         (
...
12
13
14
15
 
16
17
18
...
169
170
171
172
 
173
174
175
...
12
13
14
 
15
16
17
18
...
169
170
171
 
172
173
174
175
0
@@ -12,7 +12,7 @@
0
         config: {
0
             MIDCOM_STATIC_URL: '/midcom-static',
0
             MIDCOM_PAGE_PREFIX: '/',
0
- enable_watchers: false,
0
+ enable_watchers: false,
0
             debug: false
0
         },
0
         registered_components: {}
0
@@ -169,7 +169,7 @@
0
             $.midcom.logger._static_holder = $('<div id="jsmidcom_logger" />').hide();
0
             $.midcom.logger._static_holder.appendTo('body');
0
             
0
- if (! $.midcom.config.debug) {
0
+ if ($.midcom.config.debug) {
0
                 $.midcom.logger._static_holder.show();
0
             }
0
             

Comments

    No one has commented yet.