Commit Graph

34 Commits

Author SHA1 Message Date
Piotr Sarnacki
9057650646 Fix client on Firefox 34.0 beta
Our ajax function was passing params as object to xhr.send function.
For some reason this breaks on Firefox 34.0 beta. Sending stringified
version of params works correctly.
2014-11-13 18:04:58 +01:00
Piotr Sarnacki
eecd5187a3 Revert "Revert "Page for displaying caches""
This reverts commit 3d6931c523.
2014-08-12 16:05:21 +02:00
Sven Fuchs
3d6931c523 Revert "Page for displaying caches"
This reverts commit a58688b451.
2014-08-12 15:53:19 +02:00
Piotr Sarnacki
a58688b451 Page for displaying caches 2014-08-05 18:09:24 +02:00
Piotr Sarnacki
1d06666357 signOut on refresh user data error 2014-04-09 00:14:28 +02:00
Henrik Hodne
2450f9fe9d Revert previous revert
I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7af.
2014-02-12 09:54:24 -06:00
Henrik Hodne
db2d38a7af
Revert setting panel deploy
This seems to have caused issues with enabling the hooks for
repositories.
2014-02-12 09:14:47 -06:00
Piotr Sarnacki
c18222ea51 Settings pane
This commit contains a settings pane implementation. There are a couple
of things here, which are not used yet, like advanced form helpers. I'm
leaving them here, because the plan is to add support for more settings
soon (like: include/exclude branch patterns), which will need these
helpers.

There is also tabs support, although in the current version there is
only one tab (initially it was created for supporting general tab and
notifications tab).
2013-12-18 11:02:23 +01:00
Piotr Sarnacki
a2bc840292 Use more fetch instead of find
fetch method returns a promise instead of an actual object. We used find
before, because this was the way we did things before upgrade to Ember
Model. Returning a promise from a model hook pauses router rendering for
the time a resource is loading, which makes it much easier to deal with
asynchronous requests. Thanks to that we can remove parts of the code,
which dealt with it manually.
2013-12-11 12:43:09 +01:00
Piotr Sarnacki
1951752f47 Wrap ajax callbacks in Ember.run 2013-07-31 13:52:08 +02:00
Piotr Sarnacki
895b52d7c4 Don't error out if response is not valid JSON 2013-05-15 17:23:53 +02:00
Piotr Sarnacki
5f366a2989 Make Travis.ajax.ajax return a promise 2013-05-15 17:23:53 +02:00
Piotr Sarnacki
ebeaabe598 Use jQuery.param for generating query string 2013-05-15 17:23:51 +02:00
Piotr Sarnacki
47630b5bab Use view.jobIdForLog instead of showDownloadLog
The latter is not always refreshed, I don't have time to debug it more
thoroughly
2013-05-15 17:23:48 +02:00
Piotr Sarnacki
07cd8233d4 Use $.ajax when testing to not break jquery.mockjax 2013-05-15 17:23:48 +02:00
Piotr Sarnacki
5b771aafcc Use XMLHttpRequest directly
jQuery uses getAllResponseHeaders function for getting response headers,
even for getResponseHeader. As far as I know, there is no easy way to
get original xhr object and call getResponseHeader on such object.
Because of that getResponseHeader is broken on firefox with CORS.

I rewrote Travis.ajax to use XMLHttpRequest directly in order to fix
this, the compatibility with jQuery.ajax is mostly handled.
2013-05-15 17:23:47 +02:00
Piotr Sarnacki
e2d92c2ffb POST requests should always require auth 2013-05-02 19:56:48 +02:00
Piotr Sarnacki
595393f273 Don't send Authorization header when it's not needed
CORS specification specifies "simple request", which does not need a
preflight OPTIONS request. The only thing, which we send and is
forbidding to send simple requests is Authorization header, which is not
needed for public endpoints.
2013-05-02 17:59:43 +02:00
Piotr Sarnacki
b57596c447 Data can be null in ajax request 2013-03-06 14:51:05 +01:00
Piotr Sarnacki
712389efdb Fix more specs 2013-03-04 03:46:04 +01:00
Piotr Sarnacki
65eb4e15fb Don't try to delete flash if there is no data from server 2013-02-26 05:05:36 +01:00
Piotr Sarnacki
f0e95ddd3f Main view mostly works on new router 2013-02-21 23:22:51 +01:00
Piotr Sarnacki
8202eaa452 Add error callback to Travis.ajax, pass all args to callbacks 2013-01-29 04:16:46 +01:00
Piotr Sarnacki
ba2f691ae6 No need to set content type for requests without body 2013-01-29 04:16:19 +01:00
Piotr Sarnacki
a8fb681bfc Always convert method passed to Travis.ajax to upper case 2013-01-29 04:15:47 +01:00
Piotr Sarnacki
eb2feca02a Set proper content type for logs requests 2013-01-28 18:18:16 +01:00
Piotr Sarnacki
5fbf153ed9 Use /jobs/:id/log.txt endpoint for fetching logs 2013-01-27 02:46:18 +01:00
Piotr Sarnacki
8e97b68313 Make the app work with disabled cookies
Browsers disable local storage and session storage when cookies are
disabled - any call to one of those will cause an error. This commit
provides fallback storage, which will store items in memory.
2012-12-10 17:37:09 +01:00
Sven Fuchs
90fb2c3b78 add broadcasts 2012-10-18 03:53:19 +02:00
Sven Fuchs
847c120bd7 fuck yeah, flash messages 2012-10-09 15:16:54 +02:00
Sven Fuchs
6cbe6f140e refactor ajax, get rid of the module 2012-10-09 12:31:15 +02:00
Sven Fuchs
25dffc0a7a load user permissions 2012-10-06 23:40:05 +02:00
Sven Fuchs
152dde6e05 make things even more generic 2012-10-03 19:29:44 +02:00
Sven Fuchs
7b47863014 extract paths in Assetfile; rename javascripts to scripts, stylesheets to styles 2012-10-03 17:13:02 +02:00