Index: openacs-4/packages/ajax-filestorage-ui/www/resources/ajaxfs.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ajax-filestorage-ui/www/resources/ajaxfs.js,v diff -u -r1.27 -r1.28 --- openacs-4/packages/ajax-filestorage-ui/www/resources/ajaxfs.js 25 May 2009 12:36:14 -0000 1.27 +++ openacs-4/packages/ajax-filestorage-ui/www/resources/ajaxfs.js 26 May 2009 11:55:26 -0000 1.28 @@ -844,7 +844,6 @@ this.loadTaggedFiles(el.id); } },this); - alert(el.tagName); } @@ -1902,17 +1901,15 @@ node.data.tags = Ext.get('fstags').getValue(); node.commit(); tagcloudpanel.load({url:xmlhttpurl+'get-tagcloud',params:{package_id:package_id}}); - tagWindow.hide(); + this.tagWindow.hide(); } var failure = function(response) { Ext.Msg.alert(acs_lang_text.error || "Error","Sorry, we encountered an error."); } var savetags = function() { - - this.fsCore.doAction('tag',success, failure, null,{ object_id:node.id,package_id:package_id,tags:Ext.get('fstags').getValue()}); - + this.fsCore.doAction('tag',success, failure, null,{ object_id:node.id,package_id:package_id,tags:Ext.get('fstags').getValue()},this); } if(tagWindow == null) { @@ -1928,8 +1925,7 @@ text: 'Ok', icon:"/resources/ajaxhelper/icons/disk.png", cls:"x-btn-text-icon", - scope:this, - handler:savetags + scope:this },{ text: 'Cancel', icon:"/resources/ajaxhelper/icons/cross.png", @@ -1959,6 +1955,7 @@ this.tagWindow.show('undefined',function() { Ext.get('fstags').dom.value=taglist; + this.tagWindow.buttons[0].setHandler(savetags,this); this.initTagAutoComplete() },this); },