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