diff -r 0f9cc90c49fa -r dc6c3ac62efa hdalab/js/gomina.js --- a/hdalab/js/gomina.js Mon Jan 30 18:20:59 2012 +0100 +++ b/hdalab/js/gomina.js Thu Feb 02 12:03:07 2012 +0100 @@ -201,9 +201,13 @@ }).join('') + '

Annotations

'; + + '">' + + ( gomNs.sessiondata.annotations[_d.id] && gomNs.sessiondata.annotations[_d.id].texte + ? ''; $("#gestvue").append(_html); + $("#nouvellevue").click(function() { + $("#plusdevues").slideToggle(); + return false; + }) $("#widgetlist input").change(function() { var _newWL = []; $("#widgetlist input").each(function(_k, _e) { @@ -631,5 +667,21 @@ }); gomNs.sessiondata.views[gomNs.sessiondata.view].hiddenWidgets = _newWL; debouncedSaveChanges(); - }) + }); + $("#nouv_resrech").click(function() { + var _txt = prompt("Comment souhaitez-vous nommer votre nouvelle vue ?","Nouveaux résultats de recherche"); + if (_txt !== null) { + addView('filter', _txt); + displayViewList(); + } + return false; + }); + $("#nouv_liste").click(function() { + var _txt = prompt("Comment souhaitez-vous nommer votre nouvelle vue ?","Nouvelle liste"); + if (_txt !== null) { + addView('list', _txt); + displayViewList(); + } + return false; + }); });