Make notes JS know which notes are new in a request
This commit is contained in:
parent
ae067ee322
commit
bd60a4ed40
3 changed files with 31 additions and 22 deletions
7
app/assets/javascripts/extensions/array.js
Normal file
7
app/assets/javascripts/extensions/array.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
Array.prototype.first = function() {
|
||||
return this[0];
|
||||
}
|
||||
|
||||
Array.prototype.last = function() {
|
||||
return this[this.length-1];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue