Changeset 8449


Ignore:
Timestamp:
Jan 3, 2011, 6:28:08 AM (10 years ago)
Author:
rvelices
Message:
  • fix js exception with web services in POST mode
  • added accessor for registered scripts in template
  • added css rule for plugins (images in the categoryActions) it was previsously there but it dissapeared with the sprites
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r8401 r8449  
    900900    $this->did_head = false;
    901901  }
     902       
     903        function get_all()
     904        {
     905                return $this->registered_scripts;
     906        }
    902907
    903908  function add_inline($code, $require)
  • trunk/themes/default/js/scripts.js

    r7957 r8449  
    7878                }
    7979
    80                 if (this.options.method == "POST" )
    81                         this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    82                 else
     80                if (this.options.method != "POST" )
    8381                {
    8482                        url += "&"+body;
     
    8684                }
    8785                this.xhr.open(this.options.method, url, this.options.async);
     86                if (this.options.method == "POST" )
     87                        this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    8888                try {
    8989                        this.xhr.send(body);
  • trunk/themes/default/theme.css

    r8432 r8449  
    131131.categoryActions LI {
    132132        display: inline;
     133}
     134
     135/*following rule not used directly but it is there for plugins*/
     136.categoryActions IMG {
     137        margin-bottom: -5px;
    133138}
    134139
Note: See TracChangeset for help on using the changeset viewer.