X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=qcg%2Ftemplates%2Fqcg%2Fgridftp.html;fp=qcg%2Ftemplates%2Fqcg%2Fgridftp.html;h=2505b04f3e77f3490e82aa347c646a28d1a4d745;hb=76066c4cd6557fe84369f538d69f64f8955bf03a;hp=d0e77c14ee98de640f00e9ceb4767613255ccd0a;hpb=4268b04e49c87d6373c094a41e77372328e87be1;p=qcg-portal.git diff --git a/qcg/templates/qcg/gridftp.html b/qcg/templates/qcg/gridftp.html index d0e77c1..2505b04 100644 --- a/qcg/templates/qcg/gridftp.html +++ b/qcg/templates/qcg/gridftp.html @@ -14,6 +14,13 @@ $(function () { var statusTimeout; + filex.files.on('change:checked', function() { + var selected = filex.selectedFiles().length; + + $('#btn-rename').toggleClass('disabled', selected != 1); + $('#btn-delete').toggleClass('disabled', selected == 0); + }); + $('#btn-upload').on('click', function() { var url = '{% url 'gridftp_upload' %}?' + $.param({host: filex.host, path: filex.path.full() + '/'}); @@ -135,8 +142,8 @@
- - + +