Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit452a6c6

Browse files
committed
Working on numbering.
1 parent71d7418 commit452a6c6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎clause.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
if(this.number)
3232
clause_num=this.number
3333
this.update_sec_nums(clause_num);
34+
returnclause_num;
3435
},
3536

3637
domReady:updateTocClauses,

‎toc.js‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ limitations under the License.
3636
},
3737

3838
clausesChanged:function(){
39-
this.sections=this.clauses.array().map(function(clause,index){
40-
clause.set_clause_num(index+1);
41-
returnthis.collectSections(clause);
42-
},this);
39+
varn=1
40+
while(n<this.clauses.length){
41+
n=this.clause[n].set_clause_num(n)
42+
}
43+
44+
// this.sections = this.clauses.array().map(function(clause, index) {
45+
// clause.set_clause_num(index + 1);
46+
// return this.collectSections(clause);
47+
// }, this);
4348
},
4449

4550
domReady:function(){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp