Commit a6ecea04 authored by Jean Pommier's avatar Jean Pommier
Browse files

[template-editor] save button works but is always active

parent 31bf50b4
...@@ -77,7 +77,7 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -77,7 +77,7 @@ public class AbstractTemplateFormPanel extends Panel {
} }
}; };
save_btn.setEnabled(false); save_btn.setEnabled(true);
save_btn.setOutputMarkupId(true); save_btn.setOutputMarkupId(true);
add(save_btn); add(save_btn);
...@@ -107,9 +107,9 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -107,9 +107,9 @@ public class AbstractTemplateFormPanel extends Panel {
destpath_label.add(AttributeModifier.replace("class", "active")); destpath_label.add(AttributeModifier.replace("class", "active"));
destpath_label_dirty.add(AttributeModifier.replace("class", "active")); destpath_label_dirty.add(AttributeModifier.replace("class", "active"));
// TODO rewrite this // TODO rewrite this
//target.addComponent(srcpath_label); target.add(srcpath_label);
//target.addComponent(destpath_label); target.add(destpath_label);
//target.addComponent(destpath_label_dirty); target.add(destpath_label_dirty);
} }
private void ajaxReload(AjaxRequestTarget target) { private void ajaxReload(AjaxRequestTarget target) {
...@@ -119,10 +119,10 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -119,10 +119,10 @@ public class AbstractTemplateFormPanel extends Panel {
templateModel.getObject().setDirty(""); templateModel.getObject().setDirty("");
destpath_label_dirty.add(AttributeModifier.replace("class", "")); destpath_label_dirty.add(AttributeModifier.replace("class", ""));
// TODO rewrite this // TODO rewrite this
//target.addComponent(tpl); target.add(tpl);
//target.addComponent(srcpath_label); target.add(srcpath_label);
//target.addComponent(destpath_label); target.add(destpath_label);
//target.addComponent(destpath_label_dirty); target.add(destpath_label_dirty);
} }
public void setParent(AbstractTemplateEditorPage page) { public void setParent(AbstractTemplateEditorPage page) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment