瀏覽代碼

Host environment does not have string.startsWith().

Neal Wilson 7 年之前
父節點
當前提交
17e9dec25f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      config/Windows/batchdetailsnew.xml

+ 1
- 1
config/Windows/batchdetailsnew.xml 查看文件

@@ -581,7 +581,7 @@
581 581
                     return;
582 582
                 }
583 583
                 if(Number(search.text)) {
584
-                    if(search.text.startsWith('00')) {
584
+                    if(search.text[0] == '0' && search.text[1] == '0') {
585 585
                         var query = new QSqlQuery();
586 586
                         query.prepare("SELECT machine, time FROM scheduled_roasts WHERE id = :id");
587 587
                         query.bind(":id", Number(search.text));

Loading…
取消
儲存