fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15109] Syncromind: Merge 14936:15027 from trunk


From: sigurdne
Subject: [Fmsystem-commits] [15109] Syncromind: Merge 14936:15027 from trunk
Date: Fri, 13 May 2016 12:22:41 +0000 (UTC)

Revision: 15109
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15109
Author:   sigurdne
Date:     2016-05-13 12:22:41 +0000 (Fri, 13 May 2016)
Log Message:
-----------
Syncromind: Merge 14936:15027 from trunk

Modified Paths:
--------------
    branches/dev-syncromind-2/property/js/portico/tts.view.js

Modified: branches/dev-syncromind-2/property/js/portico/tts.view.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/tts.view.js   2016-05-13 
12:22:38 UTC (rev 15108)
+++ branches/dev-syncromind-2/property/js/portico/tts.view.js   2016-05-13 
12:22:41 UTC (rev 15109)
@@ -72,7 +72,7 @@
        if (action == 'save' || action == 'apply')
        {
                conf = {
-                       modules: 'location, date, security, file',
+                       modules: 'date, security, file',
                        validateOnBlur: false,
                        scrollToTopOnError: true,
                        errorMessagePosition: 'top',
@@ -283,3 +283,54 @@
 var strURL = phpGWLink('index.php', oArgs, true);
 JqueryPortico.autocompleteHelper(strURL, 'unspsc_code_name', 'unspsc_code', 
'unspsc_code_container');
 
+function receive_order(order_id)
+{
+       var oArgs = {
+               menuaction: 'property.uitts.receive_order',
+               id: order_id,
+               received_percent:$( "#slider-range-min" ).slider( "value" )
+       };
+       var strURL = phpGWLink('index.php', oArgs, true);
+       $.ajax({
+               type: 'POST',
+               dataType: 'json',
+               url: strURL,
+               success: function (data)
+               {
+                       if (data != null)
+                       {
+                               var msg;
+                               if (data['result'] == true)
+                               {
+                                       msg = 'OK';
+                                       
$("#order_received_time").html(data['time']);
+                               }
+                               else
+                               {
+                                       msg = 'Error';
+
+                               }
+                               window.alert(msg);
+                       }
+               },
+               failure: function (o)
+               {
+                       window.alert('failure - try again - once');
+               },
+               timeout: 5000
+       });
+}
+
+  $(function() {
+    $( "#slider-range-min" ).slider({
+      range: "min",
+      value: $( "#value_order_received_percent" ).val() || 0,
+      min: 0,
+      max: 100,
+      step: 10,
+      slide: function( event, ui ) {
+        $( "#order_received_percent" ).val( ui.value + " %");
+      }
+    });
+    $( "#order_received_percent" ).val( $( "#slider-range-min" ).slider( 
"value" )  + " %");
+  });




reply via email to

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