mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
add default texture name when adding to closet
This commit is contained in:
parent
494d9c717b
commit
320a11023f
@ -2,7 +2,7 @@
|
|||||||
* @Author: prpr
|
* @Author: prpr
|
||||||
* @Date: 2016-07-19 10:46:38
|
* @Date: 2016-07-19 10:46:38
|
||||||
* @Last Modified by: printempw
|
* @Last Modified by: printempw
|
||||||
* @Last Modified time: 2016-07-26 10:28:00
|
* @Last Modified time: 2016-07-27 18:37:16
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
@ -21,12 +21,14 @@ $('#page-select').on('change', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function addToCloset(tid) {
|
function addToCloset(tid) {
|
||||||
var dom = '<div class="form-group">'+
|
$.getJSON('../skinlib/info/'+tid, function(json) {
|
||||||
'<label for="new-name">给你的皮肤起个名字吧~</label>'+
|
var dom = '<div class="form-group">'+
|
||||||
'<input id="new-name" class="form-control" type="text" placeholder="" />'+
|
'<label for="new-name">给你的皮肤起个名字吧~</label>'+
|
||||||
'</div><br />';
|
'<input id="new-name" class="form-control" type="text" value="'+json.name+'" />'+
|
||||||
showModal(dom, '收藏新皮肤', 'default', 'ajaxAddToCloset('+tid+')');
|
'</div><br />';
|
||||||
return;
|
showModal(dom, '收藏新皮肤', 'default', 'ajaxAddToCloset('+tid+')');
|
||||||
|
return;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function ajaxAddToCloset(tid) {
|
function ajaxAddToCloset(tid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user