From ed1814649e9cdcd025be5a44bda638ed40314aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Sat, 22 Jun 2019 16:06:40 +0200 Subject: [PATCH] wip --- index.html | 5 ++++- src/cc/Service.cpp | 16 ++++++++++++++++ src/cc/Service.h | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0fde83b0..e32e628f 100755 --- a/index.html +++ b/index.html @@ -242,7 +242,7 @@ { text: ' Assign template', className: 'btn-info', - enabled: false, + enabled: true, action: function () { $.ajax({ type: "GET", @@ -292,12 +292,14 @@ if (arrayLength > 0 ) { $('#templateEditorSave').prop('disabled', false); + $('#templateEditorDelete').prop('disabled', false); $('#templateSelector').html(htmlContent); $('#templateSelector').selectpicker('refresh'); $('#templateSelector').trigger('change'); } else { $('#templateEditorSave').prop('disabled', true); + $('#templateEditorDelete').prop('disabled', true); } $('#templateEditor').modal('show'); @@ -980,6 +982,7 @@