[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] textarea: avoid unsaved-change prompt on simple admin and tracker forms

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69e295615cfbb_3b18e0d4569e5@gitlab-sidekiq-low-urgency-cpu-bound-v2-65d8c65b66-zljzd.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
e03f57b1 by Olivier Kango at 2026-04-17T20:09:59+00:00
[FIX] textarea: avoid unsaved-change prompt on simple admin and tracker forms
---
* [FIX] search_stored: let textarea infer syntax instead of forcing tiki

* [REF] tracker: revert textarea simple-mode change from edit_field template

* [FIX] textarea: avoid unsaved-change prompt on simple admin and tracker forms

See merge request tikiwiki/tiki!10037

- - - - -


5 changed files:

- templates/admin/include_profiles.tpl
- templates/prefs/textarea.tpl
- templates/search_stored/edit.tpl
- templates/search_stored/select.tpl
- templates/tracker/import_profile.tpl


Changes:

=====================================
templates/admin/include_profiles.tpl
=====================================
@@ -338,7 +338,7 @@
                     </div>
                     <div class="mb-3 row">
                         <div class="col-sm-12">
-                            {textarea name='profile_tester' id='profile_tester' codemirror='true' syntax='yaml' class='form-control' }{if isset($test_source)}{$test_source}{/if}{/textarea}
+                            {textarea _simple='y' _toolbars='n' _wysiwyg='n' name='profile_tester' id='profile_tester' codemirror='true' syntax='yaml' class='form-control' }{if isset($test_source)}{$test_source}{/if}{/textarea}
                         </div>
                     </div>
                 </div>


=====================================
templates/prefs/textarea.tpl
=====================================
@@ -5,6 +5,7 @@
         </label>
         <div class="col">
             {textarea
+                _simple="y"
                 _toolbars="n"
                 _wysiwyg="n"
                 name="{$p.preference|escape}"


=====================================
templates/search_stored/edit.tpl
=====================================
@@ -25,7 +25,7 @@
     <div class="mb-3 row">
         <label for="label" class="col-md-3 col-form-label">{tr}Description{/tr}</label>
         <div class="col-md-9">
-            {textarea name='description' id='description' codemirror='true' syntax='tiki' rows='5' class='form-control' }{$description|escape}{/textarea}
+            {textarea _simple='y' _toolbars='n' _wysiwyg='n' name='description' id='description' codemirror='true' rows='5' class='form-control' }{$description|escape}{/textarea}
         </div>
     </div>
     <div class="mb-3 submit">


=====================================
templates/search_stored/select.tpl
=====================================
@@ -29,7 +29,7 @@
             </div>
             <div class="mb-3 row">
                 <label for="description" class="col-form-label">{tr}Description{/tr}</label>
-                {textarea name='description' id='description' codemirror='true' syntax='tiki' rows='5' class='form-control' }{$description|escape}{/textarea}
+                {textarea _simple='y' _toolbars='n' _wysiwyg='n' name='description' id='description' codemirror='true' rows='5' class='form-control' }{$description|escape}{/textarea}
             </div>
             <div class="mb-3 row">
                 <input type="submit" class="btn btn-primary" value="{tr}Create{/tr}"/>


=====================================
templates/tracker/import_profile.tpl
=====================================
@@ -4,7 +4,7 @@
     {title}{$title}{/title}
 {/block}
 {function name="render_editor" content=""}
-    {textarea name='yaml' id='importFromProfileYaml' codemirror='true' syntax='yaml' class='form-control' style="height: 400px;" required="required"}{/textarea}
+    {textarea _simple='y' _toolbars='n' _wysiwyg='n' name='yaml' id='importFromProfileYaml' codemirror='true' syntax='yaml' class='form-control' style="height: 400px;" required="required"}{/textarea}
 {/function}
 {$loadtextarea={render_editor}}
 {block name="content"}



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e03f57b1df722d64c3f9b4c48f42d59a08eb4508

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e03f57b1df722d64c3f9b4c48f42d59a08eb4508
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.