Explorar el Código

successful file update

ayHaru hace 4 años
padre
commit
fe9a38fe24
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      admin/templates/default/provider.successful.php

+ 3 - 2
admin/templates/default/provider.successful.php

@@ -114,11 +114,12 @@
         // console.log('frontOneHour', frontOneHour,hour, stamp);
         let t = stamp + hour*3600
         let interval = $("select[name=interval]").val()
-        $.get( window.location.origin + "/plot/index?time_stamp=" + t + "&interval=" + interval, function (data){
+        let s = window.location.origin + "/plot/index?time_stamp=" + t + "&interval=" + interval
+        $.get( s, function (data){
             if (!data) {
                 return
             }
-            $('iframe').attr('src',src)
+            $('iframe').attr('src',s)
         });
 
         $('#timeSelect').change(function () {