r4169 bugfix: when editing empty Vlan template, unsaved warning was displayed twice
authorAlexey Andriyanov <alan@al-an.info>
Sun, 30 Jan 2011 11:41:18 +0000 (11:41 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Sun, 30 Jan 2011 11:41:18 +0000 (11:41 +0000)
js/vst_editor.js

index 5214dbe..65facac 100644 (file)
@@ -47,7 +47,7 @@ function highlightUnsavedVST() {
     // highlight only on first call of this function
     if ( typeof highlightUnsavedVST.isAlreadyCalled == 'undefined' ) {
         highlightUnsavedVST.isAlreadyCalled = true;
-               $('input[name|="submit"]').before('<div class="msg_warning">Template is unsaved. Click here to save it</div>');
+               $('form#upd input[name|="submit"]').before('<div class="msg_warning">Template is unsaved. Click here to save it</div>');
                console.log('a');
     }
 }