Feature #758

avatar

auto_add_headers (*)

Added by Sein Kraft 86 days ago. Updated 66 days ago.

Status:New Start:08/26/2009
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:core
Target version:2.4

Description

Change this
$js_files = glob("ext/*/script.js");
        if($js_files) {
            foreach($js_files as $js_file) {
                $this->add_header("<script src='$data_href/$js_file' type='text/javascript'></script>");
            }
        }

to this
$js_files = glob("ext/*/*.js");
        if($js_files) {
            foreach($js_files as $js_file) {
                $this->add_header("<script src='$data_href/$js_file' type='text/javascript'></script>");
            }
        }

History

Updated by Shish Moom 66 days ago

avatar
  • Target version changed from 2.3 to 2.4

I've also had people want to specifically avoid auto-loading scripts :S

For now, moving to 2.4, as it'll break the code of anyone who depends on not-auto-loading; shall try and ponder a better solution later

Also available in: Atom PDF