Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-07-17 07:05:53

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 577
Website

$prefs or jquery question

I would like to adapt the petri ikonen plugins (kuo) to the new textfilters layout of 4.7 dev
The jquery code to target the options (textile, etc.) is currently:

$("select#markup-body option[value=0]").attr("selected","selected");
$("select#markup-excerpt option[value=0]").attr("selected","selected");

The markup-body id no longer exists. The select code is now quite different … how to target and force the textfilter?

I also tried this in the plugin body, with an unexpected effect: set_prefs ('use_textile', '0');

Thank you for your help !

Last edited by jpdupont (2017-07-17 07:45:12)

Offline

#2 2017-07-17 09:16:12

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,089
Website

Re: $prefs or jquery question

Untested:

$(".body select.jquery-ui-selectmenu")
$(".excerpt select.jquery-ui-selectmenu")

Offline

Board footer

Powered by FluxBB