From echatellier@users.chorem.org Sun Sep 1 14:48:09 2013 From: echatellier@users.chorem.org To: jtimer-commits@list.chorem.org Subject: [Jtimer-commits] r2930 - in branches/ng-jtimer/jtimer-server/src/main/webapp: js partials Date: Sun, 01 Sep 2013 14:48:09 +0200 Message-ID: <20130901124809.273D518E4AB@nuiton.codelutin.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5630265261122611304==" --===============5630265261122611304== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: echatellier Date: 2013-09-01 14:48:08 +0200 (Sun, 01 Sep 2013) New Revision: 2930 Url: http://chorem.org/projects/jtimer/repository/revisions/2930 Log: Fix first level update (hack) Modified: branches/ng-jtimer/jtimer-server/src/main/webapp/js/app.js branches/ng-jtimer/jtimer-server/src/main/webapp/partials/tasks.html Modified: branches/ng-jtimer/jtimer-server/src/main/webapp/js/app.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/ng-jtimer/jtimer-server/src/main/webapp/js/app.js 2013-09-01 12:= 47:05 UTC (rev 2929) +++ branches/ng-jtimer/jtimer-server/src/main/webapp/js/app.js 2013-09-01 12:= 48:08 UTC (rev 2930) @@ -185,6 +185,13 @@ } }); }); + // FIXME echatellier 20130901 for root children not being up= dated + $scope.$watchCollection("tree.children", function(newValue, = oldValue, scope){ + if (newValue !=3D=3D oldValue) { + var tree =3D treeGetter($scope); + update(tree); + } + }); =20 // on force un premier appel pour que l'arbre s'affiche update(treeGetter($scope)); Modified: branches/ng-jtimer/jtimer-server/src/main/webapp/partials/tasks.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/ng-jtimer/jtimer-server/src/main/webapp/partials/tasks.html 2013= -09-01 12:47:05 UTC (rev 2929) +++ branches/ng-jtimer/jtimer-server/src/main/webapp/partials/tasks.html 2013= -09-01 12:48:08 UTC (rev 2930) @@ -22,7 +22,7 @@
{{currentDate()}} WebTim= er - {{tree.getTime().today |time}} | {{tree.getTime().= global | time}} + {{tree.getTime().today |time}} | {{tree.getTime().= global | time}}
=20
--===============5630265261122611304==--