Skip to content

Commit

Permalink
modif
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Oct 13, 2017
1 parent b212ce6 commit 64084e4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

var Admin = {

collectionCounters: [],
lolCounters: [],

/**
* This function must be called when an ajax call is done, to ensure
Expand Down Expand Up @@ -321,7 +321,7 @@ var Admin = {
counter = parseInt(matches[1], 10);
}
});
Admin.collectionCounters[collection.attr('id')] = counter;
Admin.lolCounters[collection.attr('id')] = counter;
});
},

Expand All @@ -331,7 +331,7 @@ var Admin = {
Admin.stopEvent(event);

var container = jQuery(this).closest('[data-prototype]');
var counter = ++Admin.collectionCounters[container.attr('id')];
var counter = ++Admin.lolCounters[container.attr('id')];
var proto = container.attr('data-prototype');
var protoName = container.attr('data-prototype-name') || '__name__';
// Set field id
Expand Down
2 changes: 1 addition & 1 deletion con:fig.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test: 'toto'
test: @toto
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test: 'toto'
test: @toto
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
const test = "toto";
console.log(test);

const toto = "kikou";
8 changes: 6 additions & 2 deletions test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php
<?php echo 'test';

$arr = array(
'toto' => 'titi',
'toto' => 'titi',
);

if (true) {
} else if (false) {
}
1 change: 1 addition & 0 deletions toto/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test: @toto

0 comments on commit 64084e4

Please sign in to comment.