Browse files

replace title if blank too

  • Loading branch information...
1 parent 39ec4f9 commit a5e4cbe11001b9ffc79ae72a1108f1440b34167e @mimecuvalo committed Jun 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 static/js/wysiwyg_site.js
View
3 static/js/wysiwyg_site.js
@@ -577,7 +577,8 @@ hw.getEmbedHtml = function(link, opt_img) {
var newTitle = hw.$('hw-new-title');
if (!createForm['hw-id'].value && xhr.getResponseHeader(
'X-Helloworld-Title') && newTitle &&
- newTitle.textContent == hw.getMsg('untitled')) {
+ (newTitle.textContent == hw.getMsg('untitled') ||
+ newTitle.textContent == '')) {
newTitle.innerHTML = xhr.getResponseHeader('X-Helloworld-Title');
hw.addClass(newTitle, 'hw-modified-title');
createForm['hw-title'].value =

0 comments on commit a5e4cbe

Please sign in to comment.