Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Edit a layout question
(1 viewing) (1) Guest
component
Go to bottomPage: 123
TOPIC: Edit a layout question
#50277
Re:Edit a layout question 10 Years ago Karma: 1
Hi,

I moved at line 96 from "components/com_ariquiz/views/question/tmpl/default.php" :

Code:

<a href="#" class="btn btn-primary disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; if (ariQuizQueManager.validate()) ariQuizQueManager.savePage(); return false;"><i class="icon-pencil"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_SAVE'); ?></a>


To the <div> at line 841 from the "components/com_ariquiz/assets/js/question.js" :


But now, when I click on the "Validate" button, I'm redirected to the site home page.

Any idea ?

Thanks,

Synkro.
Last Edit: 2014/07/02 19:48 By admin.
The administrator has disabled public write access.
 
#50278
Re:Edit a layout question 10 Years ago Karma: 748
Send a link to a quiz where we can see the problem.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#50280
Re:Edit a layout question 10 Years ago Karma: 1
Hi,

Link sended by mail.

Thanks,

Synkro.
The administrator has disabled public write access.
 
#50281
Re:Edit a layout question 10 Years ago Karma: 748
You copied an incorrect javascript code. Original code looks like:

Code:


YAHOO.util.Dom.hasClass(this,'disabled')



but you copied it as

Code:


YAHOO.util.Dom.hasClass(this,disabled)



Regards,
ARI Soft
The administrator has disabled public write access.
 
#50282
Re:Edit a layout question 10 Years ago Karma: 1
You're right

It's working now with the following code :

Code:

<a href="#" class="btn btn-primary disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, \'disabled\')) return false; if (ariQuizQueManager.validate()) ariQuizQueManager.savePage(); return false;"><i class="icon-pencil"></i>Valider</a>\


Thanks,

Synkro.
The administrator has disabled public write access.
 
Go to topPage: 123