mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Only spawn MultiCreateForm once for the copy expando.
This commit is contained in:
@@ -327,17 +327,19 @@ r.multi.MultiDetails = Backbone.View.extend({
|
||||
.select()
|
||||
.focus()
|
||||
|
||||
this.copyForm = new r.multi.MultiCreateForm({
|
||||
el: $copyForm,
|
||||
navOnCreate: true,
|
||||
createMulti: _.bind(function(name) {
|
||||
var newMulti = new r.multi.MultiReddit({
|
||||
path: r.multi.mine.pathByName(name)
|
||||
}, {isNew: true})
|
||||
this.model.copyTo(newMulti)
|
||||
return newMulti
|
||||
}, this)
|
||||
})
|
||||
if (!this.copyForm) {
|
||||
this.copyForm = new r.multi.MultiCreateForm({
|
||||
el: $copyForm,
|
||||
navOnCreate: true,
|
||||
createMulti: _.bind(function(name) {
|
||||
var newMulti = new r.multi.MultiReddit({
|
||||
path: r.multi.mine.pathByName(name)
|
||||
}, {isNew: true})
|
||||
this.model.copyTo(newMulti)
|
||||
return newMulti
|
||||
}, this)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
deleteMulti: function() {
|
||||
|
||||
Reference in New Issue
Block a user