Sha256: bec960b3cddbf6b8b699f6ff1c377a872d3cc4e304a8d1d0a3b57ce59355cabc
Contents?: true
Size: 1.38 KB
Versions: 7
Compression:
Stored size: 1.38 KB
Contents
// ========================================================================== // Project: Greenhouse.ListItem // Copyright: ©2009 Mike Ball // ========================================================================== /*globals Greenhouse */ /** @class This class is here to receive custom editor events @extends SC.View */ Greenhouse.ListItem = SC.ListItemView.extend( /** @scope Greenhouse.ListItem.prototype */ { /** Called just after the inline editor has ended editing. You can use this method to save the final value of the inline editor and to perform any other cleanup you need to do. @param inlineEditor {SC.InlineTextFieldView} the inline editor @param finalValue {Object} the final value @returns {void} */ // inlineEditorDidEndEditing: function(inlineEditor, finalValue) { // var content = this.get('content'); // var parent = content.get('parent'), newContent = SC.copy(content); // newContent.set('name', finalValue); // // // //check for duplicates on parent's contents array // if(parent && parent.includesFile(newContent)){ // SC.AlertPane.warn("You've already got something named that", "Just pick something different"); // finalValue = content.get('name'); // sc_super(); // } // else{ // sc_super(); // // //send change to server // content.commit(); // } // } });
Version data entries
7 entries across 7 versions & 1 rubygems