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

Commit

Permalink
LabelEditor: change to document reload for get label list after edit …
Browse files Browse the repository at this point in the history
…label
  • Loading branch information
insanehong committed Mar 23, 2015
1 parent 11e9b8a commit bc8bb6f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions public/javascripts/service/yobi.issue.LabelEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
* @private
*/
function _initElement(options){

elements.list = $(options.list);
elements.form = $(options.form);
elements.formInput = elements.form.find('input,button[type=submit]');
Expand Down Expand Up @@ -335,12 +336,7 @@
* @private
*/
function _reloadLabelList(){
$.ajax(vars.listURL, {
"method" : "get",
"headers": {"X-PJAX": true}
}).done(function(res){
elements.list.html(res);
});
document.location.reload(true);
}

/**
Expand Down

0 comments on commit bc8bb6f

Please sign in to comment.