allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [5/5] allura git commit: [#7998] ticket:878 fix tests
Date Wed, 23 Dec 2015 14:34:03 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/f07054b1
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/f07054b1
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/f07054b1

Branch: refs/heads/ib/7998
Commit: f07054b151a02c988d82937261d9201f8141b322
Parents: b4c574d
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Wed Dec 16 16:17:47 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Wed Dec 23 14:42:27 2015 +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/f07054b1/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