OSDN Git Service

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@906 1ca29b...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / javascript / edit.js
index 58db59a..8f0e535 100755 (executable)
@@ -1,6 +1,6 @@
 /**
   * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
-  * Copyright (C) 2002-2007 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,7 +11,7 @@
   * 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.6 2007-02-04 06:28:45 kimitake Exp $
+  * $Id$
   * $NucleusJP: edit.js,v 1.5 2006/07/12 07:11:47 kimitake Exp $
   */
 
@@ -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();
        }