Increased min-height of widget columns in common css

Fixes bug "0005911: hard to place widget in empty column (tac)", tested in firefox and ie8.

Signed-off-by: Tobias Sjöndin <tsjondin@op5.com>
js: Move code to common.js

If it's used by every kind of saveable report, but not by the schedule,
there's no real point in putting it in schedule.js.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Report_options: Make object loading ignore bool option types

Because bool types are unset when they're set to false (grr, stupid
forms), they need to be ignored.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
extinfo: Remove "last update" row in host/service info

It shows the last time nagios wrote a status file, which ocimp has
imported, and the merlin module then spent possibly days updating. So it
really doesn't show you any information worth knowing, so throw it away.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Trends: Clean up properly

I removed the trends view, I should not link to it.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
report/js/common: Add some newlines

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
reports/js/common: Fix filtering, even when not using clear button

This moves the conditionfrom 924ba9d8301fcbcbf1f577349b70b9f2fa5b144e
into one more place where it is needed.

This resolves bug #5967.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
tac: Make drop targets more visible by using background-color

Using any non-default theme made drop target barely visible.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
Put back showlog views

Apparently, there's such a thing as deleting too much code...

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
janitor: Remove seemingly unused code

Unless my ack fails me, this should be dead code. -1 request, yay.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
search/result: Do not choke when no comments are found, escape output

XSS was found.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
ajax: Replace $.post and $.get with $.ajax

This will let us handle errors more easily with the separate error,
success and complete callbacks. The json helper was adjusted to fit this
purpose, but all code was not adapted to add failure cases and thus they
many contain "Congrats, you managed to save stuff" even on failure since
I put everything in the complete callback. I'm feeling lazy.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
js: Adjust to not having response.result and response.error any longer

Someone said '[...] all code was not adapted to add failure cases and
thus they many contain "Congrats, you managed to save stuff" even on
failure since I put everything in the complete callback. I'm feeling
lazy.'

That was insane.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
external_widget/help: Not all customers know how to format a PHP string

Hopefully mitigated by this simpler wording.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
extinfo: Hide command list if user isn't authorized to run commands

This fixes bug #5707.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
sql/oracle/v5.4_to_v5.5: Don't create triggers for other's tables

The table was created in the install file, and so is the trigger. I
removed the table, but not the trigger. Stupid.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
views/hostgroup_grid: Fix service links

They were missing a url::base(), making them relative and causing them
to point to the wrong place.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
css/dark: Monitor.css wasn't used, remove

It's content can always be retrieved, but it's got the same purpose
screen.css

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Restore column padding/borders

This undoes the damage caused by the doofus who did
8ac9c04c598096b66accf59418b5114fa1704771

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
New JavaScript based DOM alternative for trends graph, tested in FF, Chrome and IE8

For added functionality including but not limited to mouseovers

Signed-off-by: Tobias Sjöndin <tsjondin@op5.com>