adapt-authoring-ui 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/modules/editor/contentObject/less/editorPageComponentList.less +14 -14
- package/app/modules/editor/contentObject/views/editorMenuItemView.js +1 -1
- package/app/modules/editor/contentObject/views/editorMenuLayerView.js +4 -4
- package/app/modules/editor/contentObject/views/editorPageArticleView.js +2 -2
- package/app/modules/editor/contentObject/views/editorPageBlockView.js +2 -2
- package/app/modules/editor/contentObject/views/editorPageView.js +1 -1
- package/package.json +1 -1
|
@@ -187,47 +187,47 @@
|
|
|
187
187
|
float: left;
|
|
188
188
|
margin: 5px 20px 0 0;
|
|
189
189
|
background-repeat: no-repeat;
|
|
190
|
-
background-image: url("assets/icon-default.png");
|
|
190
|
+
background-image: url("assets/component-icons/icon-default.png");
|
|
191
191
|
// core components, override above
|
|
192
192
|
&.adapt-contrib- {
|
|
193
193
|
&assessmentResults {
|
|
194
|
-
background-image: url("assets/icon-assessment.png");
|
|
194
|
+
background-image: url("assets/component-icons/icon-assessment.png");
|
|
195
195
|
}
|
|
196
196
|
&blank {
|
|
197
|
-
background-image: url("assets/icon-blank.png");
|
|
197
|
+
background-image: url("assets/component-icons/icon-blank.png");
|
|
198
198
|
}
|
|
199
199
|
&accordion {
|
|
200
|
-
background-image: url("assets/icon-accordion.png");
|
|
200
|
+
background-image: url("assets/component-icons/icon-accordion.png");
|
|
201
201
|
}
|
|
202
202
|
&graphic {
|
|
203
|
-
background-image: url("assets/icon-graphic.png");
|
|
203
|
+
background-image: url("assets/component-icons/icon-graphic.png");
|
|
204
204
|
}
|
|
205
205
|
&gmcq {
|
|
206
|
-
background-image: url("assets/icon-gmcq.png");
|
|
206
|
+
background-image: url("assets/component-icons/icon-gmcq.png");
|
|
207
207
|
}
|
|
208
208
|
&hotgraphic {
|
|
209
|
-
background-image: url("assets/icon-hot-graphic.png");
|
|
209
|
+
background-image: url("assets/component-icons/icon-hot-graphic.png");
|
|
210
210
|
}
|
|
211
211
|
&matching {
|
|
212
|
-
background-image: url("assets/icon-matching.png");
|
|
212
|
+
background-image: url("assets/component-icons/icon-matching.png");
|
|
213
213
|
}
|
|
214
214
|
&media {
|
|
215
|
-
background-image: url("assets/icon-media.png");
|
|
215
|
+
background-image: url("assets/component-icons/icon-media.png");
|
|
216
216
|
}
|
|
217
217
|
&mcq {
|
|
218
|
-
background-image: url("assets/icon-mcq.png");
|
|
218
|
+
background-image: url("assets/component-icons/icon-mcq.png");
|
|
219
219
|
}
|
|
220
220
|
&narrative {
|
|
221
|
-
background-image: url("assets/icon-narrative.png");
|
|
221
|
+
background-image: url("assets/component-icons/icon-narrative.png");
|
|
222
222
|
}
|
|
223
223
|
&slider {
|
|
224
|
-
background-image: url("assets/icon-slider.png");
|
|
224
|
+
background-image: url("assets/component-icons/icon-slider.png");
|
|
225
225
|
}
|
|
226
226
|
&text {
|
|
227
|
-
background-image: url("assets/icon-text.png");
|
|
227
|
+
background-image: url("assets/component-icons/icon-text.png");
|
|
228
228
|
}
|
|
229
229
|
&textInput {
|
|
230
|
-
background-image: url("assets/icon-text.png");
|
|
230
|
+
background-image: url("assets/component-icons/icon-text.png");
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
}
|
|
@@ -121,7 +121,7 @@ define(function(require){
|
|
|
121
121
|
Origin.trigger('editorView:itemDeleted', model);
|
|
122
122
|
this.remove()
|
|
123
123
|
}, this),
|
|
124
|
-
error: () => Origin.Notify.alert({ type: 'error', text:
|
|
124
|
+
error: (model, jqXhr) => Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message })
|
|
125
125
|
});
|
|
126
126
|
},
|
|
127
127
|
|
|
@@ -107,10 +107,10 @@ define(function(require) {
|
|
|
107
107
|
newMenuItemView.$el.removeClass('syncing');
|
|
108
108
|
this.setHeight();
|
|
109
109
|
}, this),
|
|
110
|
-
error: function(
|
|
110
|
+
error: function(model, jqXhr) {
|
|
111
111
|
// fade out menu item and alert
|
|
112
112
|
newMenuItemView.$el.removeClass('syncing').addClass('not-synced');
|
|
113
|
-
Origin.Notify.alert({ type: 'error', text:
|
|
113
|
+
Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message });
|
|
114
114
|
_.delay(newMenuItemView.remove, 3000);
|
|
115
115
|
}
|
|
116
116
|
});
|
|
@@ -135,11 +135,11 @@ define(function(require) {
|
|
|
135
135
|
_parentId: model.get('_id'),
|
|
136
136
|
_courseId: Origin.editor.data.course.get('_id')
|
|
137
137
|
}, {
|
|
138
|
-
error: function() {
|
|
138
|
+
error: function(model, jqXhr) {
|
|
139
139
|
newMenuItemView.$el.removeClass('syncing').addClass('not-synced');
|
|
140
140
|
Origin.Notify.alert({
|
|
141
141
|
type: 'error',
|
|
142
|
-
text:
|
|
142
|
+
text: jqXhr.responseJSON.message
|
|
143
143
|
});
|
|
144
144
|
_.delay(newMenuItemView.remove, 3000);
|
|
145
145
|
},
|
|
@@ -122,7 +122,7 @@ define(function(require){
|
|
|
122
122
|
this.addBlockView(model, true);
|
|
123
123
|
Origin.trigger('editor:refreshData');
|
|
124
124
|
},
|
|
125
|
-
error: () => Origin.Notify.alert({ type: 'error', text:
|
|
125
|
+
error: (model, jqXhr) => Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message })
|
|
126
126
|
});
|
|
127
127
|
},
|
|
128
128
|
|
|
@@ -149,7 +149,7 @@ define(function(require){
|
|
|
149
149
|
|
|
150
150
|
this.model.destroy({
|
|
151
151
|
success: () => this.remove(),
|
|
152
|
-
error: () => Origin.Notify.alert({ type: 'error', text:
|
|
152
|
+
error: (model, jqXhr) => Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message })
|
|
153
153
|
});
|
|
154
154
|
},
|
|
155
155
|
|
|
@@ -119,7 +119,7 @@ define(function(require){
|
|
|
119
119
|
deleteBlock: function(event) {
|
|
120
120
|
this.model.destroy({
|
|
121
121
|
success: () => this.remove(),
|
|
122
|
-
error: () => Origin.Notify.alert({ type: 'error', text:
|
|
122
|
+
error: (model, jqXhr) => Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message })
|
|
123
123
|
});
|
|
124
124
|
},
|
|
125
125
|
|
|
@@ -267,7 +267,7 @@ define(function(require){
|
|
|
267
267
|
this.children.push(model);
|
|
268
268
|
this.render();
|
|
269
269
|
}, this),
|
|
270
|
-
error: () => Origin.Notify.alert({ type: 'error', text:
|
|
270
|
+
error: (model, jqXhr) => Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message })
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -114,7 +114,7 @@ define(function(require){
|
|
|
114
114
|
articleView._skipRender = true; // prevent render of blocks in postRender
|
|
115
115
|
articleView.addBlock();
|
|
116
116
|
},
|
|
117
|
-
error: () => Origin.Notify.alert({ type: 'error', text:
|
|
117
|
+
error: (model, jqXhr) => Origin.Notify.alert({ type: 'error', text: jqXhr.responseJSON.message })
|
|
118
118
|
});
|
|
119
119
|
},
|
|
120
120
|
|
package/package.json
CHANGED