portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html skin-form.vm
Date Thu, 11 Mar 2004 00:03:11 GMT
jford       2004/03/10 16:03:11

  Modified:    webapp/WEB-INF/templates/vm/portlets/html skin-form.vm
  Log:
  Added color picker
  
  Revision  Changes    Path
  1.6       +33 -2     jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/skin-form.vm
  
  Index: skin-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/skin-form.vm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- skin-form.vm	27 Aug 2003 00:56:46 -0000	1.5
  +++ skin-form.vm	11 Mar 2004 00:03:11 -0000	1.6
  @@ -1,3 +1,21 @@
  +<SCRIPT LANGUAGE="Javascript" SRC="$clink.setURI("javascript/ColorPicker.js")"></SCRIPT>
  +<SCRIPT LANGUAGE="Javascript" SRC="$clink.setURI("javascript/ColorSwatch.js")"></SCRIPT>
  +<SCRIPT LANGUAGE="JavaScript">
  +<!--
  +var cp = new ColorPicker('window');
  +//var cp2 = new ColorPicker();
  +// Runs when a color is clicked
  +function pickColor(color) {
  +	field.value = color;
  +}
  +
  +var field;
  +function showColorChooser(anchorname, anchorid) {
  +	field = document.forms["SkinForm"][anchorname];
  +	cp.show(anchorid);
  +}
  +-->
  +</SCRIPT>
   <form name="SkinForm" method="post" action="$jslink.getPaneByName("SkinBrowser").setAction("portlets.SkinUpdateAction")">
   
   <table bgcolor="#ffffff" cellpadding="5">
  @@ -54,7 +72,8 @@
             </td>
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
  -              <input type="text" name="parameter.text-color" size="20" value="$!data.user.getTemp("parameter.text-color")"/>
  +              <input type="text" name="parameter.text-color" size="20" value="$!data.user.getTemp("parameter.text-color")"/>

  +              <a href="#" onClick="showColorChooser('parameter.text-color', 'text_color');
return false;" id="text_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -65,7 +84,8 @@
             </td>
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
  -              <input type="text" name="parameter.background-color" size="20" value="$!data.user.getTemp("parameter.background-color")"/>
  +              <input type="text" name="parameter.background-color" size="20" value="$!data.user.getTemp("parameter.background-color")"/>

  +              <a href="#" onClick="showColorChooser('parameter.background-color', 'background_color');
return false;" id="background_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -76,6 +96,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.title-text-color" size="20" value="$!data.user.getTemp("parameter.title-text-color")"/>
  +              <a href="#" onClick="showColorChooser('parameter.title-text-color', 'title_text_color');
return false;" id="title_text_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -86,6 +107,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.title-background-color" size="20" value="$!data.user.getTemp("parameter.title-background-color")"/>
  +              <a href="#" onClick="showColorChooser('parameter.title-background-color','title_background_color');
return false;" id="title_background_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -96,6 +118,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.highlight-text-color" size="20" value="$!data.user.getTemp("parameter.highlight-text-color")"/>
  +              <a href="#" onClick="showColorChooser('parameter.highlight-text-color','highlight_text_color');
return false;" id="highlight_text_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -106,6 +129,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.highlight-background-color" size="20"
value="$!data.user.getTemp("parameter.highlight-background-color")"/>
  +              <a href="#" onClick="showColorChooser('parameter.highlight-background-color','highlight_background_color');
return false;" id="highlight_background_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -203,6 +227,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.text-color" size="20" value="$!entry.getParameter("text-color").value"/>
  +              <a href="#" onClick="showColorChooser('parameter.text-color', 'text_color');
return false;" id="text_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -214,6 +239,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.background-color" size="20" value="$!entry.getParameter("background-color").value"/>
  +              <a href="#" onClick="showColorChooser('parameter.background-color', 'background_color');
return false;" id="background_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -224,6 +250,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.title-text-color" size="20" value="$!entry.getParameter("title-text-color").value"/>
  +              <a href="#" onClick="showColorChooser('parameter.title-text-color', 'title_text_color');
return false;" id="title_text_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -234,6 +261,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.title-background-color" size="20" value="$!entry.getParameter("title-background-color").value"/>
  +              <a href="#" onClick="showColorChooser('parameter.title-background-color','title_background_color');
return false;" id="title_background_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -244,6 +272,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.highlight-text-color" size="20" value="$!entry.getParameter("highlight-text-color").value"/>
  +              <a href="#" onClick="showColorChooser('parameter.highlight-text-color','highlight_text_color');
return false;" id="highlight_text_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -254,6 +283,7 @@
             <td bgcolor="$!{skin.TitleBackgroundColor}">
               <font face="$ui.sansSerifFonts">
                 <input type="text" name="parameter.highlight-background-color" size="20"
value="$!entry.getParameter("highlight-background-color").value"/>
  +              <a href="#" onClick="showColorChooser('parameter.highlight-background-color','highlight_background_color');
return false;" id="highlight_background_color">$l10n.REGISTRY_EDITOR_SKIN_PICK</a>
               </font>
             </td>
           </tr>
  @@ -361,3 +391,4 @@
   </table>
   </form>
   
  +<SCRIPT LANGUAGE="JavaScript">cp.writeDiv()</SCRIPT>
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message