fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12032] property: test hide field


From: Sigurd Nes
Subject: [Fmsystem-commits] [12032] property: test hide field
Date: Sun, 29 Jun 2014 15:06:36 +0000

Revision: 12032
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12032
Author:   sigurdne
Date:     2014-06-29 15:06:35 +0000 (Sun, 29 Jun 2014)
Log Message:
-----------
property: test hide field

Modified Paths:
--------------
    trunk/property/inc/custom/default/ticket_NLSH_validate.js

Modified: trunk/property/inc/custom/default/ticket_NLSH_validate.js
===================================================================
--- trunk/property/inc/custom/default/ticket_NLSH_validate.js   2014-06-27 
11:14:08 UTC (rev 12031)
+++ trunk/property/inc/custom/default/ticket_NLSH_validate.js   2014-06-29 
15:06:35 UTC (rev 12032)
@@ -1,13 +1,22 @@
 
+$(document).ready(function()
+{
+       if (!$("#global_category_id").val() === 20)
+       {
+               document.getElementById('label_feilkoder').style.display = 
'none';
+               document.getElementById('id_feilkoder').style.display = 'none';
+       }
+});
+
 function validate_submit()
 {
        var error = false;
        var feilkode_id = $("#id_feilkoder").val();
        var category_id = $("#global_category_id").val();
        var group_id = $("#global_category_id").val();
-       var status_id = $("#status_id").val();  
+       var status_id = $("#status_id").val();
 
-       if(category_id == 20)
+       if (category_id == 20)
        {
                if (!feilkode_id && status_id == 'X')
                {
@@ -15,7 +24,7 @@
                }
        }
 
-       if(error)
+       if (error)
        {
                alert('Feilkode må velges før meldingen kan avsluttes');
        }




reply via email to

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