Remove inline javascript to file

This commit is contained in:
Nathan Gray 2013-10-10 11:58:19 +00:00
parent 9fe3bda432
commit 09693fc761
2 changed files with 8 additions and 9 deletions

View File

@ -53,15 +53,7 @@ class etemplate_et2_widgets
echo '
<div id="widget_list"></div>
<div id="widget_container"></div>
<script>
egw_LAB.wait(function() {
var wb = new widget_browser(
document.getElementById("widget_list"),
document.getElementById("widget_container")
);
});
</script>';
<div id="widget_container"></div>';
common::egw_footer();
}
}

View File

@ -193,3 +193,10 @@ widget_browser.prototype.create_attribute = function(name, settings)
return row;
};
egw_LAB.wait(function() {
var wb = new widget_browser(
document.getElementById("widget_list"),
document.getElementById("widget_container")
);
});