PDF textbooks: namespace JS variables for URLs

This commit is contained in:
David Baumgold
2013-06-24 15:56:45 -04:00
parent 696a795c12
commit 404c36b8f4
7 changed files with 15 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ CMS.Models.Textbook = Backbone.AssociatedModel.extend({
});
CMS.Collections.TextbookSet = Backbone.Collection.extend({
model: CMS.Models.Textbook,
url: function() { return window.TEXTBOOK_URL; },
url: function() { return CMS.URL.TEXTBOOK; },
initialize: function() {
this.listenTo(this, "editOne", this.editOne);
},

View File

@@ -259,7 +259,7 @@ CMS.Views.UploadDialog = Backbone.View.extend({
var oldInput = this.$("input[type=file]").get(0);
this.$el.html(this.template({
shown: this.options.shown,
url: UPLOAD_ASSET_CALLBACK_URL,
url: CMS.URL.UPLOAD_ASSET,
title: this.model.escape('title'),
message: this.model.escape('message'),
selectedFile: selectedFile,