mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-25 01:23:23 +00:00
Merge branch 'new-product-form'
Conflicts: app/assets/javascripts/admin/admin.js.coffee
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
Admin.value "blankOption", ->
|
||||
angular.module("ofn.admin").value "blankOption", ->
|
||||
{ id: "0", name: "All" }
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "ofnConfirmHandler", (pendingChanges, $compile, $q) ->
|
||||
angular.module("ofn.admin").factory "ofnConfirmHandler", (pendingChanges, $compile, $q) ->
|
||||
return (scope, callback) ->
|
||||
template = "<div id='dialog-div' style='padding: 10px'><h6>Unsaved changes currently exist, save now or ignore?</h6></div>"
|
||||
dialogDiv = $compile(template)(scope)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "dataFetcher", [
|
||||
angular.module("ofn.admin").factory "dataFetcher", [
|
||||
"$http", "$q"
|
||||
($http, $q) ->
|
||||
return (dataLocation) ->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "dataSubmitter", [
|
||||
angular.module("ofn.admin").factory "dataSubmitter", [
|
||||
"$http", "$q", "switchClass"
|
||||
($http, $q, switchClass) ->
|
||||
return (changeObj) ->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "DirtyProducts", ($parse) ->
|
||||
angular.module("ofn.admin").factory "DirtyProducts", ($parse) ->
|
||||
# Temporary service to track changes in products on admin bulk product edit
|
||||
dirtyProducts = {}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "pendingChanges",[
|
||||
angular.module("ofn.admin").factory "pendingChanges",[
|
||||
"dataSubmitter"
|
||||
(dataSubmitter) ->
|
||||
pendingChanges: {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "switchClass", [
|
||||
angular.module("ofn.admin").factory "switchClass", [
|
||||
"$timeout"
|
||||
($timeout) ->
|
||||
return (element,classToAdd,removeClasses,timeout) ->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Admin.factory "Taxons", ($resource) ->
|
||||
angular.module("ofn.admin").factory "Taxons", ($resource) ->
|
||||
resource = $resource "/admin/taxons/search"
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user