Skip to content

Commit

Permalink
Merge branch 'master' of github.com:summerblue/phphub5
Browse files Browse the repository at this point in the history
* 'master' of github.com:summerblue/phphub5:
  update new topic text
  fixing topic created twice problem
  • Loading branch information
zhengjinghua committed Aug 5, 2016
2 parents 666acb2 + 4a67628 commit 3866222
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/build/assets/js/scripts.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/rev-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"assets/css/styles.css": "assets/css/styles-b10978ee14.css",
"assets/js/scripts.js": "assets/js/scripts-07c1bff1d2.js"
"assets/js/scripts.js": "assets/js/scripts-707398ded8.js"
}
3 changes: 3 additions & 0 deletions resources/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@
$("#topic-create-form").submit(function(event){
localforage.removeItem('topic_create_content');
localforage.removeItem('topic-title');

$("#topic-create-submit").val('提交中...').addClass('disabled').prop('disabled', true);

});
$("#reply-form").submit(function(event){
localforage.removeItem('reply_content');
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/zh-CN/phphub.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'Search' => '搜索',
'Login' => '登 录',
'Logout' => '退出',
'New Topic' => '发 布 新 帖',
'New Topic' => ' 新 建 话 题',
'Links' => '友情社区',
'Same Category Topics' => '分类下其他主题',
'Tips and Tricks' => '小贴士',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/partials/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="
{{ isset($category) ? URL::route('topics.create', ['category_id' => $category->id]) : URL::route('topics.create') }}
" class="btn btn-primary btn-lg">
<i class="glyphicon glyphicon-pencil"> </i> {{ lang('New Topic') }}
<i class="fa fa-paint-brush" aria-hidden="true"></i> {{ lang('New Topic') }}
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/topics/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class="vote btn btn-primary {{ $currentUser && $topic->votes()->ByWhom(Auth::id(
</div>

<div class="form-group status-post-submit">
<input class="btn btn-primary {{ $currentUser ? :'disabled'}}" id="reply-create-submit" type="submit" value="{{ lang('Reply') }}">
<input class="btn btn-primary {{ $currentUser ? '' :'disabled'}}" id="reply-create-submit" type="submit" value="{{ lang('Reply') }}">
<span class="help-inline" title="Or Command + Enter">Ctrl+Enter</span>
</div>

Expand Down

0 comments on commit 3866222

Please sign in to comment.