Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
adnaankhalil committed Mar 18, 2015
1 parent 247404a commit b93906e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/MyApp/app/views/Configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ $(function () {
this.$el.append(this.form.render().el);
this.$el.append('<a style="margin-left:2px" class="btn btn-success" id="formButton">Submit Configurations </a>');
},
getFormattedDate:function(date) {
var year = date.getFullYear();
var month = (1 + date.getMonth()).toString();
month = month.length > 1 ? month : '0' + month;
var day = date.getDate().toString();
day = day.length > 1 ? day : '0' + day;
return month + '/' + day + '/' + year;
},
setForm:function(){
this.form.commit();
if (this.form.validate() != null) {
Expand Down

0 comments on commit b93906e

Please sign in to comment.