You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2016/01/08 12:05:42 UTC

[2/7] allura git commit: [#7998] ticket:878 fix tests

[#7998] ticket:878 fix tests


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/ee2895ef
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ee2895ef
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ee2895ef

Branch: refs/heads/ib/7998a
Commit: ee2895efca5bfb6e01bce8cd2ca15b0da430a8fc
Parents: b5df9ce
Author: Denis Kotov <de...@gmail.com>
Authored: Wed Dec 16 16:17:47 2015 +0200
Committer: Denis Kotov <de...@gmail.com>
Committed: Thu Jan 7 21:17:38 2016 +0200

----------------------------------------------------------------------
 ForgeWiki/forgewiki/templates/wiki/page_edit.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ee2895ef/ForgeWiki/forgewiki/templates/wiki/page_edit.html
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/templates/wiki/page_edit.html b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
index 69304a2..93b4e59 100644
--- a/ForgeWiki/forgewiki/templates/wiki/page_edit.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
@@ -101,6 +101,7 @@
   });
   /*]]>*/
 
+  {% if page_exists %}
   function update_attachments(attachment_url, filename, filesize){
     if ($('.attachment_files').length + $('.attachment_files').length == 0){
       var attach_divs = '<strong>Attachments:</strong>' +
@@ -131,7 +132,6 @@
       $(new_attach).prependTo($('.attachment_files'));
     };
   };
-
   function send_attach() {
     var page_url = '{{page.url()}}';
     $.ajax({
@@ -165,5 +165,6 @@
       }
     });
   };
+  {% endif %}
 </script>
 {% endblock %}