mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
minor changes
This commit is contained in:
parent
073bda7080
commit
c670fdd4b1
1 changed files with 7 additions and 3 deletions
10
client.js
10
client.js
|
|
@ -126,11 +126,15 @@ CloudClient.Util = (function(){
|
|||
* 1_js
|
||||
*/
|
||||
this.getIdBySrc = function(pSrc){
|
||||
var lID=pSrc.replace(pSrc.substr(pSrc,
|
||||
var lID = pSrc.replace(pSrc.substr(pSrc,
|
||||
pSrc.lastIndexOf('/')+1),
|
||||
'');
|
||||
/* убираем точку*/
|
||||
return lID.replace('.','_');
|
||||
|
||||
/* убираем точки */
|
||||
while(lID.indexOf('.'))
|
||||
lID.replace('.','_');
|
||||
|
||||
return lID;
|
||||
},
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue