Commit 4cd5161605697b46eb094242687121bb02c9c9fd

Authored by AurelioAHeckert
1 parent a79644a4

ActionItem220: design editor ok!

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1571 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/layouts/application.rhtml
... ... @@ -172,5 +172,11 @@
172 172 </div>
173 173 <%= javascript_include_tag 'better-browser-promotion' %>
174 174  
  175 + <script type="text/javascript">
  176 + // the onload will run only after all related documents load.
  177 + // by that we need to cal this here:
  178 + if ( window.addEventListener ) resizePrincipalTemplateBox()
  179 + </script>
  180 +
175 181 </body>
176 182 </html>
... ...
public/designs/icons/default/cancel-fat-HC.gif

130 Bytes

public/designs/icons/default/style.css
... ... @@ -9,7 +9,7 @@
9 9 .icon-cancel { background-image: url(cancel-HC.gif) }
10 10 .icon-person { background-image: url(user_icon.png) }
11 11 .icon-product { background-image: url(gnome-other.png) }
12   -.icon-delete { background-image: url(gtk-delete.png) }
  12 +.icon-delete { background-image: url(cancel-HC.gif) }
13 13 .icon-find { background-image: url(noosfero-find.png) }
14 14 .icon-back { background-image: url(go-back-HC.gif) }
15 15 .icon-next { background-image: url(gtk-media-next-ltr.png) }
... ...
public/designs/icons/default/trash-HC.gif 0 → 100644

168 Bytes

public/designs/templates/default/stylesheets/style.css
... ... @@ -6,6 +6,10 @@
6 6 .box-1 {
7 7 /* the width of this element is seted by javascript for Firefox */
8 8 float: left;
  9 + margin-left: 4px;
  10 +}
  11 +.msie .box-1 {
  12 + margin-right: 4px;
9 13 }
10 14  
11 15 .box-2 {
... ...
public/javascripts/application.js
... ... @@ -28,7 +28,7 @@ function focus_first_field() {
28 28 /* * * Template Box Size Help * * */
29 29 function resizePrincipalTemplateBox() {
30 30 var box1 = $$( "div.box-1" )[0];
31   - var otherBoxSum = 0;
  31 + var otherBoxSum = 10;
32 32 var i = 2;
33 33 var b = $$( "div.box-" + i++ )[0];
34 34 while ( b.nodeName ) {
... ...