Anonymous avatar Anonymous committed 2ab29ae

fix bug in ie7

Comments (0)

Files changed (162)

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

couchit/_design/page/alias/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/page/all_pages/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/page/by_slug/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/page/nb_revision/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/page/revisions/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/site/alias/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/site/by_cname/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/site/password/map.js

File contents unchanged.

Add a comment to this file

couchit/_design/site/token/map.js

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

couchit/context_processors.py

File contents unchanged.

Add a comment to this file

couchit/contrib/__init__.py

File contents unchanged.

Add a comment to this file

couchit/contrib/mimeparse.py

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

couchit/utils/__init__.py

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/css/colorful.css

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/css/friendly.css

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/css/src/debug.css

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/css/src/layout.css

File contents unchanged.

Add a comment to this file

static/css/src/print.css

File contents unchanged.

Add a comment to this file

static/css/src/reset.css

File contents unchanged.

Add a comment to this file

static/css/src/slate.css

File contents unchanged.

Add a comment to this file

static/css/src/textarea.css

File contents unchanged.

Add a comment to this file

static/css/src/typography.css

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/img/SatVal.png

Old
Old image
New
New image
Add a comment to this file

static/img/arrow-closed.png

Old
Old image
New
New image
Add a comment to this file

static/img/arrow-open.png

Old
Old image
New
New image
Add a comment to this file

static/img/bg_body.png

Old
Old image
New
New image
Add a comment to this file

static/img/bg_titledialog.png

Old
Old image
New
New image
Add a comment to this file

static/img/bg_usernav.png

Old
Old image
New
New image
Add a comment to this file

static/img/bghead_admin.gif

Old
Old image
New
New image
Add a comment to this file

static/img/bl.png.png

Old
Old image
New
New image
Add a comment to this file

static/img/blue.png

Old
Old image
New
New image
Add a comment to this file

static/img/custom.png

Old
Old image
New
New image
Add a comment to this file

static/img/default.png

Old
Old image
New
New image
Add a comment to this file

static/img/delete-mini.gif

Old
Old image
New
New image
Add a comment to this file

static/img/double.png

Old
Old image
New
New image
Add a comment to this file

static/img/edit-paste.png

Old
Old image
New
New image
Add a comment to this file

static/img/favicon.ico

Old
Old image
New
New image
Add a comment to this file

static/img/favicon.png

Old
Old image
New
New image
Add a comment to this file

static/img/gray.png

Old
Old image
New
New image
Add a comment to this file

static/img/green.png

Old
Old image
New
New image
Add a comment to this file

static/img/grippie.gif

Old
Old image
New
New image
Add a comment to this file

static/img/icon_create.png

Old
Old image
New
New image
Add a comment to this file

static/img/icon_delete.png

Old
Old image
New
New image
Add a comment to this file

static/img/icon_edit.png

Old
Old image
New
New image
Add a comment to this file

static/img/icon_history.png

Old
Old image
New
New image
Add a comment to this file

static/img/icon_home.png

Old
Old image
New
New image
Add a comment to this file

static/img/icon_home2.png

Old
Old image
New
New image
Add a comment to this file

static/img/index.png

Old
Old image
New
New image
Add a comment to this file

static/img/internet-news-reader.png

Old
Old image
New
New image
Add a comment to this file

static/img/layout_sprite.png

Old
Old image
New
New image
Add a comment to this file

static/img/left_arrow.gif

Old
Old image
New
New image
Add a comment to this file

static/img/left_arrow_2.gif

Old
Old image
New
New image
Add a comment to this file

static/img/markdown_icons.gif

Old
Old image
New
New image
Add a comment to this file

static/img/orange.png

Old
Old image
New
New image
Add a comment to this file

static/img/plum.png

Old
Old image
New
New image
Add a comment to this file

static/img/pulldownarrow.gif

Old
Old image
New
New image
Add a comment to this file

static/img/pulluparrow.gif

Old
Old image
New
New image
Add a comment to this file

static/img/red.png

Old
Old image
New
New image
Add a comment to this file

static/img/right.png

Old
Old image
New
New image
Add a comment to this file

static/img/right_arrow.gif

Old
Old image
New
New image
Add a comment to this file

static/img/right_arrow_2.gif

Old
Old image
New
New image
Add a comment to this file

static/img/roundedcorners.svg

Old
Old image
New
New image
Add a comment to this file

static/img/silver.png

Old
Old image
New
New image
Add a comment to this file

static/img/slate.png

Old
Old image
New
New image
Add a comment to this file

static/img/slide.gif

Old
Old image
New
New image
Add a comment to this file

static/img/slideHue.gif

Old
Old image
New
New image
Add a comment to this file

static/img/tab-edit.png

Old
Old image
New
New image
Add a comment to this file

static/img/tab-view.png

Old
Old image
New
New image
Add a comment to this file

static/img/timelinecontent-corner1.gif

Old
Old image
New
New image
Add a comment to this file

static/img/w_close1.gif

Old
Old image
New
New image
Add a comment to this file

static/img/window_background.png

Old
Old image
New
New image
Add a comment to this file

static/img/window_close.gif

Old
Old image
New
New image
Add a comment to this file

static/js/colorpicker.js

File contents unchanged.

Add a comment to this file

static/js/couchit-application.js

File contents unchanged.

Add a comment to this file

static/js/couchit-page.js

File contents unchanged.

Add a comment to this file

static/js/couchit-semantic.js

File contents unchanged.

Add a comment to this file

static/js/lib/builder.js

File contents unchanged.

Add a comment to this file

static/js/lib/controls.js

File contents unchanged.

Add a comment to this file

static/js/lib/dragdrop.js

File contents unchanged.

Add a comment to this file

static/js/lib/effects.js

File contents unchanged.

Add a comment to this file

static/js/lib/livepipe.js

File contents unchanged.

Add a comment to this file

static/js/lib/prototype.js

File contents unchanged.

Add a comment to this file

static/js/lib/scriptaculous.js

File contents unchanged.

Add a comment to this file

static/js/lib/showdown.js

File contents unchanged.

Add a comment to this file

static/js/lib/slider.js

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/js/lib/unittest.js

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

static/js/scriptaculous.js

File contents unchanged.

Add a comment to this file

static/js/src/application.js

File contents unchanged.

static/js/src/page.js

               requestHeaders: {Accept: 'application/json'},
               postBody: Object.toJSON(this._form.serialize(true)),
               onSuccess: function(response) {
+                alert (response)
                   data = response.responseText.evalJSON(true);
                   if (data['ok']) {
                       this._renamingPage = false;
Add a comment to this file

static/js/src/semantic.js

File contents unchanged.

File contents unchanged.

templates/base.html

     <title>{% if site and site.title %}{{ site.title }} - {% endif %}{% block title %}{% endblock %}</title>
     <link rel="icon" type="image/png" href="/static/img/favicon.png" />
     <link rel="shortcut icon" href="/static/img/favicon.png" type="image/png" />
+
+    <!--[if IE]>
+
     <script>
         // allow IE to recognize HTMl5 elements
-        if (!document.createElementNS) {
-            document.createElement('section');
-            document.createElement('audio');
-            document.createElement('video');
-            document.createElement('article');
-            document.createElement('aside');
-            document.createElement('footer');
-            document.createElement('header');
-            document.createElement('nav');
-            document.createElement('time');
-        }
+        document.createElement('section');
+        document.createElement('article');
+        document.createElement('aside');
+        document.createElement('footer');
+        document.createElement('header');
+        document.createElement('nav');
+        document.createElement('time');
 
     </script>
-    
+    <![endif]-->
+
     {% if DEBUG %}
     <link rel="stylesheet" href="/static/css/src/debug.css" type="text/css" />
     <link rel="stylesheet" type="text/css" href="/static/css/src/textarea.css" />

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

templates/not_found.html

File contents unchanged.

templates/page/diff.html

 <script type="text/javascript">
     Site.name = "{{ site.cname }}";
     Site.url = "{{ site_url }}";
-    {% if can_edit %}
-    new Create();
-    {% endif %}
-    new Diff();
+    document.observe("dom:loaded", function() {
+        {% if can_edit %}
+        new Create();
+        {% endif %}
+        new Diff();
+    });
 </script>
 {% endblock %}
Add a comment to this file

templates/page/diff_inc.html

File contents unchanged.

templates/page/edit.html

     </form>
     <div id="preview"></div>
     
-<script type="text/javascript" charset="utf-8">
-      var textarea = new Control.TextArea('content');  
-      var toolbar = new Control.TextArea.ToolBar(textarea);  
-      toolbar.container.id = 'markdown_toolbar';
-      
-      //preview of markdown text  
-      var converter = new Showdown.converter;  
-      var converter_callback = function(value){  
-          $('preview').update(converter.makeHtml(value));  
-      }  
-      converter_callback(textarea.getValue());  
-      textarea.observe('change',converter_callback);
-      
-      //buttons  
-      toolbar.addButton('Italics',function(){  
-          this.wrapSelection('*','*');  
-      },{  
-          id: 'markdown_italics_button'  
-      });  
+    <script type="text/javascript" charset="utf-8">
+        document.observe("dom:loaded", function() {
+          var textarea = new Control.TextArea('content');  
+          var toolbar = new Control.TextArea.ToolBar(textarea);  
+          toolbar.container.id = 'markdown_toolbar';
+          
+          //preview of markdown text  
+          var converter = new Showdown.converter;  
+          var converter_callback = function(value){  
+              $('preview').update(converter.makeHtml(value));  
+          }  
+          converter_callback(textarea.getValue());  
+          textarea.observe('change',converter_callback);
+          
+          //buttons  
+          toolbar.addButton('Italics',function(){  
+              this.wrapSelection('*','*');  
+          },{  
+              id: 'markdown_italics_button'  
+          });  
 
-      toolbar.addButton('Bold',function(){  
-          this.wrapSelection('**','**');  
-      },{  
-          id: 'markdown_bold_button'  
-      });  
+          toolbar.addButton('Bold',function(){  
+              this.wrapSelection('**','**');  
+          },{  
+              id: 'markdown_bold_button'  
+          });  
 
-      toolbar.addButton('Link',function(){  
-          var selection = this.getSelection();  
-          var response = prompt('Enter Link URL','');  
-          if(response == null)  
-              return;  
-          this.replaceSelection('[' + (selection == '' ? 'Link Text' : selection) + '](' + (response == '' ? 'http://link_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')');  
-      },{  
-          id: 'markdown_link_button'  
-      });  
+          toolbar.addButton('Link',function(){  
+              var selection = this.getSelection();  
+              var response = prompt('Enter Link URL','');  
+              if(response == null)  
+                  return;  
+              this.replaceSelection('[' + (selection == '' ? 'Link Text' : selection) + '](' + (response == '' ? 'http://link_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')');  
+          },{  
+              id: 'markdown_link_button'  
+          });  
 
-      toolbar.addButton('Image',function(){  
-          var selection = this.getSelection();  
-          var response = prompt('Enter Image URL','');  
-          if(response == null)  
-              return;  
-          this.replaceSelection('![' + (selection == '' ? 'Image Alt Text' : selection) + '](' + (response == '' ? 'http://image_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')');  
-      },{  
-          id: 'markdown_image_button'  
-      });  
+          toolbar.addButton('Image',function(){  
+              var selection = this.getSelection();  
+              var response = prompt('Enter Image URL','');  
+              if(response == null)  
+                  return;  
+              this.replaceSelection('![' + (selection == '' ? 'Image Alt Text' : selection) + '](' + (response == '' ? 'http://image_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')');  
+          },{  
+              id: 'markdown_image_button'  
+          });  
 
-      toolbar.addButton('Heading',function(){  
-          var selection = this.getSelection();  
-          if(selection == '')  
-              selection = 'Heading';  
-          this.replaceSelection("\n" + selection + "\n" + $R(0,Math.max(5,selection.length)).collect(function(){'-'}).join('') + "\n");  
-      },{  
-          id: 'markdown_heading_button'  
-      });  
+          toolbar.addButton('Heading',function(){  
+              var selection = this.getSelection();  
+              if(selection == '')  
+                  selection = 'Heading';  
+              this.replaceSelection("\n" + selection + "\n" + $R(0,Math.max(5,selection.length)).collect(function(){'-'}).join('') + "\n");  
+          },{  
+              id: 'markdown_heading_button'  
+          });  
 
-      toolbar.addButton('Unordered List',function(event){  
-          this.collectFromEachSelectedLine(function(line){  
-              return event.shiftKey ? (line.match(/^\*{2,}/) ? line.replace(/^\*/,'') : line.replace(/^\*\s/,'')) : (line.match(/\*+\s/) ? '*' : '* ') + line;  
+          toolbar.addButton('Unordered List',function(event){  
+              this.collectFromEachSelectedLine(function(line){  
+                  return event.shiftKey ? (line.match(/^\*{2,}/) ? line.replace(/^\*/,'') : line.replace(/^\*\s/,'')) : (line.match(/\*+\s/) ? '*' : '* ') + line;  
+              });  
+          },{  
+              id: 'markdown_unordered_list_button'  
           });  
-      },{  
-          id: 'markdown_unordered_list_button'  
-      });  
 
-      toolbar.addButton('Ordered List',function(event){  
-          var i = 0;  
-          this.collectFromEachSelectedLine(function(line){  
-              if(!line.match(/^\s+$/)){  
-                  ++i;  
-                  return event.shiftKey ? line.replace(/^\d+\.\s/,'') : (line.match(/\d+\.\s/) ? '' : i + '. ') + line;  
-              }  
+          toolbar.addButton('Ordered List',function(event){  
+              var i = 0;  
+              this.collectFromEachSelectedLine(function(line){  
+                  if(!line.match(/^\s+$/)){  
+                      ++i;  
+                      return event.shiftKey ? line.replace(/^\d+\.\s/,'') : (line.match(/\d+\.\s/) ? '' : i + '. ') + line;  
+                  }  
+              });  
+          },{  
+              id: 'markdown_ordered_list_button'  
           });  
-      },{  
-          id: 'markdown_ordered_list_button'  
-      });  
 
-      toolbar.addButton('Block Quote',function(event){  
-          this.collectFromEachSelectedLine(function(line){  
-              return event.shiftKey ? line.replace(/^\> /,'') : '> ' + line;  
+          toolbar.addButton('Block Quote',function(event){  
+              this.collectFromEachSelectedLine(function(line){  
+                  return event.shiftKey ? line.replace(/^\> /,'') : '> ' + line;  
+              });  
+          },{  
+              id: 'markdown_quote_button'  
           });  
-      },{  
-          id: 'markdown_quote_button'  
-      });  
 
-      toolbar.addButton('Code Block',function(event){  
-          this.collectFromEachSelectedLine(function(line){  
-              return event.shiftKey ? line.replace(/    /,'') : '    ' + line;  
+          toolbar.addButton('Code Block',function(event){  
+              this.collectFromEachSelectedLine(function(line){  
+                  return event.shiftKey ? line.replace(/    /,'') : '    ' + line;  
+              });  
+          },{  
+              id: 'markdown_code_button'  
           });  
-      },{  
-          id: 'markdown_code_button'  
-      });  
 
-      toolbar.addButton('Help',function(){  
-          window.open('http://daringfireball.net/projects/markdown/dingus');  
-      },{  
-          id: 'markdown_help_button'  
-      });
+          toolbar.addButton('Help',function(){  
+              window.open('http://daringfireball.net/projects/markdown/dingus');  
+          },{  
+              id: 'markdown_help_button'  
+              });
+    });
 </script>
-{% endblock %}
+{% endblock %}
Add a comment to this file

templates/page/export.html

File contents unchanged.

Add a comment to this file

templates/page/export_index.html

File contents unchanged.

templates/page/history.html

 {% block footer %}
 <script type="text/javascript">
     Site.name = "{{ site.cname }}";
-    Site.url = "{{ site_url }}"
-    {% if can_edit %}
-    new Create();
-    {% endif %}
-    new Compare();
+    Site.url = "{{ site_url }}";
+    document.observe("dom:loaded", function() {
+        {% if can_edit %}
+        new Create();
+        {% endif %}
+        new Compare();
+    });
 </script>
 {% endblock %}
 
Add a comment to this file

templates/page/revision_notfound.html

File contents unchanged.

templates/page/show.html

      Page.home = false;
     {% endif %}
     {% endif %}
-    new Create();
-    new PageUI();
+    document.observe("dom:loaded", function() {
+        new Create();
+        new PageUI();
+    });
     {% endif %}
     
     new Feed();

File contents unchanged.

Add a comment to this file

templates/site/change_password.html

File contents unchanged.

Add a comment to this file

templates/site/change_password_authenticated.html

File contents unchanged.

templates/site/changes.html

     Site.name = "{{ site.cname }}";
     Site.url = "{{ site_url }}";
     {% if can_edit %}
-    new Create();
+    document.observe("dom:loaded", function() {
+            new Create();
+    });
     {% endif %}
 </script>
 {% endblock %}
 
 {% block sidebar %}
 {% include "sidebar.html" %}
-{% endblock %}
+{% endblock %}

templates/site/claim.html

 
 {% block footer %}
 <script type="text/javascript" charset="utf-8">
-    new Claim();
+    document.observe("dom:loaded", function() {
+            new Claim();
+    });
 </script>
 {% endblock %}
Add a comment to this file

templates/site/delete.html

File contents unchanged.

templates/site/design.html

     <script type="text/javascript">
         Site.name = "{{ site.cname }}";
         Site.url = "{{ site_url }}";
-        new Create();
-        
-        $('custom_form').getElementsBySelector('input.setColor').each(function(el) {
-            new Control.ColorPicker(el.id);
-            el.observe("focus", function(e) {
+        document.observe("dom:loaded", function() {
+            new Create();
+            
+            $('custom_form').getElementsBySelector('input.setColor').each(function(el) {
+                new Control.ColorPicker(el.id);
+                el.observe("focus", function(e) {
+                    $('style_custom').checked=true;
+                }, false);
+
+            });
+            
+            $('syntax_style').observe("focus", function(e) {
                 $('style_custom').checked=true;
             }, false);
-
-        });
-        
-        $('syntax_style').observe("focus", function(e) {
-            $('style_custom').checked=true;
-        }, false);
-        
+        }); 
     </script>
 {% endblock %}
Add a comment to this file

templates/site/email_claimed.txt

File contents unchanged.

Add a comment to this file

templates/site/forgot_password.html

File contents unchanged.

Add a comment to this file

templates/site/forgot_password.txt

File contents unchanged.

Add a comment to this file

templates/site/login.html

File contents unchanged.

templates/site/settings.html

 <script type="text/javascript">
     Site.name = "{{ site.cname }}";
     Site.url = "{{ site_url }}";
-    new Create();
-    new Settings();
+    document.observe("dom:loaded", function() {
+        new Create();
+        new Settings();
+    });
 </script>
-{% endblock %}
+{% endblock %}

templates/site/site_address.html

 
 {% block footer %}
 <script type="text/javascript">
-    new SiteAddress();
+    document.observe("dom:loaded", function() {
+            new SiteAddress();
+    });
 </script>
 {% endblock %}
 
Add a comment to this file

templates/site/sitemap.xml

File contents unchanged.

File contents unchanged.

File contents unchanged.

File contents unchanged.

Add a comment to this file

tools/yuicompressor-2.3.5.jar

Binary file modified.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.