Fixed Admintemplate forum_edit

  • Thread starter Thread starter ragtek
  • Start date Start date
R

ragtek

Guest
the redirect after saving a forum isn't working because you've written "no" instead of "on or yes/true/1" in the data-redirect tag

Code:
<xen:form action="{xen:adminlink 'forums/save', $forum}"
    class="AutoValidator"
    data-fieldValidatorUrl="{xen:adminlink 'forums/validate-field', $forum}"
    data-redirect="no">
 
Same for edit of Notices.
No, notices have

Code:
<xen:form class="AutoValidator"
    action="{xen:adminlink 'notices/save', $notice}"
    data-redirect="{xen:if {$notice.notice_id}, off, on}">
but don't know why they did it this way:D (redirect if new one, no redirect if editing a existing)
 
I changed that because I found that I often wanted to make changes, check them and edit again.

I guess if everyone wants it to redirect I could change it back.
 
I changed that because I found that I often wanted to make changes, check them and edit again.

I guess if everyone wants it to redirect I could change it back.
I agree, but then it should be the same behaviour in every form (buttons => save, save & close)
 
the redirect after saving a forum isn't working because you've written "no" instead of "on or yes/true/1" in the data-redirect tag

Code:
<xen:form action="{xen:adminlink 'forums/save', $forum}"
    class="AutoValidator"
    data-fieldValidatorUrl="{xen:adminlink 'forums/validate-field', $forum}"
    data-redirect="no">

hi,what this code in the file?
 
Top Bottom