X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nucleus%2Fjavascript%2Fedit.js;h=16a69f068e9bca9ec6699bf5a492fed63963cba5;hb=382878d9fe4e2ee9b2d9434947c8dfd1df96809c;hp=925c9bb5fb3df585c2fd55ee86cd1ad9afa5b03f;hpb=7686dfcfff93bbbc00c524e45996e78f262e838f;p=nucleus-jp%2Fnucleus-jp-ancient.git diff --git a/nucleus/javascript/edit.js b/nucleus/javascript/edit.js index 925c9bb..16a69f0 100755 --- a/nucleus/javascript/edit.js +++ b/nucleus/javascript/edit.js @@ -1,6 +1,6 @@ /** * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) - * Copyright (C) 2002-2006 The Nucleus Group + * Copyright (C) 2002-2009 The Nucleus Group * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -11,8 +11,8 @@ * This file contains functions to allow adding items from inside the weblog. * Also contains code to avoid submitting form data twice. * - * $Id: edit.js,v 1.5 2006-07-12 07:11:47 kimitake Exp $ - * $NucleusJP: edit.js,v 1.4.2.1 2005/09/27 06:58:55 kimitake Exp $ + * $Id: edit.js,v 1.6 2007-02-04 06:28:45 kimitake Exp $ + * $NucleusJP: edit.js,v 1.5 2006/07/12 07:11:47 kimitake Exp $ */ var nucleusConvertBreaks = true; @@ -152,7 +152,7 @@ function setMediaPopupURL(url) { function includeImage(collection, filename, type, width, height) { if (isCaretEmpty()) { - text = prompt("Text to display ?",""); + text = prompt("Text to display ?", filename); } else { text = getCaretText(); } @@ -184,7 +184,7 @@ function includeImage(collection, filename, type, width, height) { function includeOtherMedia(collection, filename) { if (isCaretEmpty()) { - text = prompt("Text to display ?",""); + text = prompt("Text to display ?", filename); } else { text = getCaretText(); }