Don't do anything if we cancel the rename.

        Patch by yvi. 

diffs (13 lines):

diff -r 7c52a3a4c8e2 -r 8389c2912ff2 htdocs/js/subfilters.js
--- a/htdocs/js/subfilters.js   Thu Apr 28 12:25:43 2011 +0800
+++ b/htdocs/js/subfilters.js   Thu Apr 28 12:30:01 2011 +0800
@@ -530,7 +530,8 @@ function cfRenameFilter() {
 
     // FIXME: don't think dialogs are accessible at all
     var renamed = prompt( 'Rename filter to:', filt.name );
-    filt.name = renamed;
+    if ( renamed != null )
+        filt.name = renamed;
 
     // and now update the select dialog
     cfUpdateFilterSelect();
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to