You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/12/25 16:23:28 UTC

svn commit: r123339 - /lenya/trunk/src/webapp/lenya/resources/javascript/asset.js

Author: gregor
Date: Sat Dec 25 07:23:27 2004
New Revision: 123339

URL: http://svn.apache.org/viewcvs?view=rev&rev=123339
Log:
Added license and file:// prefix to image preview javascript code
Modified:
   lenya/trunk/src/webapp/lenya/resources/javascript/asset.js

Modified: lenya/trunk/src/webapp/lenya/resources/javascript/asset.js
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/resources/javascript/asset.js?view=diff&rev=123339&p1=lenya/trunk/src/webapp/lenya/resources/javascript/asset.js&r1=123338&p2=lenya/trunk/src/webapp/lenya/resources/javascript/asset.js&r2=123339
==============================================================================
--- lenya/trunk/src/webapp/lenya/resources/javascript/asset.js	(original)
+++ lenya/trunk/src/webapp/lenya/resources/javascript/asset.js	Sat Dec 25 07:23:27 2004
@@ -1,3 +1,21 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+/* $Id$ */
+
 /* Show a preview of an image to be uploaded */
 function imagepreview(obj) {
    prev = document.getElementById('preview');
@@ -14,7 +32,7 @@
      } 
    } 
    if (isimage) { 
-     prev.setAttribute('src',obj.value);
+     prev.setAttribute('src','file://' + obj.value);
      prev.style.visibility = 'visible';
    }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org