|
@@ 114-132 (lines=19) @@
|
| 111 |
|
<input type="submit" value="', isset($editor_context['labels']['post_button']) ? $editor_context['labels']['post_button'] : $txt['post'], '" name="post" tabindex="', --$tempTab, '" onclick="return submitThisOnce(this);" accesskey="s" class="button">'; |
| 112 |
|
|
| 113 |
|
// Load in the PM autosaver if it's enabled |
| 114 |
|
if (!empty($context['drafts_pm_save']) && !empty($context['drafts_autosave'])) |
| 115 |
|
echo ' |
| 116 |
|
<span class="righttext padding" style="display: block"> |
| 117 |
|
<span id="throbber" style="display:none"><img src="' . $settings['images_url'] . '/loading_sm.gif" alt="" class="centericon"></span> |
| 118 |
|
<span id="draft_lastautosave" ></span> |
| 119 |
|
</span> |
| 120 |
|
<script src="', $settings['default_theme_url'], '/scripts/drafts.js', $modSettings['browser_cache'], '"></script> |
| 121 |
|
<script> |
| 122 |
|
var oDraftAutoSave = new smf_DraftAutoSave({ |
| 123 |
|
sSelf: \'oDraftAutoSave\', |
| 124 |
|
sLastNote: \'draft_lastautosave\', |
| 125 |
|
sLastID: \'id_pm_draft\', |
| 126 |
|
sSceditorID: \'', $editor_id, '\', |
| 127 |
|
sType: \'post\', |
| 128 |
|
bPM: true, |
| 129 |
|
iBoard: 0, |
| 130 |
|
iFreq: ', (empty($modSettings['drafts_autosave_frequency']) ? 60000 : $modSettings['drafts_autosave_frequency'] * 1000), ' |
| 131 |
|
}); |
| 132 |
|
</script>'; |
| 133 |
|
|
| 134 |
|
// Start an instance of the auto saver if its enabled |
| 135 |
|
if (!empty($context['drafts_save']) && !empty($context['drafts_autosave'])) |
|
@@ 135-152 (lines=18) @@
|
| 132 |
|
</script>'; |
| 133 |
|
|
| 134 |
|
// Start an instance of the auto saver if its enabled |
| 135 |
|
if (!empty($context['drafts_save']) && !empty($context['drafts_autosave'])) |
| 136 |
|
echo ' |
| 137 |
|
<span class="righttext padding" style="display: block"> |
| 138 |
|
<span id="throbber" style="display:none"><img src="', $settings['images_url'], '/loading_sm.gif" alt="" class="centericon"></span> |
| 139 |
|
<span id="draft_lastautosave" ></span> |
| 140 |
|
</span> |
| 141 |
|
<script src="', $settings['default_theme_url'], '/scripts/drafts.js', $modSettings['browser_cache'], '"></script> |
| 142 |
|
<script> |
| 143 |
|
var oDraftAutoSave = new smf_DraftAutoSave({ |
| 144 |
|
sSelf: \'oDraftAutoSave\', |
| 145 |
|
sLastNote: \'draft_lastautosave\', |
| 146 |
|
sLastID: \'id_draft\', |
| 147 |
|
sSceditorID: \'', $editor_id, '\', |
| 148 |
|
sType: \'post\', |
| 149 |
|
iBoard: ', (empty($context['current_board']) ? 0 : $context['current_board']), ', |
| 150 |
|
iFreq: ', $context['drafts_autosave_frequency'], ' |
| 151 |
|
}); |
| 152 |
|
</script>'; |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
/** |