Index: branches/5.1.x/core/admin_templates/languages/phrase_list.tpl =================================================================== diff -u -N -r13086 -r13151 --- branches/5.1.x/core/admin_templates/languages/phrase_list.tpl (.../phrase_list.tpl) (revision 13086) +++ branches/5.1.x/core/admin_templates/languages/phrase_list.tpl (.../phrase_list.tpl) (revision 13151) @@ -1,5 +1,5 @@ - + @@ -10,28 +10,22 @@ //do not rename - this function is used in default grid for double click! function edit() { - set_hidden_field('remove_specials[phrases.st]', 1); - std_edit_item('phrases.st', 'languages/phrase_edit'); + Application.SetVar('m_lang', ''); + std_edit_item('phrases', 'languages/phrase_edit'); } var a_toolbar = new ToolBar(); a_toolbar.AddButton( new ToolBarButton('new_item', '::', function() { - var $phrase = prompt('Enter Phrase name:', ''); - if (!$phrase) { - return ; - } - - $url_mask = ''; - direct_edit('phrases', $url_mask.replace('#PHRASE_NAME#', $phrase)); + std_precreate_item('phrases', 'languages/phrase_edit'); } ) ); a_toolbar.AddButton( new ToolBarButton('edit', '::', edit) ); a_toolbar.AddButton( new ToolBarButton('delete', '', function() { - std_delete_items('phrases.st') + std_delete_items('phrases') } ) ); @@ -45,14 +39,14 @@ a_toolbar.Render(); - +
- + \ No newline at end of file