View | Details | Raw Unified | Return to bug 444531
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.ui/web/orion/extensionCommands.js (-1 / +12 lines)
Lines 300-306 Link Here
300
					}
300
					}
301
				}
301
				}
302
			}
302
			}
303
			// now content types
303
			
304
			// Check content type validation
305
			if (!validator.info.contentType && !validator.info.excludedContentTypes){
306
				// Validation doesn't care about content type
307
				return true;
308
			}
309
			
310
			if (item.Directory){
311
				// Directories don't have content types so we can't validate against it.
312
				return false;
313
			}
314
			
304
			var showCommand = true;
315
			var showCommand = true;
305
			var contentType = contentTypes ? mContentTypes.getFilenameContentType(item.Name, contentTypes) : null;
316
			var contentType = contentTypes ? mContentTypes.getFilenameContentType(item.Name, contentTypes) : null;
306
			contentType = contentType || {
317
			contentType = contentType || {

Return to bug 444531