Skip to content

Commit

Permalink
Fix bug in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnonEilat committed Jul 14, 2014
1 parent 0863172 commit b124e77
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 216 deletions.
6 changes: 6 additions & 0 deletions editor/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
class="btn btn-info pull-right navbar-btn">שמור
<span class="glyphicon glyphicon-floppy-disk"></span>
</button>
<span class="pull-right">&nbsp;</span>
<button type="button"
ng-click="add()"
class="btn btn-info pull-right navbar-btn">הוספת חשמביר
<span class="glyphicon glyphicon-plus-sign"></span>
</button>
</div><!-- /.navbar-collapse -->
</div>
</nav>
Expand Down
19 changes: 19 additions & 0 deletions editor/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ App.controller('eKnightEditor', function($scope, $http) {
);
};

$scope.add = function() {
$scope.list.push({
"name": "חשמביר חדש",
"about": "",
"status": "",
"entry_level": "",
"github_repo": "",
"issuesUrl": "",
"slug": "",
"leaders": [],
"discussion_board": "",
"repositories": [{
"name": "",
"url": "",
"about": "",
"main": true
}]
});
};
$scope.save = function() {
window.console.log("save");
var http_request = $http({
Expand Down
Loading

0 comments on commit b124e77

Please sign in to comment.