Hello All.
First of all.. Thanks geert-jan for the excellent plugin.
I've been using it for a while and have one strange problem that is obviously only me, otherwise others would be posting the issues also. I just have no idea where to look to figure out my problem . I have had this since the beginning through the all the various versions.
The hostname I have for my server is simply homeseer, so when in the config panel for subscriptions I have a url of
http://homeseer/MQTTSubscriptions When I click on anything, like for instance the manually add mqtt subscription add button where it should redirect me to
http://homeseer/deviceutility?ref=-1&edit=1
what I actually get is
http://homeseer/\deviceutility?ref=-1&edit=1
notice the additional \ (backslash)
I get that on every button I click on, but only on the mqtt plugin configuration.
I am not sure how much of the page generated is coded by homseer and how much is coded by the plugin, but here is the page source if it helps.. I am not a ajax/javascript programmer so it is doesn't make sense to me.
Code: Select all
<br><br><table border="0"><tr><td class="tableheader" colspan="2" style="text-align: center;">Manual add MQTT subscription</td></tr><tr><td class="tableroweven" align="left" >
<form id='formManualAdd' name='MQTTSubscriptions' method='post'>
<!-- jqButton bManualAdd-->
<script>
$(function() {
$('#bManualAdd').button({icons: {primary:'',secondary:''} });
$('#bManualAdd').click(function(e) {
var theform =$('#'+$(this)[0].form.id);
var theData = theform.serialize();
returnTrue = false;
theData = theData+'&id='+this.id+'&bManualAdd=Submit';
commonAjaxPost(theData,'MQTTSubscriptions');
if(returnTrue) {
location.reload();
return false;
}
else {
return false;
}
});
});
Any suggestions ?
Thanks