fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [10895] Deleted function view_cases_for_check_list


From: Torstein
Subject: [Fmsystem-commits] [10895] Deleted function view_cases_for_check_list
Date: Sun, 17 Feb 2013 15:26:09 +0000

Revision: 10895
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10895
Author:   vator
Date:     2013-02-17 15:26:09 +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/base/css/base.css
    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:05:05 UTC 
(rev 10894)
+++ trunk/controller/js/controller/check_list.js        2013-02-17 15:26:09 UTC 
(rev 10895)
@@ -75,41 +75,24 @@
   // 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 submitBnt = $(thisForm).find("input[type='submit']");
                var requestUrl = $(thisForm).attr("action");
                
      $.ajax({
                          type: 'POST',
                          url: requestUrl + "&" + $(thisForm).serialize(),
-                         success: function(data) {
+                          success: function(data) {
                                  if(data){
                                  var jsonObj = jQuery.parseJSON(data);
                                
                                  if(jsonObj.status == "saved"){
-                                         var submitBnt = 
$(thisForm).find("input[type='submit']");
-                                         $(submitBnt).val("Lagret");   
                                          
-                                         clear_form( thisForm );
-                                                         
-                                         // Changes text on save button back 
to original
-                                         window.setTimeout(function() {
-                                                 if( type == 
"control_item_type_2")
-                                                         
$(submitBnt).val('Lagre måling');
-                                                 else
-                                                         
$(submitBnt).val('Lagre sak');
-                                                 
-                                                       
$(submitBnt).addClass("not_active");
-                                         }, 1000);
-
-                                         $(thisForm).delay(1500).slideUp(500, 
function(){
-                                                 
$(thisForm).parents("ul.expand_list").find("h4 img").attr("src", 
"controller/images/arrow_right.png");  
-                                         });
+                                         console.log("Lagret!!!");
                                          }
                                  }
                                }
-               });
-                       
+               });     
        });
 });
\ No newline at end of file

Modified: trunk/controller/templates/base/css/base.css
===================================================================
--- trunk/controller/templates/base/css/base.css        2013-02-17 15:05:05 UTC 
(rev 10894)
+++ trunk/controller/templates/base/css/base.css        2013-02-17 15:26:09 UTC 
(rev 10895)
@@ -1918,7 +1918,7 @@
 }
 
 .add-cases h3 img {
-  height: 15px;
+  height: 18px;
   margin-right: 5px;
 }
 

Modified: trunk/controller/templates/mobilefrontend/css/base.css
===================================================================
--- trunk/controller/templates/mobilefrontend/css/base.css      2013-02-17 
15:05:05 UTC (rev 10894)
+++ trunk/controller/templates/mobilefrontend/css/base.css      2013-02-17 
15:26:09 UTC (rev 10895)
@@ -33,7 +33,7 @@
 
 #update-check-list-status {
   float: right;
-  width: 13%;
+  width: 135px;
 }
 
 #update-check-list-status .btn {
@@ -41,11 +41,12 @@
 }
 
 #update-check-list-status .icon {
-  float: left;
-  margin-left: 10px;
+  float: right;
+  margin: 0 4px;
   vertical-align: middle;
+  width: 23px;
 }
 
 #update-check-list-status .icon img{
-  height: 28px;
+  width: 100%;
 }
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]