Skip to content

Commit

Permalink
feat(smeta): не выделяйте строку Итого
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Dec 13, 2021
1 parent 99ae8c6 commit de6d88e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/smeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ const pffSmeta = {
if($('.pff_editor-selection').length > 0){
const html = win.PFF.editorGetSelection();
if(html.length === 0){
win.show_sys_message('Сначала выделите текст сметы', 'ERROR', undefined, undefined, {})
win.show_sys_message('Сначала выделите текст сметы', 'ERROR')
return;
}
if(html.match(/Итого:/)){
win.show_sys_message('Не выделяйте стоку Итого!', 'ERROR');
return;
}

Expand Down

0 comments on commit de6d88e

Please sign in to comment.