Commits

Anonymous committed 2ab29ae

fix bug in ie7

Comments (0)

Files changed (162)

File contents unchanged.

build/compress.py

File contents unchanged.

build/couchit.yml

File contents unchanged.
File contents unchanged.
File contents unchanged.

couchit/__init__.py

File contents unchanged.

couchit/_design/page/alias/map.js

File contents unchanged.

couchit/_design/page/all_pages/map.js

File contents unchanged.

couchit/_design/page/by_slug/map.js

File contents unchanged.

couchit/_design/page/nb_revision/map.js

File contents unchanged.

couchit/_design/page/revisions/map.js

File contents unchanged.

couchit/_design/site/alias/map.js

File contents unchanged.

couchit/_design/site/by_cname/map.js

File contents unchanged.

couchit/_design/site/password/map.js

File contents unchanged.

couchit/_design/site/token/map.js

File contents unchanged.

couchit/api.py

File contents unchanged.

couchit/application.py

File contents unchanged.

couchit/context_processors.py

File contents unchanged.

couchit/contrib/__init__.py

File contents unchanged.

couchit/contrib/mimeparse.py

File contents unchanged.

couchit/http.py

File contents unchanged.

couchit/models.py

File contents unchanged.

couchit/settings.py

File contents unchanged.

couchit/template.py

File contents unchanged.

couchit/urls.py

File contents unchanged.

couchit/utils/__init__.py

File contents unchanged.

couchit/utils/diff.py

File contents unchanged.

couchit/utils/html.py

File contents unchanged.

couchit/utils/mail.py

File contents unchanged.

couchit/utils/sioc.py

File contents unchanged.

couchit/views.py

File contents unchanged.
File contents unchanged.

static/css/autumn.css

File contents unchanged.

static/css/borland.css

File contents unchanged.

static/css/bw.css

File contents unchanged.

static/css/colorful.css

File contents unchanged.

static/css/default.css

File contents unchanged.

static/css/emacs.css

File contents unchanged.

static/css/friendly.css

File contents unchanged.

static/css/fruity.css

File contents unchanged.

static/css/ie.css

File contents unchanged.

static/css/manni.css

File contents unchanged.

static/css/murphy.css

File contents unchanged.

static/css/native.css

File contents unchanged.

static/css/pastie.css

File contents unchanged.

static/css/perldoc.css

File contents unchanged.

static/css/print.css

File contents unchanged.

static/css/screen.css

File contents unchanged.

static/css/src/debug.css

File contents unchanged.

static/css/src/ie.css

File contents unchanged.

static/css/src/layout.css

File contents unchanged.

static/css/src/print.css

File contents unchanged.

static/css/src/reset.css

File contents unchanged.

static/css/src/slate.css

File contents unchanged.

static/css/src/textarea.css

File contents unchanged.

static/css/src/typography.css

File contents unchanged.

static/css/theme.css

File contents unchanged.

static/css/trac.css

File contents unchanged.

static/img/SatVal.png

Old
Old image
New
New image

static/img/arrow-closed.png

Old
Old image
New
New image

static/img/arrow-open.png

Old
Old image
New
New image

static/img/bg_body.png

Old
Old image
New
New image

static/img/bg_titledialog.png

Old
Old image
New
New image

static/img/bg_usernav.png

Old
Old image
New
New image

static/img/bghead_admin.gif

Old
Old image
New
New image

static/img/bl.png.png

Old
Old image
New
New image

static/img/blue.png

Old
Old image
New
New image

static/img/custom.png

Old
Old image
New
New image

static/img/default.png

Old
Old image
New
New image

static/img/delete-mini.gif

Old
Old image
New
New image

static/img/double.png

Old
Old image
New
New image

static/img/edit-paste.png

Old
Old image
New
New image

static/img/favicon.ico

Old
Old image
New
New image

static/img/favicon.png

Old
Old image
New
New image

static/img/gray.png

Old
Old image
New
New image

static/img/green.png

Old
Old image
New
New image

static/img/grippie.gif

Old
Old image
New
New image

static/img/icon_create.png

Old
Old image
New
New image

static/img/icon_delete.png

Old
Old image
New
New image

static/img/icon_edit.png

Old
Old image
New
New image

static/img/icon_history.png

Old
Old image
New
New image

static/img/icon_home.png

Old
Old image
New
New image

static/img/icon_home2.png

Old
Old image
New
New image

static/img/index.png

Old
Old image
New
New image

static/img/internet-news-reader.png

Old
Old image
New
New image

static/img/layout_sprite.png

Old
Old image
New
New image

static/img/left_arrow.gif

Old
Old image
New
New image

static/img/left_arrow_2.gif

Old
Old image
New
New image

static/img/markdown_icons.gif

Old
Old image
New
New image

static/img/orange.png

Old
Old image
New
New image

static/img/plum.png

Old
Old image
New
New image

static/img/pulldownarrow.gif

Old
Old image
New
New image

static/img/pulluparrow.gif

Old
Old image
New
New image

static/img/red.png

Old
Old image
New
New image

static/img/right.png

Old
Old image
New
New image

static/img/right_arrow.gif

Old
Old image
New
New image

static/img/right_arrow_2.gif

Old
Old image
New
New image

static/img/roundedcorners.svg

Old
Old image
New
New image

static/img/silver.png

Old
Old image
New
New image

static/img/slate.png

Old
Old image
New
New image

static/img/slide.gif

Old
Old image
New
New image

static/img/slideHue.gif

Old
Old image
New
New image

static/img/tab-edit.png

Old
Old image
New
New image

static/img/tab-view.png

Old
Old image
New
New image

static/img/timelinecontent-corner1.gif

Old
Old image
New
New image

static/img/w_close1.gif

Old
Old image
New
New image

static/img/window_background.png

Old
Old image
New
New image

static/img/window_close.gif

Old
Old image
New
New image

static/js/colorpicker.js

File contents unchanged.

static/js/couchit-application.js

File contents unchanged.

static/js/couchit-page.js

File contents unchanged.

static/js/couchit-semantic.js

File contents unchanged.

static/js/lib/builder.js

File contents unchanged.

static/js/lib/controls.js

File contents unchanged.

static/js/lib/dragdrop.js

File contents unchanged.

static/js/lib/effects.js

File contents unchanged.

static/js/lib/livepipe.js

File contents unchanged.

static/js/lib/prototype.js

File contents unchanged.

static/js/lib/scriptaculous.js

File contents unchanged.

static/js/lib/showdown.js

File contents unchanged.

static/js/lib/slider.js

File contents unchanged.

static/js/lib/sound.js

File contents unchanged.

static/js/lib/unittest.js

File contents unchanged.

static/js/livepipe.js

File contents unchanged.

static/js/prototype.js

File contents unchanged.

static/js/scriptaculous.js

File contents unchanged.

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;

static/js/src/semantic.js

File contents unchanged.

templates/about.html

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" />

templates/find.html

File contents unchanged.

templates/header.html

File contents unchanged.

templates/help.html

File contents unchanged.

templates/home.html

File contents unchanged.

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 %}

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 %}

templates/page/export.html

File contents unchanged.

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 %}
 

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();

templates/sidebar.html

File contents unchanged.

templates/site/change_password.html

File contents unchanged.

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 %}

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 %}

templates/site/email_claimed.txt

File contents unchanged.

templates/site/forgot_password.html

File contents unchanged.

templates/site/forgot_password.txt

File contents unchanged.

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 %}
 

templates/site/sitemap.xml

File contents unchanged.

tools/css_parser.py

File contents unchanged.

tools/merge_css.py

File contents unchanged.

tools/merge_js.py

File contents unchanged.

tools/yuicompressor-2.3.5.jar

Binary file modified.