Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Pixel Humain
co2
Commits
fae891f0
Commit
fae891f0
authored
May 07, 2019
by
Clément Damiens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit full full full coInterface
parent
8e00d312
Changes
70
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
70 changed files
with
925 additions
and
2665 deletions
+925
-2665
assets/js/classes/CO3_TypeObj.js
assets/js/classes/CO3_TypeObj.js
+280
-0
assets/js/co.js
assets/js/co.js
+499
-717
assets/js/cooperation/uiCoop.js
assets/js/cooperation/uiCoop.js
+2
-2
assets/js/dataHelpers.js
assets/js/dataHelpers.js
+2
-2
assets/js/default/directory.js
assets/js/default/directory.js
+4
-4
assets/js/default/directoryOld.js
assets/js/default/directoryOld.js
+2
-2
assets/js/default/formInMap.js
assets/js/default/formInMap.js
+1
-1
assets/js/default/globalsearch.js
assets/js/default/globalsearch.js
+1
-1
assets/js/default/index.js
assets/js/default/index.js
+0
-23
assets/js/default/live.js
assets/js/default/live.js
+2
-2
assets/js/default/media.js
assets/js/default/media.js
+1
-1
assets/js/default/notifications.js
assets/js/default/notifications.js
+1
-1
assets/js/default/profilSocial.js
assets/js/default/profilSocial.js
+9
-9
assets/js/default/search.js
assets/js/default/search.js
+37
-25
assets/js/laRaffinerie.js
assets/js/laRaffinerie.js
+1
-1
assets/js/menus/multiscopes.js
assets/js/menus/multiscopes.js
+1
-1
assets/js/scopes/multiscopes.js
assets/js/scopes/multiscopes.js
+1
-1
views/admin/community.php
views/admin/community.php
+1
-1
views/admin/directoryTable.php
views/admin/directoryTable.php
+1
-1
views/admin/index.php
views/admin/index.php
+0
-109
views/admin/referenceTable.php
views/admin/referenceTable.php
+0
-1
views/admin/terla/index.php
views/admin/terla/index.php
+1
-1
views/adminpublic/createfile.php
views/adminpublic/createfile.php
+1
-1
views/adminpublic/index.php
views/adminpublic/index.php
+0
-60
views/app/admin/live.php
views/app/admin/live.php
+1
-1
views/app/admin/power.php
views/app/admin/power.php
+1
-1
views/app/admin/web.php
views/app/admin/web.php
+1
-1
views/app/city.php
views/app/city.php
+0
-24
views/app/home.php
views/app/home.php
+12
-19
views/app/info/CO2/finance.php
views/app/info/CO2/finance.php
+0
-24
views/app/info/CO2/stats.php
views/app/info/CO2/stats.php
+1
-5
views/app/info/kgougle/alphatango.php
views/app/info/kgougle/alphatango.php
+1
-1
views/app/info/kgougle/apropos.php
views/app/info/kgougle/apropos.php
+1
-1
views/app/info/terla/contact.php
views/app/info/terla/contact.php
+1
-1
views/app/interoperability.php
views/app/interoperability.php
+5
-5
views/app/live.php
views/app/live.php
+7
-7
views/app/media.php
views/app/media.php
+1
-1
views/app/page.php
views/app/page.php
+1
-1
views/app/power.php
views/app/power.php
+1
-1
views/app/prestation.php
views/app/prestation.php
+4
-4
views/app/referencement.php
views/app/referencement.php
+2
-2
views/app/rooms.php
views/app/rooms.php
+0
-3
views/app/search.php
views/app/search.php
+3
-3
views/app/web.php
views/app/web.php
+0
-1
views/app/webSearch.php
views/app/webSearch.php
+2
-2
views/app/welcome.php
views/app/welcome.php
+0
-2
views/default/directoryjs.php
views/default/directoryjs.php
+1
-1
views/default/live.php
views/default/live.php
+4
-4
views/docs/index.php
views/docs/index.php
+1
-1
views/docs/panels/contact.php
views/docs/panels/contact.php
+4
-4
views/element/addMembersFromMyContacts.php
views/element/addMembersFromMyContacts.php
+0
-1548
views/element/notifications.php
views/element/notifications.php
+1
-1
views/element/onepage.php
views/element/onepage.php
+1
-1
views/element/profilSocial.php
views/element/profilSocial.php
+2
-1
views/element/sectionEditTools.php
views/element/sectionEditTools.php
+1
-1
views/element/terla/dashboard.php
views/element/terla/dashboard.php
+1
-1
views/element/terla/index.php
views/element/terla/index.php
+1
-1
views/element/terla/list.php
views/element/terla/list.php
+1
-1
views/interoperability/co-osm.php
views/interoperability/co-osm.php
+3
-6
views/network/simplyDirectory.php
views/network/simplyDirectory.php
+1
-1
views/newsOld/newsPartialCO2.php
views/newsOld/newsPartialCO2.php
+2
-2
views/pod/activityList.php
views/pod/activityList.php
+1
-1
views/pod/ficheInfoElementCO2.php
views/pod/ficheInfoElementCO2.php
+2
-2
views/pod/nowList.php
views/pod/nowList.php
+2
-2
views/rooms/kill_editAction.php
views/rooms/kill_editAction.php
+1
-1
views/search/searchTerla.php
views/search/searchTerla.php
+1
-4
views/settings/index.php
views/settings/index.php
+1
-1
views/smartconso/conseau.php
views/smartconso/conseau.php
+0
-1
views/smartconso/home.php
views/smartconso/home.php
+0
-1
views/smartconso/qualiteaire.php
views/smartconso/qualiteaire.php
+0
-1
No files found.
assets/js/classes/CO3_TypeObj.js
0 → 100644
View file @
fae891f0
var
CO3_TypeObj
=
class
{
constructor
(
pRequeteAjax
,
pPHDB_Obj
){
if
(
this
.
IsValidRequete
(
pRequeteAjax
)){
this
.
params
=
this
.
MakeRequeteAjax
(
pRequeteAjax
);
}
else
{
this
.
params
=
pPHDB_Obj
||
null
;
}
}
PrepareRequeteAjax
(
pRequeteAjax
){
pRequeteAjax
[
"
prepared
"
]
=
true
;
return
pRequeteAjax
;
}
MakeRequeteAjax
(
pRequeteAjax
){
if
(
this
.
IsValidRequete
(
pRequeteAjax
)){
this
.
RequeteAjax
=
this
.
PrepareRequeteAjax
(
pRequeteAjax
);
//Stockage optional ?
let
res
=
null
;
//TODO : Requete AJAX
res
=
this
.
RequeteAjax
[
"
where
"
];
//renvoie obj
return
res
;
}
else
{
return
null
;
}
}
Count
(){
if
(
this
.
IsDefined
(
this
.
params
)){
return
Object
.
keys
(
this
.
params
).
length
;
}
else
{
return
0
;
}
}
PreElementRenderHtml
(
pElementParams
){
return
this
.
OldshowResultsDirectoryHtml
(
pElementParams
,
null
,
null
,
null
);
}
ElementRenderHtml
(
pElementParams
){
let
str
=
""
;
str
+=
"
Objet
"
;
return
str
;
}
PostElementRenderHtml
(
pElementStr
){
return
pElementStr
;
}
RenderHtml
(){
let
str
=
""
;
for
(
let
id
in
this
.
params
){
if
(
this
.
IsDefined
(
this
.
params
[
id
])){
str
+=
this
.
PostElementRenderHtml
(
this
.
ElementRenderHtml
(
this
.
PreElementRenderHtml
(
this
.
params
[
id
])));
}
}
return
str
;
}
IsDefined
(
obj
){
return
((
typeof
obj
!==
"
undefined
"
)
&&
(
obj
!=
null
)
&&
(
obj
!=
""
));
}
IsValidRequete
(
pRequeteAjax
){
return
this
.
IsDefined
(
pRequeteAjax
);
}
SetCarousable
(){
let
first
=
true
;
for
(
let
id
in
this
.
params
){
if
(
this
.
IsDefined
(
this
.
params
[
id
])){
this
.
params
[
id
].
carousable
=
true
;
if
(
first
){
this
.
params
[
id
].
carousel_active
=
true
;
first
=
false
;
}
}
}
return
this
;
}
OldshowResultsDirectoryHtml
(
params
,
size
,
edit
,
viewMode
){
//size == null || min || max
if
((
typeof
(
params
.
id
)
==
"
undefined
"
)
&&
(
typeof
(
params
[
"
_id
"
])
!==
"
undefined
"
))
{
params
.
id
=
params
[
'
_id
'
];
}
else
if
(
typeof
(
params
.
id
)
==
"
undefined
"
&&
location
.
hash
.
indexOf
(
"
#interoperability
"
)
>=
0
)
{
params
.
id
=
Math
.
random
();
params
.
type
=
"
poi
"
;
}
if
((
params
[
"
_id
"
]
!=
null
)
||
(
params
.
id
!=
null
)){
params
.
size
=
size
;
params
.
id
=
getObjectId
(
params
);
mylog
.
log
(
params
.
id
);
params
.
name
=
notEmpty
(
params
.
name
)
?
params
.
name
:
""
;
params
.
description
=
notEmpty
(
params
.
shortDescription
)
?
params
.
shortDescription
:
(
notEmpty
(
params
.
message
))
?
params
.
message
:
(
notEmpty
(
params
.
description
))
?
params
.
description
:
""
;
var
itemType
=
"
article
"
;
//mapElements.push(params);
//alert("TYPE ----------- "+contentType+":"+params.name);
if
(
typeof
edit
!=
"
undefined
"
&&
edit
!=
false
)
params
.
edit
=
edit
;
if
(
params
.
type
&&
typeof
typeObj
.
classifieds
!=
"
undefined
"
&&
$
.
inArray
(
params
.
type
,
typeObj
.
classifieds
.
subTypes
)
>=
0
)
{
itemType
=
"
classifieds
"
;
}
else
if
(
typeof
(
typeObj
[
itemType
]
)
==
"
undefined
"
)
{
itemType
=
"
poi
"
;
}
if
(
dyFInputs
.
get
(
itemType
)
==
null
){
itemType
=
"
poi
"
;
}
var
typeIco
=
itemType
;
if
(
directory
.
dirLog
)
mylog
.
warn
(
"
itemType
"
,
itemType
,
"
typeIco
"
,
typeIco
);
if
(
typeof
params
.
typeOrga
!=
"
undefined
"
)
typeIco
=
params
.
typeOrga
;
if
(
typeof
params
.
typeClassified
!=
"
undefined
"
)
typeIco
=
params
.
typeClassified
;
var
obj
=
(
dyFInputs
.
get
(
typeIco
))
?
dyFInputs
.
get
(
typeIco
)
:
typeObj
[
"
default
"
]
;
params
.
ico
=
"
fa-
"
+
obj
.
icon
;
params
.
color
=
obj
.
color
;
if
(
params
.
parentType
){
if
(
directory
.
dirLog
)
mylog
.
log
(
"
params.parentType
"
,
params
.
parentType
);
var
parentObj
=
(
dyFInputs
.
get
(
params
.
parentType
))
?
dyFInputs
.
get
(
params
.
parentType
)
:
typeObj
[
"
default
"
]
;
params
.
parentIcon
=
"
fa-
"
+
parentObj
.
icon
;
params
.
parentColor
=
parentObj
.
color
;
}
if
((
typeof
searchObject
.
countType
!=
"
undefined
"
&&
searchObject
.
countType
.
length
==
1
)
&&
params
.
type
==
"
classifieds
"
&&
typeof
params
.
category
!=
"
undefined
"
&&
typeof
modules
[
params
.
typeClassified
]
!=
"
undefined
"
){
getIcoInModules
=
modules
[
params
.
typeClassified
].
categories
;
params
.
ico
=
(
typeof
getIcoInModules
.
filters
!=
"
undefined
"
&&
typeof
getIcoInModules
.
filters
[
params
.
category
]
!=
"
undefined
"
)
?
"
fa-
"
+
getIcoInModules
.
filters
[
params
.
category
][
"
icon
"
]
:
"
fa-bullhorn
"
;
}
if
(
params
.
type
==
"
poi
"
&&
typeof
modules
.
poi
!=
"
undefined
"
&&
typeof
modules
.
poi
.
categories
!=
"
undefined
"
&&
typeof
modules
.
poi
.
categories
.
filters
!=
"
undefined
"
&&
typeof
modules
.
poi
.
categories
.
filters
[
params
.
typePoi
]
!=
"
undefined
"
&&
typeof
modules
.
poi
.
categories
.
filters
[
params
.
typePoi
].
icon
!=
"
undefined
"
)
params
.
ico
=
"
fa-
"
+
modules
.
poi
.
categories
.
filters
[
params
.
typePoi
].
icon
;
params
.
htmlIco
=
"
<i class='fa
"
+
params
.
ico
+
"
fa-2x bg-
"
+
params
.
color
+
"
'></i>
"
;
params
.
useMinSize
=
typeof
size
!=
"
undefined
"
&&
size
==
"
min
"
;
params
.
imgProfil
=
""
;
if
(
!
params
.
useMinSize
){
params
.
imgProfil
=
"
<i class='fa fa-image fa-2x'></i>
"
;
params
.
imgMediumProfil
=
"
<i class='fa fa-image fa-2x'></i>
"
;
params
.
imgFullProfil
=
"
<i class='fa fa-image fa-2x'></i>
"
;
}
if
(
"
undefined
"
!=
typeof
directory
.
costum
&&
(
directory
.
costum
!=
null
)
&&
typeof
directory
.
costum
.
results
!=
"
undefined
"
&&
typeof
directory
.
costum
.
results
[
params
.
type
]
!=
"
undefined
"
&&
typeof
directory
.
costum
.
results
[
params
.
type
].
defaultImg
!=
"
undefined
"
)
{
params
.
imgMediumProfil
=
"
<img class='img-responsive' onload='directory.checkImage(this);' src='
"
+
assetPath
+
directory
.
costum
.
results
[
params
.
type
].
defaultImg
+
"
'/>
"
;
params
.
imgFullProfil
=
"
<img class='img-responsive' onload='directory.checkImage(this);' src='
"
+
assetPath
+
directory
.
costum
.
results
[
params
.
type
].
defaultImg
+
"
'/>
"
;
}
if
(
"
undefined
"
!=
typeof
params
.
profilImageUrl
&&
params
.
profilImageUrl
!=
""
)
params
.
imgFullProfil
=
"
<img class='img-responsive' onload='directory.checkImage(this);' src='
"
+
baseUrl
+
params
.
profilImageUrl
+
"
'/>
"
;
else
if
(
this
.
getVideoThumb
(
params
)
!=
""
)
params
.
imgFullProfil
=
"
<img class='img-responsive' src='
"
+
this
.
getVideoThumb
(
params
)
+
"
'/>
"
;
if
(
"
undefined
"
!=
typeof
params
.
profilMediumImageUrl
&&
params
.
profilMediumImageUrl
!=
""
)
params
.
imgMediumProfil
=
"
<img class='img-responsive' onload='directory.checkImage(this);' src='
"
+
baseUrl
+
params
.
profilMediumImageUrl
+
"
'/>
"
;
else
if
(
this
.
getVideoThumb
(
params
)
!=
""
)
params
.
imgMediumProfil
=
"
<img class='img-responsive' src='
"
+
this
.
getVideoThumb
(
params
)
+
"
'/>
"
;
if
(
"
undefined
"
!=
typeof
params
.
profilThumbImageUrl
&&
params
.
profilThumbImageUrl
!=
""
)
params
.
imgProfil
=
"
<img class='shadow2' src='
"
+
baseUrl
+
params
.
profilThumbImageUrl
+
"
'/>
"
;
else
if
(
this
.
getVideoThumb
(
params
)
!=
""
)
params
.
imgProfil
=
"
<img class='shadow2' src='
"
+
this
.
getVideoThumb
(
params
)
+
"
'/>
"
;
params
.
imgBanner
=
""
;
if
(
!
params
.
useMinSize
)
params
.
imgBanner
=
"
<i class='fa fa-image fa-2x'></i>
"
;
if
(
false
&&
typeof
params
.
addresses
!=
"
undefined
"
&&
params
.
addresses
!=
null
)
{
$
.
each
(
params
.
addresses
,
function
(
key
,
val
){
//console.log("second address", val);
var
postalCode
=
val
.
address
.
postalCode
?
val
.
address
.
postalCode
:
""
;
var
cityName
=
val
.
address
.
addressLocality
?
val
.
address
.
addressLocality
:
""
;
params
.
fullLocality
+=
"
<br>
"
+
postalCode
+
"
"
+
cityName
;
});
}
params
.
type
=
dyFInputs
.
get
(
itemType
).
col
;
params
.
urlParent
=
(
notEmpty
(
params
.
parentType
)
&&
notEmpty
(
params
.
parentId
))
?
'
#page.type.
'
+
params
.
parentType
+
'
.id.
'
+
params
.
parentId
:
""
;
// var urlImg = "/upload/communecter/color.jpg";
// params.profilImageUrl = urlImg;
/*if(dyFInputs.get(itemType) &&
dyFInputs.get(itemType).col == "poi" &&
typeof params.medias != "undefined" && typeof params.medias[0].content.image != "undefined")
params.imgProfil= "<img class='img-responsive' src='"+params.medias[0].content.image+"'/>";
*/
params
.
insee
=
params
.
insee
?
params
.
insee
:
""
;
params
.
postalCode
=
""
,
params
.
city
=
""
,
params
.
cityName
=
""
;
if
(
params
.
address
!=
null
)
{
params
.
city
=
params
.
address
.
addressLocality
;
params
.
postalCode
=
params
.
cp
?
params
.
cp
:
params
.
address
.
postalCode
?
params
.
address
.
postalCode
:
""
;
params
.
cityName
=
params
.
address
.
addressLocality
?
params
.
address
.
addressLocality
:
""
;
}
params
.
fullLocality
=
params
.
postalCode
+
"
"
+
params
.
cityName
;
params
.
hash
=
'
#page.type.
'
+
params
.
type
+
'
.id.
'
+
params
.
id
;
if
(
typeof
params
.
slug
!=
"
undefined
"
&&
params
.
slug
!=
""
&&
params
.
slug
!=
null
)
params
.
hash
=
"
#@
"
+
params
.
slug
;
if
(
typeof
networkJson
!=
"
undefined
"
&&
typeof
networkJson
.
dataSrc
!=
"
undefined
"
)
params
.
hash
=
params
.
source
;
params
.
onclick
=
'
urlCtrl.loadByHash("
'
+
params
.
url
+
'
");
'
;
if
(
params
.
type
==
"
circuits
"
)
params
.
hash
=
'
#circuit.index.id.
'
+
params
.
id
;
params
.
onclick
=
'
urlCtrl.loadByHash("
'
+
params
.
url
+
'
");
'
;
if
(
params
.
type
==
"
poi
"
&&
params
.
source
&&
(
(
params
.
source
.
key
!=
null
)
&&
params
.
source
.
key
.
substring
(
0
,
7
)
==
"
convert
"
))
{
var
interop_type
=
getTypeInteropData
(
params
.
source
.
key
);
params
.
type
=
"
poi.interop.
"
+
interop_type
;
}
// params.tags = "";
params
.
elTagsList
=
""
;
var
thisTags
=
""
;
if
(
typeof
params
.
tags
!=
"
undefined
"
&&
params
.
tags
!=
null
){
$
.
each
(
params
.
tags
,
function
(
key
,
value
){
if
(
typeof
value
!=
"
undefined
"
&&
value
!=
""
&&
value
!=
"
undefined
"
){
var
tagTrad
=
typeof
tradCategory
[
value
]
!=
"
undefined
"
?
tradCategory
[
value
]
:
value
;
thisTags
+=
"
<span class='badge bg-transparent text-red btn-tag tag' data-tag-value='
"
+
slugify
(
value
,
true
)
+
"
' data-tag-label='
"
+
tagTrad
+
"
'>#
"
+
tagTrad
+
"
</span>
"
;
// mylog.log("sluggify", value, slugify(value, true));
params
.
elTagsList
+=
slugify
(
value
,
true
)
+
"
"
;
}
});
params
.
tagsLbl
=
thisTags
;
}
else
{
params
.
tagsLbl
=
""
;
}
params
.
elRolesList
=
""
;
var
thisRoles
=
""
;
params
.
rolesLbl
=
""
;
if
(
typeof
params
.
rolesLink
!=
"
undefined
"
&&
params
.
rolesLink
!=
null
){
thisRoles
+=
"
<small class='letter-blue'><b>
"
+
trad
.
roleroles
+
"
:</b>
"
;
thisRoles
+=
params
.
rolesLink
.
join
(
"
,
"
);
$
.
each
(
params
.
rolesLink
,
function
(
key
,
value
){
if
(
typeof
value
!=
"
undefined
"
&&
value
!=
""
&&
value
!=
"
undefined
"
)
params
.
elRolesList
+=
slugify
(
value
)
+
"
"
;
});
thisRoles
+=
"
</small>
"
;
params
.
rolesLbl
=
thisRoles
;
}
params
.
updated
=
(
params
.
updatedLbl
!=
""
)
?
params
.
updatedLbl
:
null
;
if
((
params
.
tobeactivated
!=
null
)
&&
params
.
tobeactivated
==
true
){
params
.
isInviting
=
true
;
}
}
return
params
;
}
getVideoThumb
(
params
){
if
(
"
undefined
"
!=
typeof
params
.
medias
&&
params
.
medias
.
length
>
0
){
for
(
let
i
=
0
;
i
<
params
.
medias
.
length
;
i
++
){
if
(
"
undefined
"
!=
typeof
params
.
medias
[
i
].
content
.
image
&&
params
.
medias
[
i
].
content
.
image
!=
""
)
return
params
.
medias
[
i
].
content
.
image
;
}
}
return
""
;
}
}
assets/js/co.js
View file @
fae891f0
This diff is collapsed.
Click to expand it.
assets/js/cooperation/uiCoop.js
View file @
fae891f0
...
...
@@ -17,7 +17,7 @@ var uiCoop = {
// location.hash="#@"+contextData.slug;
$
(
"
#coop-data-container
"
).
html
(
""
);
});
//
KS
crollTo("#div-reopen-menu-left-container");
//
coInterface.s
crollTo("#div-reopen-menu-left-container");
//toogleNotif(false);
...
...
@@ -265,7 +265,7 @@ var uiCoop = {
$
(
"
.tooltips
"
).
tooltip
();
$
(
"
#modal-preview-coop
"
).
css
(
"
display
"
,
"
block
"
);
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
if
(
typeof
onSuccess
==
"
function
"
)
onSuccess
();
},
...
...
assets/js/dataHelpers.js
View file @
fae891f0
...
...
@@ -144,7 +144,7 @@ function slugUnique(searchValue){
"
<br><i class='fa fa-times'></i>
"
+
tradDynForm
[
"
This URL is already used
"
];
$
(
"
#ajaxFormModal #btn-submit-form
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
//bindLBHLinks();
//
coInterface.
bindLBHLinks();
}
else
{
//response=true;
if
(
!
$
(
"
#ajaxFormModal #slug
"
).
parent
().
hasClass
(
"
has-success
"
)){
...
...
@@ -529,7 +529,7 @@ var dataHelper = {
invite
=
"
#element.invite.type.
"
+
contextData
.
type
+
"
.id.
"
+
contextData
.
id
;
$
(
"
#mentionResult
"
).
html
(
"
<h4>Aucun résultat correspond. <br/>
"
+
"
<a href='
"
+
invite
+
"
' class='lbhp'>Invité par mail ?</a></h4>
"
);
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
}
},
...
...
assets/js/default/directory.js
View file @
fae891f0
...
...
@@ -133,7 +133,7 @@ function autoCompleteSearch(indexMin, indexMax, callBack){
$
(
"
.btn-start-search
"
).
removeClass
(
"
bg-dark
"
);
if
(
indexMin
==
0
||
(
typeof
pageEvent
!=
"
undefined
"
&&
pageEvent
)){
simpleScroll
(
scrollH
,
400
);
coInterface
.
simpleScroll
(
scrollH
,
400
);
$
(
"
#dropdown_search
"
).
html
(
"
<div class='col-md-12 col-sm-12 text-center search-loader text-dark'>
"
+
"
<i class='fa fa-spin fa-circle-o-notch'></i>
"
+
trad
.
currentlyresearching
+
"
...
"
+
"
</div>
"
);
...
...
@@ -237,7 +237,7 @@ function autoCompleteSearch(indexMin, indexMax, callBack){
//remet l'icon "loupe" du bouton search
$
(
"
.btn-start-search
"
).
html
(
"
<i class='fa fa-refresh'></i>
"
);
//active les link lbh
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
searchObject
.
count
=
false
;
$
.
unblockUI
();
$
(
"
#map-loading-data
"
).
html
(
""
);
...
...
@@ -448,7 +448,7 @@ function initPageTable(number){
function
initBtnLink
(){
mylog
.
log
(
"
initBtnLink
"
);
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
$
(
"
.followBtn
"
).
off
().
on
(
"
click
"
,
function
(){
mylog
.
log
(
"
.followBtn
"
);
...
...
@@ -3238,7 +3238,7 @@ var directory = {
$
(
domId
).
html
(
str
);
//setTimeout(function(){ directory.checkImage(results);}, 200);
//active les link lbh
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
initBtnAdmin
();
initBtnLink
();
if
(
userId
!=
""
){
...
...
assets/js/default/directoryOld.js
View file @
fae891f0
...
...
@@ -293,7 +293,7 @@ function autoCompleteSearch(name, locality, indexMin, indexMax, callBack){
//remet l'icon "loupe" du bouton search
$
(
"
.btn-start-search
"
).
html
(
"
<i class='fa fa-refresh'></i>
"
);
//active les link lbh
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
bindCommunexionScopeEvents
()
// $(".start-new-communexion").click(function(){
...
...
@@ -439,7 +439,7 @@ function autoCompleteSearch(name, locality, indexMin, indexMax, callBack){
$
(
"
.dirStar
"
).
each
(
function
(
i
,
el
){
collection
.
applyColor
(
$
(
el
).
data
(
'
type
'
),
$
(
el
).
data
(
'
id
'
));
});
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
//parcours tous les boutons link pour vérifier si l'entité est déjà dans mon répertoire
$
.
each
(
$
(
"
.followBtn
"
),
function
(
index
,
value
){
var
id
=
$
(
value
).
attr
(
"
data-id
"
);
...
...
assets/js/default/formInMap.js
View file @
fae891f0
...
...
@@ -252,7 +252,7 @@ var formInMap = {
$
(
"
#newElement_btnValidateAddress
"
).
click
(
function
(){
formInMap
.
btnValideDisable
(
true
);
processingB
lockUi
();
themeObj
.
b
lockUi
.
show
();
setTimeout
(
function
(){
mylog
.
log
(
"
#newElement_btnValidateAddress
"
);
...
...
assets/js/default/globalsearch.js
View file @
fae891f0
...
...
@@ -441,7 +441,7 @@ function autoCompleteSearchGS(search, indexMin, indexMax, input){
urlCtrl.loadByHash("#search")
});*/
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
//signal que le chargement est terminé
mylog
.
log
(
"
loadingDataGS false
"
);
...
...
assets/js/default/index.js
View file @
fae891f0
...
...
@@ -62,29 +62,6 @@ function startNewCommunexion(country){
});
}
function
resizeInterface
()
{
mylog
.
log
(
"
resize
"
);
var
height
=
$
(
"
#mapCanvasBg
"
).
height
()
-
55
;
$
(
"
#ajaxSV
"
).
css
({
"
minHeight
"
:
height
});
//$("#menu-container").css({"minHeight" : height});
var
heightDif
=
$
(
"
#search-contact
"
).
height
()
+
$
(
"
#floopHeader
"
).
height
()
+
80
/* top */
+
0
/* bottom */
;
var
menuTopHeight
=
$
(
"
#mainNav
"
).
height
();
// - $(".toolbar").height();
//mylog.log("heightDif", heightDif);
$
(
"
.floopScroll
"
).
css
({
"
minHeight
"
:
height
-
heightDif
});
$
(
"
.floopScroll
"
).
css
({
"
maxHeight
"
:
height
-
heightDif
});
height
=
$
(
"
#mapCanvasBg
"
).
height
()
-
200
;
$
(
"
#scroll-dashboard-dda
"
).
css
(
"
maxHeight
"
,
height
);
//$(".my-main-container").css("min-height", $(".sigModuleBg").height()-menuTopHeight);
//$(".my-main-container").css("max-height", $(".sigModuleBg").height()-menuTopHeight);
//$(".my-main-container").css("height", $(".sigModuleBg").height()-menuTopHeight);
//$(".main-col-search").css("min-height", $(".sigModuleBg").height());
//$("ul.notifList").css({"maxHeight" : height-heightDif});
}
function
checkScroll
(){
$
(
"
.main-top-menu
"
).
animate
({
...
...
assets/js/default/live.js
View file @
fae891f0
...
...
@@ -125,8 +125,8 @@ function showNewsStream(){
//if(isFirst){ //render HTML for 1st load
$
(
"
#newsstream
"
).
html
(
loading
);
simpleScroll
(
0
,
500
);
//
KS
crollTo("#container-scope-filter");
coInterface
.
simpleScroll
(
0
,
500
);
//
coInterface.s
crollTo("#container-scope-filter");
ajaxPost
(
"
#newsstream
"
,
baseUrl
+
"
/
"
+
urlCtrl
,
null
,
function
(
news
){
spinSearchAddon
();},
"
html
"
);
//showTagsScopesMin(".list_tags_scopes");
/* $(window).bind("scroll",function(){
...
...
assets/js/default/media.js
View file @
fae891f0
...
...
@@ -131,7 +131,7 @@ function loadStream(indexMin, indexMax){ console.log("load stream media");
if
(
indexMin
==
0
){
$
(
"
#timeline-live
"
).
html
(
""
);
KS
crollTo
(
"
#content-media
"
);
coInterface
.
s
crollTo
(
"
#content-media
"
);
}
$
.
ajax
({
...
...
assets/js/default/notifications.js
View file @
fae891f0
...
...
@@ -299,7 +299,7 @@ function buildNotifications(list, element, event, elementType, elementId)
setTimeout
(
function
(){
//notifCount(false, element);
bindNotifEvents
(
element
,
event
,
elementType
,
elementId
);
//bindLBHLinks();
//
coInterface.
bindLBHLinks();
},
800
);
//Usecase of the first load of notification
/*if(event == null){
...
...
assets/js/default/profilSocial.js
View file @
fae891f0
...
...
@@ -148,7 +148,7 @@ function bindButtonMenu(){
mylog
.
log
(
"
open-confidentiality
"
);
toogleNotif
(
false
);
smallMenu
.
open
(
dataHelper
.
markdownToHtml
(
$
(
"
#descriptionMarkdown
"
).
html
()));
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
});
$
(
"
.open-directory
"
).
click
(
function
(){
...
...
@@ -214,7 +214,7 @@ function bindButtonMenu(){
responsiveMenuLeft
();
location
.
hash
=
hashUrlPage
+
"
.view.curiculum
"
;
toogleNotif
(
false
);
KS
crollTo
(
"
#profil_imgPreview
"
);
coInterface
.
s
crollTo
(
"
#profil_imgPreview
"
);
//history.pushState(null, "New Title", hashUrlPage+".view.detail");
loadCuriculum
();
});
...
...
@@ -255,7 +255,7 @@ function bindButtonMenu(){
//$(".central-section").hide();
$
(
"
#div-select-create
"
).
show
(
200
);
setTimeout
(
function
(){
//
KS
crollTo("#div-select-create");
//
coInterface.s
crollTo("#div-select-create");
$
(
'
html, body
'
).
stop
().
animate
({
scrollTop
:
$
(
"
#div-select-create
"
).
offset
().
top
-
300
},
300
,
''
);
...
...
@@ -505,8 +505,8 @@ function loadAnswers(){
ajaxPost
(
'
#central-container
'
,
baseUrl
+
'
/
'
+
moduleId
+
'
/
'
+
url
,
null
,
function
(){},
"
html
"
);
}
function
loadNewsStream
(
isLiveBool
){
KS
crollTo
(
"
#profil_imgPreview
"
);
setTimeout
(
function
(){
//attend que le scroll retourn en haut (
k
scroll
t
o)
coInterface
.
s
crollTo
(
"
#profil_imgPreview
"
);
setTimeout
(
function
(){
//attend que le scroll retourn en haut (
coInterface.
scroll
T
o)
showLoader
(
'
#central-container
'
);
ajaxPost
(
'
#central-container
'
,
baseUrl
+
"
/news/co/index/type/
"
+
typeItem
+
"
/id/
"
+
contextData
.
id
,
{
nbCol
:
1
},
...
...
@@ -578,7 +578,7 @@ function loadDirectory(){
toogleNotif
(
false
);
smallMenu
.
openAjax
(
baseUrl
+
'
/
'
+
moduleId
+
'
/element/directory/type/
'
+
contextData
.
type
+
'
/id/
'
+
contextData
.
id
+
'
?tpl=json
'
,
'
Communauté
'
,
'
fa-connectdevelop
'
,
'
dark
'
);
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
}
function
loadEditChart
(){
...
...
@@ -698,7 +698,7 @@ function loadMD(){
function
(
data
){
descHtml
=
dataHelper
.
markdownToHtml
(
data
)
;
$
(
'
#central-container
'
).
html
(
descHtml
);
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
}
,
"
html
"
);
}
...
...
@@ -1085,7 +1085,7 @@ function loadLiveNow () {
ajaxPost
(
"
#notif-column
"
,
baseUrl
+
'
/
'
+
moduleId
+
'
/element/getdatadetail/type/
'
+
contextData
.
type
+
'
/id/
'
+
contextData
.
id
+
'
/dataName/liveNow?tpl=nowList
'
,
searchParams
,
function
()
{
bindLBHLinks
();
coInterface
.
bindLBHLinks
();
}
,
"
html
"
);
//}
}
...
...
@@ -1242,7 +1242,7 @@ function startLoadRoom(type, id){
},
"
html
"
);
toogleNotif
(
false
);
KS
crollTo
(
"
#shortDescriptionHeader
"
);
coInterface
.
s
crollTo
(
"
#shortDescriptionHeader
"
);
}
/*function createSlugBeforeChat(type,canEdit,hasRc){
dynForm.openForm("slug","sub");
...
...
assets/js/default/search.js
View file @
fae891f0
searchInterface
=
{
var
searchObject
=
{
text
:
""
,
nbPage
:
0
,
indexMin
:
0
,
indexStep
:
30
,
count
:
true
,
tags
:[],
initType
:
""
,
types
:[],
countType
:[],
locality
:{},
reset
:
function
(){
$
.
each
(
searchObject
,
function
(
key
,
v
){
if
(
$
.
inArray
(
key
,[
"
startDate
"
,
"
endDate
"
,
"
searchSType
"
,
"
section
"
,
"
subType
"
,
"
category
"
,
"
priceMin
"
,
"
priceMax
"
,
"
devise
"
,
"
source
"
])
>
-
1
){
delete
searchObject
[
key
];
}
});
searchObject
.
page
=
0
,
searchObject
.
indexMin
=
0
,
searchObject
.
indexStep
=
(
typeof
costum
!=
"
undefined
"
&&
notNull
(
costum
)
&&
typeof
costum
.
searchObject
!=
"
undefined
"
&&
typeof
costum
.
searchObject
.
indexStep
!=
"
undefined
"
)
?
costum
.
searchObject
.
indexStep
:
30
,
searchObject
.
count
=
true
,
searchObject
.
initType
=
""
,
searchObject
.
types
=
[],
searchObject
.
countType
=
[];
searchObject
.
text
=
""
;
searchObject
.
tags
=
[];
if
(
typeof
costum
!=
"
undefined
"
&&
notNull
(
costum
)
&&
typeof
costum
.
searchObject
!=
"
undefined
"
&&
typeof
costum
.
searchObject
.
sortBy
!=
"
undefined
"
)
searchObject
.
sortBy
=
costum
.
searchObject
.
sortBy
;
}
};
var
searchInterface
=
{
init
:
function
(
typeInit
){
searchInterface
.
setSearchTypes
(
typeInit
);
searchInterface
.
initSearchParams
();