Skip to content
Snippets Groups Projects
Commit 206d242e authored by Alex Xin's avatar Alex Xin
Browse files

bug fix

parent 4ba151be
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,19 @@ function getAwards(){ ...@@ -28,6 +28,19 @@ function getAwards(){
item = item+1; item = item+1;
loadAward(data[x], item); loadAward(data[x], item);
} }
var awardD = document.getElementsByName("edit_awardTime");
for(var i = 0 ; i < awardD.length; i ++){
awardD[i].datepicker({
autoclose: true,
clearBtn: true,
todayBtn: true,
todayHighlight: true,
format: 'yyyy-mm-dd'
});
}
} }
}, },
error : function(msg) { error : function(msg) {
......
...@@ -112,9 +112,9 @@ $(function() { ...@@ -112,9 +112,9 @@ $(function() {
* classify the file type, store into array * classify the file type, store into array
*/ */
function classifyFiles(url){ function classifyFiles(url){
var urls = url.replaceAll("\n","");
var index = urls.lastIndexOf("."); var index = url.lastIndexOf(".");
var ext = urls.substr(index+1); var ext = url.substr(index+1);
// console.log(ext + " " + ext.length); // console.log(ext + " " + ext.length);
...@@ -196,6 +196,7 @@ function submitForm() { ...@@ -196,6 +196,7 @@ function submitForm() {
var userIdStr = strcookie.split(";")[0]; var userIdStr = strcookie.split(";")[0];
var userId = userIdStr.split("=")[1]; var userId = userIdStr.split("=")[1];
var pid = $.getUrlParam(); var pid = $.getUrlParam();
console.log(" " + otherfile)
projecttitle = $('#editTitle').val(); projecttitle = $('#editTitle').val();
var projectcontent = $('textarea[name="content1"]').val(); var projectcontent = $('textarea[name="content1"]').val();
......
...@@ -15,11 +15,13 @@ ...@@ -15,11 +15,13 @@
<!-- Custom and plugin javascript --> <!-- Custom and plugin javascript -->
<link href="/css/custom.css" rel="stylesheet"> <link href="/css/custom.css" rel="stylesheet">
<link href="/datepicker/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet">
<!--<script src="/js/custom.js"></script>--> <!--<script src="/js/custom.js"></script>-->
<!--<script src="/js/jquery.metisMenu.js"></script>--> <!--<script src="/js/jquery.metisMenu.js"></script>-->
<script src="/js/jquery-confirm.js"></script> <script src="/js/jquery-confirm.js"></script>
<script src="/js/Experience/admin-background.js"></script> <script src="/js/Experience/admin-background.js"></script>
<script src="/js/Award/awards_admin.js"></script> <script src="/js/Award/awards_admin.js"></script>
<script src="/datepicker/dist/js/bootstrap-datepicker.js"></script>
</head> </head>
<body> <body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment