2 * AUTOMATICALLY GENERATED TEMPLATE
3 * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
6 <script src="js/jquery.htmlstream.js"></script>
9 function updateEnd(data){
10 //$("#updatepopup .panel_text").html(data);
11 $("#remoteupdate_form").find("input").removeAttr('disabled');
12 $(".panel_action_close").fadeIn()
14 function updateOn(data){
16 var patt=/§([^§]*)§/g;
17 var matches = data.match(patt);
18 $(matches).each(function(id,data){
19 data = data.replace(/§/g,"");
22 elm = $("#updatepopup .panel_text #"+d[0]);
23 html = "<div id='"+d[0]+"' class='progress'>"+d[1]+"<span>"+d[2]+"</span></div>";
25 $("#updatepopup .panel_text").append(html);
27 $(elm).replaceWith(html);
35 $("#remoteupdate_form").submit(function(){
37 $(this).find("input").each(function(i, e){
38 name = $(e).attr('name');
44 $("#updatepopup .panel_text").html("");
45 $("#updatepopup").show();
46 $("#updatepopup .panel").hide().slideDown(500);
47 $(".panel_action_close").hide().click(function(){
48 $("#updatepopup .panel").slideUp(500, function(){
49 $("#updatepopup").hide();
54 $(this).attr('action'),
66 <div id="updatepopup" class="popup">
67 <div class="background"></div>
69 <div class="panel_in">
70 <h1>Friendica Update</h1>
71 <div class="panel_text"></div>
72 <div class="panel_actions">
73 <input type="button" value="{{$close}}" class="panel_action_close">
79 <dl> <dt>Your version:</dt><dd>{{$localversion}}</dd> </dl>
81 <dl> <dt>New version:</dt><dd>{{$remoteversion}}</dd> </dl>
83 <form id="remoteupdate_form" method="POST" action="{{$baseurl}}/admin/update">
84 <input type="hidden" name="{{$remotefile.0}}" value="{{$remotefile.2}}">
87 <div class="submit"><input type="submit" name="remoteupdate" value="{{$submit}}" /></div>
89 <h3>Your friendica installation is not writable by web server.</h3>
91 <p>You can try to update via FTP</p>
92 {{include file="field_input.tpl" field=$ftphost}}
93 {{include file="field_input.tpl" field=$ftppath}}
94 {{include file="field_input.tpl" field=$ftpuser}}
95 {{include file="field_password.tpl" field=$ftppwd}}
96 <div class="submit"><input type="submit" name="remoteupdate" value="{{$submit}}" /></div>