[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10898] Deleted function view_cases_for_check_list
From: |
Torstein |
Subject: |
[Fmsystem-commits] [10898] Deleted function view_cases_for_check_list |
Date: |
Sun, 17 Feb 2013 15:55:03 +0000 |
Revision: 10898
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10898
Author: vator
Date: 2013-02-17 15:55:02 +0000 (Sun, 17 Feb 2013)
Log Message:
-----------
Deleted function view_cases_for_check_list
Modified Paths:
--------------
trunk/controller/js/controller/check_list.js
trunk/controller/templates/mobilefrontend/check_list/fragments/check_list_top_section.xsl
trunk/controller/templates/mobilefrontend/css/base.css
Modified: trunk/controller/js/controller/check_list.js
===================================================================
--- trunk/controller/js/controller/check_list.js 2013-02-17 15:54:44 UTC
(rev 10897)
+++ trunk/controller/js/controller/check_list.js 2013-02-17 15:55:02 UTC
(rev 10898)
@@ -75,9 +75,11 @@
// UPDATE CHECKLIST STATUS
$("#update-check-list-status").live("submit", function(e){
e.preventDefault();
- console.log("Oppdaterer status til sjekkliste!!!");
+
var thisForm = $(this);
- //var submitBnt = $(thisForm).find("input[type='submit']");
+
+ var statusClass = $(thisForm).attr("class");
+
var requestUrl = $(thisForm).attr("action");
$.ajax({
@@ -88,9 +90,14 @@
var jsonObj = jQuery.parseJSON(data);
if(jsonObj.status == "saved"){
-
- console.log("Lagret!!!");
- }
+ if(statusClass == "done"){
+ $("#update-check-list-status.not_done").show();
+ $("#update-check-list-status.done").hide();
+ }else{
+ $("#update-check-list-status.not_done").hide();
+ $("#update-check-list-status.done").show();
+ }
+ }
}
}
});
Modified:
trunk/controller/templates/mobilefrontend/check_list/fragments/check_list_top_section.xsl
===================================================================
---
trunk/controller/templates/mobilefrontend/check_list/fragments/check_list_top_section.xsl
2013-02-17 15:54:44 UTC (rev 10897)
+++
trunk/controller/templates/mobilefrontend/check_list/fragments/check_list_top_section.xsl
2013-02-17 15:55:02 UTC (rev 10898)
@@ -25,17 +25,33 @@
<!-- ================== CHANGE STATUS FOR CHECKLIST
===================== -->
<xsl:variable name="action_url"><xsl:value-of
select="php:function('get_phpgw_link', '/index.php',
'menuaction:controller.uicheck_list.update_status,phpgw_return_as:json')"
/></xsl:variable>
- <form id="update-check-list-status" action="{$action_url}" method="post">
+ <form id="update-check-list-status" class="done" action="{$action_url}"
method="post">
<input type="hidden" name="check_list_id"
value="{check_list/id}" />
- <input type="hidden" name="status" value="0" />
+ <input type="hidden" name="status" value="1" />
<input type="submit" class="btn">
- <xsl:value-of select="php:function('lang', 'Status not done')" />
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang', 'Status not done')" />
+ </xsl:attribute>
</input>
<div class="icon">
<img src="/pe/controller/images/red_ring.png" />
</div>
</form>
+
+ <form id="update-check-list-status" class="not_done"
action="{$action_url}" method="post">
+ <input type="hidden" name="check_list_id"
value="{check_list/id}" />
+ <input type="hidden" name="status" value="0" />
+
+ <input type="submit" class="btn">
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang', 'Status done')" />
+ </xsl:attribute>
+ </input>
+ <div class="icon">
+ <img src="/pe/controller/images/green_ring.png" />
+ </div>
+ </form>
<!-- ================== CHECKLIST TAB MENU
===================== -->
Modified: trunk/controller/templates/mobilefrontend/css/base.css
===================================================================
--- trunk/controller/templates/mobilefrontend/css/base.css 2013-02-17
15:54:44 UTC (rev 10897)
+++ trunk/controller/templates/mobilefrontend/css/base.css 2013-02-17
15:55:02 UTC (rev 10898)
@@ -33,9 +33,13 @@
#update-check-list-status {
float: right;
- width: 135px;
+ width: 180px;
}
+#update-check-list-status.not_done {
+ display: none;
+}
+
#update-check-list-status .btn {
float:left;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10898] Deleted function view_cases_for_check_list,
Torstein <=