[phpwebapp-commits] CVS: top10/templates/proj_list/footer list_footer.js,1.1.1.1,1.2 list_footer.htm
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-09-26 15:32:26
|
Update of /cvsroot/phpwebapp/top10/templates/proj_list/footer In directory sc8-pr-cvs1:/tmp/cvs-serv4736/templates/proj_list/footer Modified Files: list_footer.js list_footer.html Log Message: Index: list_footer.js =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/footer/list_footer.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** list_footer.js 23 Sep 2003 14:04:14 -0000 1.1.1.1 --- list_footer.js 26 Sep 2003 15:32:20 -0000 1.2 *************** *** 67,72 **** } ! /* ! function approve_selected() { var selected = get_checked_projects(); --- 67,78 ---- } ! /** Used by admin to add new projects. */ ! function add_project() ! { ! SendEvent("list_footer", "add"); ! } ! ! /** Used by admin to modify the data of the projects. */ ! function edit_selected() { var selected = get_checked_projects(); *************** *** 76,83 **** return; } ! SendEvent("list_footer", "approve", "selected="+selected); } ! function delete_selected() { var selected = get_checked_projects(); --- 82,90 ---- return; } ! SendEvent("list_footer", "edit", "selected="+selected); } ! /** Used by admin to delete projects. */ ! function del_selected() { var selected = get_checked_projects(); *************** *** 89,96 **** SendEvent("list_footer", "delete", "selected="+selected); } - - function approve_all() - { - SendEvent("list_footer", "approve_all"); - } - */ --- 96,97 ---- Index: list_footer.html =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/footer/list_footer.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** list_footer.html 23 Sep 2003 14:04:14 -0000 1.1.1.1 --- list_footer.html 26 Sep 2003 15:32:20 -0000 1.2 *************** *** 25,35 **** </td> <td align="right"> ! <!--# ! <If condition="{{new}}"> ! <a class="button" href="javascript:approve_all()">Approve All</a> ! <a class="button" href="javascript:approve_selected()">Approve Selected</a> </If> - <a class="button" href="javascript:delete_selected()">Delete Selected</a> - #--> <a class="button" href="javascript:add_to_list()">Add to My List</a> </td> --- 25,33 ---- </td> <td align="right"> ! <If condition="'{{ADMIN}}'=='true'"> ! <a class="button" href="javascript:add_project()">Add Project</a> ! <a class="button" href="javascript:edit_selected()">Edit Selected</a> ! <a class="button" href="javascript:del_selected()">Delete Selected</a> </If> <a class="button" href="javascript:add_to_list()">Add to My List</a> </td> |