On Thu, Feb 24, 2011 at 6:48 PM, James Cammarata jimi@sngx.net wrote:
(04:01 PM) (jsabo@frostedflakes) (0/pts/3) (~/Source/cobbler)
$ grep -r populate_mgmt_classes * web/cobbler_web/templates/generic_edit.tmpl: populate_mgmt_classes();
Where is that defined? Are we missing that in the git master perhaps?
I see it in my commit tree, and I just did a git pull. The function is in the template web/cobbler_web/templates/generic_edit.tmpl. Can you verify you see it there?
The javascript function looks like this on my system:
function populate_mgmt_classes() { var mgmt_classes = document.getElementById("mgmtclasses");
var new_option = new Option("test1","test1") mgmt_classes.options.add(new_option);
var new_option = new Option("test2","test2") mgmt_classes.options.add(new_option);
var new_option = new Option("test3","test3") mgmt_classes.options.add(new_option);
mgmt_classes.selectedIndex = 0 }
It looks the same for distros/profiles/systems. The commit that included this was:
commit 03834b92314a9f8df8a5d433c84c98ed2e6f573f
(09:30 PM) (jsabo@frostedflakes) (0/pts/7) (~)
$ git clone http://git.fedorahosted.org/git/cobbler Initialized empty Git repository in /home/jsabo/cobbler/.git/
(09:32 PM) (jsabo@frostedflakes) (0/pts/7) (~)
$ cd cobbler/
(10:03 PM) (jsabo@frostedflakes) (0/pts/7) (~/cobbler)
$ git log | grep 03834b92314a9f8df8a5d433c84c98ed2e6f573f
(10:03 PM) (jsabo@frostedflakes) (0/pts/7) (~/cobbler)
$ grep -r populate_mgmt * web/cobbler_web/templates/generic_edit.tmpl: populate_mgmt_classes();
It's not it the git master.