equal
deleted
inserted
replaced
160 ajaxEditorSave(); |
160 ajaxEditorSave(); |
161 return false; |
161 return false; |
162 } |
162 } |
163 |
163 |
164 // Draft notice |
164 // Draft notice |
165 if ( response.have_draft ) |
165 if ( response.have_draft && !readonly ) |
166 { |
166 { |
167 var dn = document.createElement('div'); |
167 var dn = document.createElement('div'); |
168 dn.className = 'warning-box'; |
168 dn.className = 'warning-box'; |
169 dn.id = 'ajax_edit_draft_notice'; |
169 dn.id = 'ajax_edit_draft_notice'; |
170 dn.innerHTML = '<b>' + $lang.get('editor_msg_have_draft_title') + '</b><br />'; |
170 dn.innerHTML = '<b>' + $lang.get('editor_msg_have_draft_title') + '</b><br />'; |