Browse Source

Merge branch 'master' of https://github.com/star7th/showdoc

star7th 8 years ago
parent
commit
6359cc455f
3 changed files with 5 additions and 4 deletions
  1. 2 2
      Application/Home/View/Item/setting.html
  2. 2 1
      Public/js/item/setting.js
  3. 1 1
      composer.json

+ 2 - 2
Application/Home/View/Item/setting.html

@@ -48,7 +48,7 @@
         <div class="control-group">
           <label class="control-label" for="inputPassword">访问密码:</label>
           <div class="controls">
-            <input type="password" id="password" placeholder="(可选)私有项目请设置访问密码">
+            <input  type="text" onfocus="this.type='password'" id="password" placeholder="(可选)私有项目请设置访问密码">
           </div>
         </div>
         <div class="control-group">
@@ -265,5 +265,5 @@
   </div>
 
 <include file="Common/footer" />
-<script src="__PUBLIC__/js/item/setting.js?v=1"></script>
+<script src="__PUBLIC__/js/item/setting.js?v=12"></script>
 

+ 2 - 1
Public/js/item/setting.js

@@ -25,6 +25,7 @@ $(function(){
             $("#item_description").val(data.data.item_description);
             $("#item_domain").val(data.data.item_domain);
             $("#password").val(data.data.password);
+            $("#password").attr('type','password');
           }else{
             $.alert(data.error_message);
           }
@@ -276,4 +277,4 @@ $(function(){
       return false;
     });
 
-  });
+  });

+ 1 - 1
composer.json

@@ -5,7 +5,7 @@
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "keywords": ["showdoc","documents","Api"],
     "homepage": "https://github.com/star7th/showdoc",
-    "version":"v1.7.1",
+    "version":"v1.8.0",
     "license": "Apache-2.0",
     "authors": [
         {