Skip to content

Commit

Permalink
Narrow down the unsaved-alert to documents and categories
Browse files Browse the repository at this point in the history
  • Loading branch information
janv committed Dec 9, 2009
1 parent 2a19a55 commit e074c2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/vrame/javascripts/unsaved-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jQuery(function ($) {
};

// Install handlers if we're on a page that is a 'new' or 'edit' form
if (!!document.body.className.match(/va_edit|va_new/)) {
if (!!document.body.className.match(/va_edit|va_new/) &&
!!document.body.className.match(/vc_vrame_categories|vc_vrame_documents/)) {
$('input, textarea, select').change(onChangeHandler);
$('form').submit(onSubmitHandler);
window.onbeforeunload = onBeforeUnloadHandler;
Expand Down

0 comments on commit e074c2f

Please sign in to comment.