Skip to content

Commit

Permalink
reloaded after savng when sp plugin only. tdiary#76
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed Jul 28, 2011
1 parent cc76fc2 commit b8a3f19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2011-07-28 TADA Tadashi <t@tdtds.jp>
* js/01conf.js: reloaded after savng when sp plugin only. #76

2011-07-26 TADA Tadashi <t@tdtds.jp>
* plugin/00default.rb: added js_url method lile theme_url.
* misc/plugin/disp_referrer.rb: ignored encoding error (workaround). thanks arton. #74
Expand Down
10 changes: 7 additions & 3 deletions js/01conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ $(function(){
$('#saving').show();
},
success: function(data){
var result = data.match(/<form id="conf-form"[\s\S]*<\/form>/)[0];
$('#saving').hide();
form.empty().append($('div:first', result)).show();
if(location.search.match(/conf=sp$/)){
location.reload();
} else {
var result = data.match(/<form id="conf-form"[\s\S]*<\/form>/)[0];
$('#saving').hide();
form.empty().append($('div:first', result)).show();
}
},
error: function(){
$('#saving').hide();
Expand Down
2 changes: 1 addition & 1 deletion tdiary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
You can redistribute it and/or modify it under GPL2.
=end

TDIARY_VERSION = '3.0.2.20110726'
TDIARY_VERSION = '3.0.2.20110728'

$:.unshift File.join(File::dirname(__FILE__), '/misc/lib').untaint
Dir["#{File::dirname(__FILE__) + '/vendor/*/lib'}"].each {|dir| $:.unshift dir.untaint }
Expand Down

0 comments on commit b8a3f19

Please sign in to comment.