List un-installed plugins first for easier spotting (Bug #1206306)

Also getting the 'not installed plugins' title to be removed by js if last
un-installed in plugin for the plugin type has been added

Change-Id: I2223284aa1e9d5f5188bf199462260886036dd8f
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
viewing fonts had layout problems (Bug #1297516)

Fixed the problem with font previews bunching up on each other - it
was a misisng }

Fixed also a problem where preview of certain texts would go off the
right side of screen due them being one long string with no spaces.
Have split them up into upper and lowercase pairs so now the string
wraps.

Change-Id: I082c135e0d48a0c5e8b19907ebf10a192bf7ede4
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Entry count updates on deletion of journal entry (Bug #1287922)

Before the count was only updating on page relaod - now it updates on
ajaxy delete.

Change-Id: I7a37f9322b2a55e55a7eed18fb05ee44f6561e36
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Allowing the .zip files to be detected by file extension (Bug #1302251)

A number of filetypes are being detected as a zip file, due to them
having compression.

To sort this out we will let the file extension be checked first then
fall back to checking magic.mgc.

Change-Id: Iab6ddbc17af4018cf381c4949172804acff49483
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Colour form option not saving properly (Bug #1305275)

The 'customise' optional checkbox was breaking the saving of colours
for boxes without optional setting. This is due to the 'transparent'
being the default and the colour the optional choice.

Altered it so the colour is the default and choosing 'transparent' is
the optional choice for backwards compatibility.

Change-Id: I76e4f2f9557f3f3b8d3baf13cd35ac95d05618f2
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Allow to delete google and local fonts Bug #1297510

Change-Id: Idc78d7393a1fbf7637a2767e839fba04d3bbc2ab
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Merge "List un-installed plugins first for easier spotting (Bug #1206306)"
Remove old event handlers for blocks in accordion (Bug #1305481)

Change-Id: Ic144660524e7ef0108989f8064b034740f3848a3
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Make sure the pop-up 'Add block' called once when click
Bug 1305451 and 1305481

MouseEvent.buttons is not defined in Chrome, use button insteads

Change-Id: Icf51e74ba64893925061e35e601fa40b4f761650
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Merge "Remove old event handlers for blocks in accordion (Bug #1305481)"
Merge "Make sure the pop-up 'Add block' called once when click Bug 1305451 and 1305481"
Call responsiveNav() if it exists Bug 1305361

This function is only available in responsive themes like 'default'

Change-Id: Ia0dc4e0c339c8d67293bcd3cf2197ad002d0a85d
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Allow auto-retracted external video blocks to delay load (Bug #1300544)

Currently all block data is loaded on page load - but blocks that are
auto-retracted should wait and only load data when one click on their
arrow toggle.

Currently got externalmedia using iframe to handle this delay loading.

Change-Id: I2de32105b9805bd18cfb265161bef4758c422a7e
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Merge "Call responsiveNav() if it exists Bug 1305361"
Merge "Entry count updates on deletion of journal entry (Bug #1287922)"
Update the profile icon when copying a profile info block-bug 1306365


Change-Id: Id3f8cef503512cb81c6a2391dcc5134b38af7fbc
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Merge "viewing fonts had layout problems (Bug #1297516)"
Merge "Allow to delete google and local fonts Bug #1297510"
Merge "Colour form option not saving properly (Bug #1305275)"
Making check for admin more reliable (Bug #1300741)

Rather than relying on id number we rely on the fact they are an admin.

Change-Id: I17f87a7b0cb4e75b5392b196a84afb4105ab3668
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>