2 <script src="js/jquery.htmlstream.js"></script>
5 function updateEnd(data){
6 //$("#updatepopup .panel_text").html(data);
7 $("#remoteupdate_form").find("input").removeAttr('disabled');
8 $(".panel_action_close").fadeIn()
10 function updateOn(data){
12 var patt=/§([^§]*)§/g;
13 var matches = data.match(patt);
14 $(matches).each(function(id,data){
15 data = data.replace(/§/g,"");
18 elm = $("#updatepopup .panel_text #"+d[0]);
19 html = "<div id='"+d[0]+"' class='progress'>"+d[1]+"<span>"+d[2]+"</span></div>";
21 $("#updatepopup .panel_text").append(html);
23 $(elm).replaceWith(html);
31 $("#remoteupdate_form").submit(function(){
33 $(this).find("input").each(function(i, e){
34 name = $(e).attr('name');
40 $("#updatepopup .panel_text").html("");
41 $("#updatepopup").show();
42 $("#updatepopup .panel").hide().slideDown(500);
43 $(".panel_action_close").hide().click(function(){
44 $("#updatepopup .panel").slideUp(500, function(){
45 $("#updatepopup").hide();
50 $(this).attr('action'),
62 <div id="updatepopup" class="popup">
63 <div class="background"></div>
65 <div class="panel_in">
66 <h1>Friendica Update</h1>
67 <div class="panel_text"></div>
68 <div class="panel_actions">
69 <input type="button" value="{{$close|escape:'html'}}" class="panel_action_close">
75 <dl> <dt>Your version:</dt><dd>{{$localversion}}</dd> </dl>
77 <dl> <dt>New version:</dt><dd>{{$remoteversion}}</dd> </dl>
79 <form id="remoteupdate_form" method="POST" action="{{$baseurl}}/admin/update">
80 <input type="hidden" name="{{$remotefile.0}}" value="{{$remotefile.2|escape:'html'}}">
83 <div class="submit"><input type="submit" name="remoteupdate" value="{{$submit|escape:'html'}}" /></div>
85 <h3>Your friendica installation is not writable by web server.</h3>
87 <p>You can try to update via FTP</p>
88 {{include file="field_input.tpl" field=$ftphost}}
89 {{include file="field_input.tpl" field=$ftppath}}
90 {{include file="field_input.tpl" field=$ftpuser}}
91 {{include file="field_password.tpl" field=$ftppwd}}
92 <div class="submit"><input type="submit" name="remoteupdate" value="{{$submit|escape:'html'}}" /></div>