Skip to content

Commit

Permalink
Update editMajor page to use webpack bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbooker committed Oct 14, 2016
1 parent b1e7ec5 commit 1315a5d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
4 changes: 0 additions & 4 deletions class/UI/MajorUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ public function display()
}

$tpl = array();
javascript('jquery');

javascriptMod('intern', 'manager');
javascriptMod('intern', 'editMajor');

return \PHPWS_Template::process($tpl, 'intern', 'edit_major.tpl');
}
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions javascript/editMajor/head.js

This file was deleted.

3 changes: 2 additions & 1 deletion templates/edit_major.tpl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

<div id="content"></div>

<script type="text/javascript" src="{source_http}mod/intern/javascript/dist/editMajor.dev.js"></script>
3 changes: 2 additions & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = {
editDepartment: JS_DIR + '/editDepartment/deptEditor.jsx',
stateList: JS_DIR + '/stateList/StateList.jsx',
emergencyContact: JS_DIR + '/emergencyContact/EmgContactList.jsx',
facultyEdit: JS_DIR + '/facultyEdit/FacultyEdit.jsx'
facultyEdit: JS_DIR + '/facultyEdit/FacultyEdit.jsx',
editMajor: JS_DIR + '/editMajor/editMajor.jsx'
},
output: {
path: path.join(JS_DIR, "dist"),
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = {
editDepartment: JS_DIR + '/editDepartment/deptEditor.jsx',
stateList: JS_DIR + '/stateList/StateList.jsx',
emergencyContact: JS_DIR + '/emergencyContact/EmgContactList.jsx',
facultyEdit: JS_DIR + '/facultyEdit/FacultyEdit.jsx'
facultyEdit: JS_DIR + '/facultyEdit/FacultyEdit.jsx',
editMajor: JS_DIR + '/editMajor/editMajor.jsx'
},
output: {
path: path.join(JS_DIR, "dist"),
Expand Down

0 comments on commit 1315a5d

Please sign in to comment.