protect against empty folder names
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Apr 2008 12:17:45 +0000 (12:17 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Apr 2008 12:17:45 +0000 (12:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9492 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/reports/oils_rpt_folder_window.js

index 85ff58c..8fdcb11 100644 (file)
@@ -604,7 +604,7 @@ oilsRptFolderWindow.prototype.setFolderEditActions = function() {
        DOM.oils_rpt_folder_manager_name_input.value = folder.name();
        DOM.oils_rpt_folder_manager_change_name_submit.onclick = function() {
                var name = DOM.oils_rpt_folder_manager_name_input.value;
-               if(name) {
+               if(name != "") {
                        folder.name( name );
                        if(confirmId('oils_rpt_folder_manager_change_name_confirm')) {
                                oilsRptUpdateFolder(folder, obj.type,