Skip to content

Commit

Permalink
添加设置界面以及学生主档js
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-lin committed Mar 22, 2012
1 parent d3dec91 commit 189b8bf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/views/settings/index.html.erb
@@ -1,2 +1,6 @@
<h1>Settings#index</h1>
<p>Find me in app/views/settings/index.html.erb</p>
<%= javascript_include_tag '/javascripts/PF/pages/settings_index.js' %>
<script language="javascript" type="text/javascript">
Ext.onReady(function() {
Pf.pages.currentInstance = Pf.settings.homeIndex.panel();
});
</script>
15 changes: 15 additions & 0 deletions public/javascripts/PF/pages/settings_index.js
@@ -0,0 +1,15 @@
Pf.settings.homeIndex = {
panel: function(){
var panel = new Ext.Panel({
autoScroll : true,
layout: "anchor",
title: "nihao",
frame: true,
items: new Ext.form.FormPanel({
anchor: "100 100",
title: '测试',
})
});
return panel;
}
}
1 change: 1 addition & 0 deletions public/javascripts/PF/pages/student.js
@@ -0,0 +1 @@
Ext.ns("Pf.classes.student");

0 comments on commit 189b8bf

Please sign in to comment.