allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/7] allura git commit: [#7998] ticket:878 fix tests
Date Fri, 08 Jan 2016 16:36:09 GMT
[#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/master
Commit: ee2895efca5bfb6e01bce8cd2ca15b0da430a8fc
Parents: b5df9ce
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Wed Dec 16 16:17:47 2015 +0200
Committer: Denis Kotov <deniskkotov@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 %}


Mime
View raw message