Gwayne: joined #tikiwiki fabricius1: joined #tikiwiki Jyhem_laptop: joined #tikiwiki Jyhem_: joined #tikiwiki fabricius: joined #tikiwiki
joined #tikiwiki xavi: joined #tikiwiki
polom -: xavi loooong time with no visit to this channel xavi: any css master around?
a client wants some color in the tracker item status button shown in mobile mode (12.x), and I don't know how to add a property to a span element with specific text inside. Maybe some jquery trick instead?
<span class="ui-btn-text"><span> open </span></span>
how can I show the "open" label with some bg color?
or with the corresponding green round icon in the label once the item is selected, as shown in the option at the dropdown level?
Jyhem_ or Jyhem_laptop maybe know some jquery trick?
wow, this might answer my question (paste url here for the record): http://stackoverflow.com/questions/9424417/how-do-i-select-a-span-containing-a-specific-text-value-using-jquery Tiki|bot: New Forum Posts: Import HTML parsed pages into the wiki - http://suite.tiki.org/tiki-view_forum_thread.php?forumId=3&comments_parentId=57075
New Forum Posts: LDAP tab is blank. - http://suite.tiki.org/tiki-view_forum_thread.php?forumId=17&comments_parentId=57073
New Forum Posts: SVN Plugin - http://suite.tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=57070
New Forum Posts: Import HTML parsed pages into the wiki - http://tiki.org/tiki-view_forum_thread.php?forumId=3&comments_parentId=57075
New Forum Posts: LDAP tab is blank. - http://tiki.org/tiki-view_forum_thread.php?forumId=17&comments_parentId=57073
New Forum Posts: SVN Plugin - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=57070 Jyhem: hi xavi
A CSS solution (if it exists) would probably be "the right way"… But everything wrong can be hidden and fixed in jQuery :-) xavi: :-D Jyhem: I'd try stuff like : xavi: thks for sharing your wisdom, Jyhem ;-) Jyhem: lol xavi: I managed with standard fields... but not with tracker field status
I dunno why
I'll reproduce at some show.t.o instance... Jyhem: $('span.ui-btn-text span').each(function(){
if ($(this).text() == ' Open ') {
$(this).css({'color': 'green'});
//alert('ok');
}
})
Maybe you need to play withthe exact span content. There seems to be extra spaces left & right xavi: yep, I already noticed that
got it!
the trick seemed to be (for me):
$("span").filter(function() { return ($(this).text().indexOf('Open') > -1) }).css('background-color','lightgreen');
trick was "indexOf" >-1, since it allows a match anywhere, even if not exact-string match Jyhem: but aren't afraid of matching other unrelated spans which happen to contain "Open" ? xavi: in fact, the string is not "Open" or "Closed" anymore, since the client wanted another longer string with spaces in it, etc. ('Open' became something like 'complete - pending validation (open item)')
I'll refine the string to be matched against, just in case (thanks for the advice) Jyhem: ohhh, wrong matches are not such a concern suddenly :-)
you can also restrict the field with $('span.ui-btn-text span')
instead of looking up all spans in the page xavi: ok, thnks for tip :-) redflo: joined #tikiwiki xavi: Jyhem , another css question....
how can I add some color to the status option selected, in non-mobile mode?
I managed in mobile mode, but not in standard non-mobile (12.x) Emenems: Dear Tikiwiki
Hello :)
Question number 54034 : Are the Permanent Names unique or not ? https://doc.tiki.org/Permanent+Names
in Trackers.
:-) xavi: Hi Emenems, no necessarily, Use at your own discretion for your own needs Emenems: ok :-/ xavi: they can be not unique (in purpose, for some use cases, it seems)
in all my sites, I use them as unique identifiers (and I ensure that I have there unique names, if I write them by hand, etc) Emenems: xavi, can i change the name after items have been inserted ? or better not ? xavi: I guess yes, as far as you reindex your search index after wards. Permanent names are for fields, not for records
afaik
but you'd better do some testing in your localhost first, just in case Emenems: hum ok. -: xavi not expert in permanent names Emenems: xavi it's ok. actually, i have a tracker linked to another tracker and... yesterday it was working :-) and today, the "list" is empty...
So.. i'm searching what could have change xavi: reindex the search index, just in case Emenems: go.
ok.
xavi, ok :-) it works :-) xavi: nice :-) Emenems: you know... sometimes tiki is like.. it's having it's own life, and i don't understand :-) xavi: tip: add a cron job to get your index re-made with some frequency (once a day at least?) Emenems: thx.. xavi: Jyhem still around?
another request from a client (for long custom forms) is to have PluginTabs display the tab labels at the top AND at the bottom...
maybe luciash knows how to tweak that also? Tiki|bot: New Forum Posts: Plugin Remarks Box parameters - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=57080 xavi: mmm, it seems it's not that easy (after googling a bit) fabricius: joined #tikiwiki xavi: left #tikiwiki jossy: joined #tikiwiki
hello all
pls am trying to login to tiki demo site with username admin and password 12345 but not working
i got this error;More than 20 unsuccessful login attempts have been made. An email has been sent to you with the instructions to follow. olinuxx: joined #tikiwiki xavi2: joined #tikiwiki
left #tikiwiki
joined #tikiwiki
left #tikiwiki
joined #tikiwiki
left #tikiwiki xavi: joined #tikiwiki
for the record, info after jossy's message a couple of hours ago. I confirm that demo.t.o/14.x/ has an unclear login procedure, and it should be reset (I dunno why)
demo.t.o/12.x/ and demo.t.o/13.x/ still have the expected login credentials for user admin
cheers
left #tikiwiki Telesight: joined #tikiwiki Tiki|bot: New Forum Posts: Contents Box on Pages - http://tiki.org/tiki-view_forum_thread.php?forumId=14&comments_parentId=57084
New Forum Posts: Contents Box on Pages - https://tiki.org/tiki-view_forum_thread.php?forumId=14&comments_parentId=57084
New Forum Posts: Plugin Remarks Box parameters - https://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=57080
New Forum Posts: Import HTML parsed pages into the wiki - https://tiki.org/tiki-view_forum_thread.php?forumId=3&comments_parentId=57075 fabricius: joined #tikiwiki Tiki|bot: New Forum Posts: Contents Box on Pages - http://tiki.org/tiki-view_forum_thread.php?forumId=14&comments_parentId=57084
New Forum Posts: Plugin Remarks Box parameters - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=57080
New Forum Posts: Import HTML parsed pages into the wiki - http://tiki.org/tiki-view_forum_thread.php?forumId=3&comments_parentId=57075 fabricius1: joined #tikiwiki fabricius: joined #tikiwiki