Drop the HQ on js
This commit is contained in:
19
public/build/dist/css/all-43b73367be.css
vendored
19
public/build/dist/css/all-43b73367be.css
vendored
File diff suppressed because one or more lines are too long
19
public/build/dist/css/all-475bd0cdcd.css
vendored
Executable file
19
public/build/dist/css/all-475bd0cdcd.css
vendored
Executable file
File diff suppressed because one or more lines are too long
22
public/build/dist/js/all-0f3f5fb95a.js
vendored
22
public/build/dist/js/all-0f3f5fb95a.js
vendored
File diff suppressed because one or more lines are too long
16
public/build/dist/js/all-9682e56116.js
vendored
Executable file
16
public/build/dist/js/all-9682e56116.js
vendored
Executable file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"dist/css/all.css": "dist/css/all-43b73367be.css",
|
"dist/css/all.css": "dist/css/all-475bd0cdcd.css",
|
||||||
"dist/js/all.js": "dist/js/all-0f3f5fb95a.js"
|
"dist/js/all.js": "dist/js/all-9682e56116.js"
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ $(function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// App setup
|
// App setup
|
||||||
window.CachetHQ = {};
|
window.Cachet = {};
|
||||||
|
|
||||||
moment.locale(Global.locale);
|
moment.locale(Global.locale);
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ $(function() {
|
|||||||
.tooltip();
|
.tooltip();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.CachetHQ.Notifier = function () {
|
window.Cachet.Notifier = function () {
|
||||||
this.notify = function (message, type, options) {
|
this.notify = function (message, type, options) {
|
||||||
type = (typeof type === 'undefined' || type === 'error') ? 'error' : type;
|
type = (typeof type === 'undefined' || type === 'error') ? 'error' : type;
|
||||||
|
|
||||||
@@ -179,10 +179,10 @@ $(function() {
|
|||||||
ids: orderedComponentIds
|
ids: orderedComponentIds
|
||||||
},
|
},
|
||||||
success: function() {
|
success: function() {
|
||||||
(new CachetHQ.Notifier()).notify('Component orders updated.', 'success');
|
(new Cachet.Notifier()).notify('Component orders updated.', 'success');
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
(new CachetHQ.Notifier()).notify('Component orders not updated.', 'error');
|
(new Cachet.Notifier()).notify('Component orders not updated.', 'error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -208,10 +208,10 @@ $(function() {
|
|||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {ids: orderedComponentGroupsIds},
|
data: {ids: orderedComponentGroupsIds},
|
||||||
success: function() {
|
success: function() {
|
||||||
(new CachetHQ.Notifier()).notify('Component groups order has been updated.', 'success');
|
(new Cachet.Notifier()).notify('Component groups order has been updated.', 'success');
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
(new CachetHQ.Notifier()).notify('Component groups order could not be updated.', 'error');
|
(new Cachet.Notifier()).notify('Component groups order could not be updated.', 'error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -229,10 +229,10 @@ $(function() {
|
|||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: formData,
|
data: formData,
|
||||||
success: function(component) {
|
success: function(component) {
|
||||||
(new CachetHQ.Notifier()).notify($form.data('messenger'), 'success');
|
(new Cachet.Notifier()).notify($form.data('messenger'), 'success');
|
||||||
},
|
},
|
||||||
error: function(a, b, c) {
|
error: function(a, b, c) {
|
||||||
(new CachetHQ.Notifier()).notify('Something went wrong updating the component.');
|
(new Cachet.Notifier()).notify('Something went wrong updating the component.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -256,7 +256,7 @@ $(function() {
|
|||||||
$form.find('textarea[name=incident\\[message\\]]').val(tpl.template);
|
$form.find('textarea[name=incident\\[message\\]]').val(tpl.template);
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
(new CachetHQ.Notifier()).notify('There was an error finding that template.');
|
(new Cachet.Notifier()).notify('There was an error finding that template.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -295,7 +295,7 @@ $(function() {
|
|||||||
.fail(function(response) {
|
.fail(function(response) {
|
||||||
var errors = _.toArray(response.responseJSON.errors);
|
var errors = _.toArray(response.responseJSON.errors);
|
||||||
_.each(errors, function(error) {
|
_.each(errors, function(error) {
|
||||||
(new CachetHQ.Notifier()).notify(error);
|
(new Cachet.Notifier()).notify(error);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.always(function() {
|
.always(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user