[Home]WikiPatches/PreviewOnlyAlreadySaved

UseModWiki | WikiPatches | RecentChanges | Preferences

With this minor tweak, you can always know if textarea has some changes in order to save or not, avoiding some doubt when you are in multitasking mode, doing and forgetting stuff.

The warning message is more adjusted too.

  sub DoEdit {
  ...
  + if ($oldText ne $Text{'text'}) {
    print "<h2>", T('Preview only, not yet saved'), "</h2>\n";
  + } else {
  + print "<h2>", T('Preview only, already saved'), "</h2>\n";
  + }
  print '</div>';
  ...
  }
--JuanmaMP

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited July 19, 2017 11:25 am by JuanmaMP (diff)
Search: