all extension type
This commit is contained in:
@@ -207,7 +207,7 @@ angular.module('app.frontend')
|
||||
|
||||
var original = this.note.presentation_name;
|
||||
this.note.presentation_name = this.url.token;
|
||||
this.note.dirty = true;
|
||||
this.note.setDirty(true);
|
||||
|
||||
apiController.sync(function(response){
|
||||
if(!response) {
|
||||
|
||||
@@ -48,7 +48,9 @@ angular.module('app.frontend')
|
||||
}
|
||||
|
||||
this.selectedAction = function(action, extension) {
|
||||
action.running = true;
|
||||
extensionManager.executeAction(action, extension, function(response){
|
||||
action.running = false;
|
||||
apiController.sync(null);
|
||||
})
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ angular.module('app.frontend')
|
||||
}
|
||||
|
||||
$scope.tagsSave = function(tag, callback) {
|
||||
tag.dirty = true;
|
||||
tag.setDirty(true);
|
||||
apiController.sync(callback);
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ angular.module('app.frontend')
|
||||
*/
|
||||
|
||||
$scope.saveNote = function(note, callback) {
|
||||
note.dirty = true;
|
||||
note.setDirty(true);
|
||||
|
||||
apiController.sync(function(){
|
||||
note.hasChanges = false;
|
||||
|
||||
@@ -25,7 +25,7 @@ angular.module('app.frontend')
|
||||
}
|
||||
}
|
||||
})
|
||||
.controller('NotesCtrl', function (apiController, $timeout, $rootScope) {
|
||||
.controller('NotesCtrl', function (apiController, $timeout, $rootScope, modelManager) {
|
||||
|
||||
$rootScope.$on("editorFocused", function(){
|
||||
this.showMenu = false;
|
||||
@@ -110,7 +110,7 @@ angular.module('app.frontend')
|
||||
|
||||
this.createNewNote = function() {
|
||||
var title = "New Note" + (this.tag.notes ? (" " + (this.tag.notes.length + 1)) : "");
|
||||
this.newNote = new Note({dummy: true, text: ""});
|
||||
this.newNote = modelManager.createItem({content_type: "Note", dummy: true, text: ""});
|
||||
this.newNote.title = title;
|
||||
this.selectNote(this.newNote);
|
||||
this.addNew()(this.newNote);
|
||||
|
||||
@@ -33,7 +33,7 @@ angular.module('app.frontend')
|
||||
}
|
||||
}
|
||||
})
|
||||
.controller('TagsCtrl', function () {
|
||||
.controller('TagsCtrl', function (modelManager) {
|
||||
|
||||
var initialLoad = true;
|
||||
|
||||
@@ -63,7 +63,7 @@ angular.module('app.frontend')
|
||||
return;
|
||||
}
|
||||
|
||||
this.newTag = new Tag({});
|
||||
this.newTag = modelManager.createItem({content_type: "Tag"});
|
||||
this.selectedTag = this.newTag;
|
||||
this.editingTag = this.newTag;
|
||||
this.addNew()(this.newTag);
|
||||
|
||||
Reference in New Issue
Block a user