Преглед на файлове

Fix changing swimlane color to not reload webpage.

Thanks to xet7 !
Lauri Ojansivu преди 1 месец
родител
ревизия
ecf2418347
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      client/components/swimlanes/swimlaneHeader.js

+ 5 - 0
client/components/swimlanes/swimlaneHeader.js

@@ -178,6 +178,11 @@ BlazeComponent.extendComponent({
   events() {
     return [
       {
+        'submit form'(event) {
+          event.preventDefault();
+          this.currentSwimlane.setColor(this.currentColor.get());
+          Popup.back();
+        },
         'click .js-palette-color'() {
           this.currentColor.set(this.currentData().color);
         },