this.documentFileName.replace(/\.pdf$/i,"") gives you the current file's name minus the extension. Think how you can incorporate that in the code you already have...
↧
this.documentFileName.replace(/\.pdf$/i,"") gives you the current file's name minus the extension. Think how you can incorporate that in the code you already have...